Skip to content

Commit 699f49a

Browse files
authored
Specify a GUID for the IL SDK and expose it to slngen (#46877)
* Specify a GUID for the IL SDK and expose it to slngen
1 parent e464963 commit 699f49a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

eng/slngen.targets

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@
1010
<!-- Include CompilerServices.Unsafe as it's a transitive test dependency. -->
1111
<IncludeInSolutionFile Condition="'$(IsNETCoreAppRef)' == 'true' and '$(MSBuildProjectName)' == 'System.Runtime.CompilerServices.Unsafe'">true</IncludeInSolutionFile>
1212
</PropertyGroup>
13-
</Project>
13+
<ItemGroup>
14+
<SlnGenCustomProjectTypeGuid Include=".ilproj" ProjectTypeGuid="{F571AB99-FB84-49F4-A0DF-F27AA55F3F3F}" />
15+
</ItemGroup>
16+
</Project>

src/coreclr/.nuget/Microsoft.NET.Sdk.IL/targets/Microsoft.NET.Sdk.IL.targets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,16 @@ Copyright (c) .NET Foundation. All rights reserved.
1616
<DefaultLanguageSourceExtension>.il</DefaultLanguageSourceExtension>
1717
<Language>IL</Language>
1818
<TargetRuntime>Managed</TargetRuntime>
19+
<DefaultProjectTypeGuid Condition="'$(DefaultProjectTypeGuid)' == ''">{F571AB99-FB84-49F4-A0DF-F27AA55F3F3F}</DefaultProjectTypeGuid>
20+
<AppDesignerFolder Condition="'$(AppDesignerFolder)' == ''">Properties</AppDesignerFolder>
21+
<AlwaysUseNumericalSuffixInItemNames>true</AlwaysUseNumericalSuffixInItemNames>
1922
</PropertyGroup>
2023

24+
<ItemGroup>
25+
<ProjectCapability Include="Managed" />
26+
<ProjectCapability Include="ReferencesFolder" />
27+
</ItemGroup>
28+
2129
<PropertyGroup>
2230
<_OSPlatform Condition="$([MSBuild]::IsOSPlatform('windows'))">win</_OSPlatform>
2331
<_OSPlatform Condition="$([MSBuild]::IsOSPlatform('linux'))">linux</_OSPlatform>

0 commit comments

Comments
 (0)