-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9619 from drewnoakes/use-file-scoped-namespaces
Use file-scoped namespaces
- Loading branch information
Showing
1,203 changed files
with
70,397 additions
and
71,583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# convert solution to use file-scoped namespaces | ||
e13927f27b47320d8179af850b1ea31e8b24e12b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 13 additions & 14 deletions
27
src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/Input/CommandGroup.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information. | ||
|
||
namespace Microsoft.VisualStudio.Input | ||
namespace Microsoft.VisualStudio.Input; | ||
|
||
/// <summary> | ||
/// Provides common well-known command groups. | ||
/// </summary> | ||
internal static class CommandGroup | ||
{ | ||
/// <summary> | ||
/// Provides common well-known command groups. | ||
/// </summary> | ||
internal static class CommandGroup | ||
{ | ||
public const string UIHierarchyWindow = VSConstants.CMDSETID.UIHierarchyWindowCommandSet_string; | ||
public const string VisualStudioStandard97 = VSConstants.CMDSETID.StandardCommandSet97_string; | ||
public const string VisualStudioStandard2k = VSConstants.CMDSETID.StandardCommandSet2K_string; | ||
public const string FSharpProject = "{75AC5611-A912-4195-8A65-457AE17416FB}"; | ||
public const string ManagedProjectSystemOrder = "{6C4806E9-034E-4B64-99DE-29A6F837B993}"; | ||
public const string ManagedProjectSystem = "{568ABDF7-D522-474D-9EED-34B5E5095BA5}"; | ||
public const string WPF = "{A8878AC2-6163-4C15-9767-1871DD750C6A}"; | ||
} | ||
public const string UIHierarchyWindow = VSConstants.CMDSETID.UIHierarchyWindowCommandSet_string; | ||
public const string VisualStudioStandard97 = VSConstants.CMDSETID.StandardCommandSet97_string; | ||
public const string VisualStudioStandard2k = VSConstants.CMDSETID.StandardCommandSet2K_string; | ||
public const string FSharpProject = "{75AC5611-A912-4195-8A65-457AE17416FB}"; | ||
public const string ManagedProjectSystemOrder = "{6C4806E9-034E-4B64-99DE-29A6F837B993}"; | ||
public const string ManagedProjectSystem = "{568ABDF7-D522-474D-9EED-34B5E5095BA5}"; | ||
public const string WPF = "{A8878AC2-6163-4C15-9767-1871DD750C6A}"; | ||
} |
59 changes: 29 additions & 30 deletions
59
src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/Input/ExternalResourceIds.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,35 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information. | ||
|
||
namespace Microsoft.VisualStudio.Input | ||
namespace Microsoft.VisualStudio.Input; | ||
|
||
// from VS: src\vsproject\cool\coolpkg\resource.h | ||
internal enum LegacyCSharpStringResourceIds : uint | ||
{ | ||
// from VS: src\vsproject\cool\coolpkg\resource.h | ||
internal enum LegacyCSharpStringResourceIds : uint | ||
{ | ||
IDS_TEMPLATE_NEWWFCWIN32FORM = 2237, | ||
IDS_TEMPLATE_DIRLOCALITEMS = 2339, | ||
IDS_TEMPLATE_NEWCSharpCLASS = 2245, | ||
IDS_TEMPLATE_NEWWFCCOMPONENT = 2246, | ||
IDS_TEMPLATE_NEWUSERCONTROL = 2295, | ||
IDS_PROJECTITEMTYPE_STR = 2346, | ||
} | ||
IDS_TEMPLATE_NEWWFCWIN32FORM = 2237, | ||
IDS_TEMPLATE_DIRLOCALITEMS = 2339, | ||
IDS_TEMPLATE_NEWCSharpCLASS = 2245, | ||
IDS_TEMPLATE_NEWWFCCOMPONENT = 2246, | ||
IDS_TEMPLATE_NEWUSERCONTROL = 2295, | ||
IDS_PROJECTITEMTYPE_STR = 2346, | ||
} | ||
|
||
// from VS: src\vsproject\vb\vbprj\vbprjstr.h | ||
internal enum LegacyVBStringResourceIds : uint | ||
{ | ||
IDS_VSDIR_ITEM_CLASS = 3020, | ||
IDS_VSDIR_ITEM_COMPONENT = 3024, | ||
IDS_VSDIR_ITEM_MODULE = 3028, | ||
IDS_VSDIR_ITEM_USERCTRL = 3048, | ||
IDS_VSDIR_ITEM_WINFORM = 3050, | ||
IDS_VSDIR_CLIENTPROJECTITEMS = 3081, | ||
IDS_VSDIR_VBPROJECTFILES = 3082, | ||
} | ||
// from VS: src\vsproject\vb\vbprj\vbprjstr.h | ||
internal enum LegacyVBStringResourceIds : uint | ||
{ | ||
IDS_VSDIR_ITEM_CLASS = 3020, | ||
IDS_VSDIR_ITEM_COMPONENT = 3024, | ||
IDS_VSDIR_ITEM_MODULE = 3028, | ||
IDS_VSDIR_ITEM_USERCTRL = 3048, | ||
IDS_VSDIR_ITEM_WINFORM = 3050, | ||
IDS_VSDIR_CLIENTPROJECTITEMS = 3081, | ||
IDS_VSDIR_VBPROJECTFILES = 3082, | ||
} | ||
|
||
// from VS: src\vsproject\fidalgo\WPF\Flavor\WPFFlavor\WPFProject.cs | ||
internal enum WPFTemplateNames : uint | ||
{ | ||
WPFPage = 4658, | ||
WPFResourceDictionary = 4662, | ||
WPFUserControl = 4664, | ||
WPFWindow = 4666, | ||
} | ||
// from VS: src\vsproject\fidalgo\WPF\Flavor\WPFFlavor\WPFProject.cs | ||
internal enum WPFTemplateNames : uint | ||
{ | ||
WPFPage = 4658, | ||
WPFResourceDictionary = 4662, | ||
WPFUserControl = 4664, | ||
WPFWindow = 4666, | ||
} |
17 changes: 8 additions & 9 deletions
17
src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/Input/FSharpProjectCommandId.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information. | ||
|
||
namespace Microsoft.VisualStudio.Input | ||
namespace Microsoft.VisualStudio.Input; | ||
|
||
/// <summary> | ||
/// Provides common well-known F# command IDs. | ||
/// </summary> | ||
internal static class FSharpProjectCommandId | ||
{ | ||
/// <summary> | ||
/// Provides common well-known F# command IDs. | ||
/// </summary> | ||
internal static class FSharpProjectCommandId | ||
{ | ||
public const int MoveUp = 0x3002; | ||
public const int MoveDown = 0x3007; | ||
} | ||
public const int MoveUp = 0x3002; | ||
public const int MoveDown = 0x3007; | ||
} |
23 changes: 11 additions & 12 deletions
23
src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/Input/ManagedProjectSystemCommandId.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information. | ||
|
||
namespace Microsoft.VisualStudio.Input | ||
namespace Microsoft.VisualStudio.Input; | ||
|
||
/// <summary> | ||
/// Provides common well-known project-system command IDs. | ||
/// </summary> | ||
internal static class ManagedProjectSystemCommandId | ||
{ | ||
/// <summary> | ||
/// Provides common well-known project-system command IDs. | ||
/// </summary> | ||
internal static class ManagedProjectSystemCommandId | ||
{ | ||
public const long GenerateNuGetPackageProjectContextMenu = 0x2000; | ||
public const long GenerateNuGetPackageTopLevelBuild = 0x2001; | ||
public const long NavigateToProject = 0x2002; | ||
public const int DebugTargetMenuDebugFrameworkMenu = 0x3000; | ||
public const int DebugFrameworks = 0x3050; | ||
} | ||
public const long GenerateNuGetPackageProjectContextMenu = 0x2000; | ||
public const long GenerateNuGetPackageTopLevelBuild = 0x2001; | ||
public const long NavigateToProject = 0x2002; | ||
public const int DebugTargetMenuDebugFrameworkMenu = 0x3000; | ||
public const int DebugFrameworks = 0x3050; | ||
} |
Oops, something went wrong.