Skip to content

Commit

Permalink
Add support for NodeJS projects (.njsproj) (#337)
Browse files Browse the repository at this point in the history
Fixes #335
  • Loading branch information
jeffkl authored Mar 8, 2022
1 parent 62e940b commit 86a8421
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ SlnGen knows about the following project types:
* F# projects (.fsproj)
* Legacy C++ projects (.vcproj)
* Native projects (.nativeProj)
* Node JS projects (.njsproj)
* NuProj projects (.nuproj)
* Scope SDK projects (.scopeproj)
* SQL Server database projects (.sqlproj)
Expand Down
5 changes: 5 additions & 0 deletions src/Microsoft.VisualStudio.SlnGen/ProjectFileExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ internal static class ProjectFileExtensions
/// </summary>
public const string Native = ".nativeProj";

/// <summary>
/// Node JS projects (.njsproj)
/// </summary>
public const string NodeJS = ".njsproj";

/// <summary>
/// NuProj projects (.nuproj).
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.VisualStudio.SlnGen/SlnProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public sealed class SlnProject
[ProjectFileExtensions.JSharp] = new (VisualStudioProjectTypeGuids.JSharp),
[ProjectFileExtensions.LegacyCpp] = new (VisualStudioProjectTypeGuids.Cpp),
[ProjectFileExtensions.Native] = new (VisualStudioProjectTypeGuids.Cpp),
[ProjectFileExtensions.NodeJS] = new (VisualStudioProjectTypeGuids.NodeJSProject),
[ProjectFileExtensions.NuProj] = new (VisualStudioProjectTypeGuids.NuProj),
[ProjectFileExtensions.Scope] = new (VisualStudioProjectTypeGuids.ScopeProject),
[ProjectFileExtensions.SqlServerDb] = new (VisualStudioProjectTypeGuids.SqlServerDbProject),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public static class VisualStudioProjectTypeGuids
/// </summary>
public const string NetSdkVisualBasicProject = "778DAE3C-4631-46EA-AA77-85C1314464D9";

/// <summary>
/// Node JS projects (.njsproj)
/// </summary>
public const string NodeJSProject = "9092AA53-FB77-4645-B42D-1CCCA6BD08BD";

/// <summary>
/// NuProj projects (.nuproj).
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "8.2",
"version": "8.3",
"assemblyVersion": "3.0",
"buildNumberOffset": -1,
"publicReleaseRefSpec": [
Expand Down

0 comments on commit 86a8421

Please sign in to comment.