Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit cde3a8b

Browse files
committed
MIT License *NIX Builds.
Remove non MIT licensed components from the CLI when building on non windows platforms. The shared framework provides the LICENSE file that is included with the tarballs, so we just need to ensure we don't pull any windows specific stuff that is not MIT licensed. Fixes: dotnet/core-setup#676
1 parent 7d86704 commit cde3a8b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/redist/redist.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@
142142
AssetPath="%(NuPkgContentForMSBuildExtensionsRelativePaths.Identity)" />
143143
</Target>
144144

145+
<!-- The msdia140typelib_clr0200.dll file is not MIT licensed (and it only used on Windows). Remove it, so
146+
we can MIT license the published dotnet -->
147+
<Target Name="RemoveMSDiaTypeLib"
148+
AfterTargets="Publish"
149+
Condition="'$(OSName)' != 'win'">
150+
<Delete Files="$(PublishDir)/TestHost/msdia140typelib_clr0200.dll" />
151+
</Target>
152+
145153
<Target Name="PublishSdks"
146154
AfterTargets="Publish">
147155
<ItemGroup>

src/tool_roslyn/tool_roslyn.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(CLI_Roslyn_Version)" />
1717
<PackageReference Include="Microsoft.CodeAnalysis.Build.Tasks" Version="$(CLI_Roslyn_Version)" />
1818
<PackageReference Include="Microsoft.Net.Compilers.netcore" Version="$(CLI_Roslyn_Version)" />
19-
<PackageReference Include="Microsoft.DiaSymReader.Native" Version="$(CLI_DiaSymNative_Version)" />
19+
<PackageReference Include="Microsoft.DiaSymReader.Native" Version="$(CLI_DiaSymNative_Version)" Condition="'$(OSName)' == 'win'" />
2020
<PackageReference Include="CliDeps.Satellites.Roslyn" Version="$(CLI_Roslyn_Satellites_Version)" />
2121
</ItemGroup>
2222

0 commit comments

Comments
 (0)