Skip to content

Commit 8a901e9

Browse files
jbevainGitHub Enterprise
authored andcommitted
Straight to string array
1 parent 10c940d commit 8a901e9

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

Packages/com.unity.ide.visualstudio/Editor/ProjectGeneration/SdkStyleProjectGeneration.cs

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,23 @@ public SdkStyleProjectGeneration() : base(
3030
{
3131
}
3232

33-
internal enum SupportedCapability
33+
internal static readonly string[] SupportedCapabilities = new string[]
3434
{
35-
Unity
35+
"Unity",
3636
}
37-
internal static readonly string[] SupportedCapabilities = Enum.GetNames(typeof(SupportedCapability));
3837

39-
internal enum UnsupportedCapability
38+
internal static readonly string[] UnsupportedCapabilities = new string[]
4039
{
41-
LaunchProfiles,
42-
SharedProjectReferences,
43-
ReferenceManagerSharedProjects,
44-
ProjectReferences,
45-
ReferenceManagerProjects,
46-
COMReferences,
47-
ReferenceManagerCOM,
48-
AssemblyReferences,
49-
ReferenceManagerAssemblies
40+
"LaunchProfiles",
41+
"SharedProjectReferences",
42+
"ReferenceManagerSharedProjects",
43+
"ProjectReferences",
44+
"ReferenceManagerProjects",
45+
"COMReferences",
46+
"ReferenceManagerCOM",
47+
"AssemblyReferences",
48+
"ReferenceManagerAssemblies",
5049
}
51-
internal static readonly string[] UnsupportedCapabilities = Enum.GetNames(typeof(UnsupportedCapability));
5250

5351
internal override void GetProjectHeader(ProjectProperties properties, out StringBuilder headerBuilder)
5452
{
@@ -119,6 +117,5 @@ internal static void GetCapabilityBlock(StringBuilder footerBuilder, string impo
119117
}
120118
footerBuilder.Append(@" </ItemGroup>").Append(k_WindowsNewline);
121119
}
122-
123120
}
124121
}

0 commit comments

Comments
 (0)