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
This commit is contained in:
Matt Ellis 2017-06-06 17:55:18 -07:00
parent 7d867047e1
commit cde3a8bcb2
2 changed files with 9 additions and 1 deletions

View file

@ -142,6 +142,14 @@
AssetPath="%(NuPkgContentForMSBuildExtensionsRelativePaths.Identity)" />
</Target>
<!-- The msdia140typelib_clr0200.dll file is not MIT licensed (and it only used on Windows). Remove it, so
we can MIT license the published dotnet -->
<Target Name="RemoveMSDiaTypeLib"
AfterTargets="Publish"
Condition="'$(OSName)' != 'win'">
<Delete Files="$(PublishDir)/TestHost/msdia140typelib_clr0200.dll" />
</Target>
<Target Name="PublishSdks"
AfterTargets="Publish">
<ItemGroup>

View file

@ -16,7 +16,7 @@
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(CLI_Roslyn_Version)" />
<PackageReference Include="Microsoft.CodeAnalysis.Build.Tasks" Version="$(CLI_Roslyn_Version)" />
<PackageReference Include="Microsoft.Net.Compilers.netcore" Version="$(CLI_Roslyn_Version)" />
<PackageReference Include="Microsoft.DiaSymReader.Native" Version="$(CLI_DiaSymNative_Version)" />
<PackageReference Include="Microsoft.DiaSymReader.Native" Version="$(CLI_DiaSymNative_Version)" Condition="'$(OSName)' == 'win'" />
<PackageReference Include="CliDeps.Satellites.Roslyn" Version="$(CLI_Roslyn_Satellites_Version)" />
</ItemGroup>