Exclude Desktop framework assemblies in the "Extensions" folder from crossgen.

Work around MSBuild globbing bug in a Target by just excluding the one assembly.

See https://github.com/Microsoft/msbuild/issues/2631
This commit is contained in:
Eric Erhardt 2017-10-11 12:52:31 -05:00
parent ce29ec42e8
commit 484714df1b

View file

@ -199,7 +199,8 @@
AfterTargets="PublishMSBuildExtensions">
<ItemGroup>
<!-- Removing Full CLR built TestHost assemblies from getting Crossgen as it is throwing error -->
<SdkFiles Include="$(PublishDir)/**/*" Exclude="$(PublishDir)/TestHost*/**/*;$(PublishDir)/Sdks/**/*" />
<SdkFiles Include="$(PublishDir)/**/*"
Exclude="$(PublishDir)/TestHost*/**/*;$(PublishDir)/Sdks/**/*;$(PublishDir)/**/Microsoft.TestPlatform.Extensions.EventLogCollector.dll" />
<!-- Don't try to CrossGen .NET Framework support assemblies for .NET Standard -->
<SdkFiles Remove="$(PublishDir)/Microsoft\Microsoft.NET.Build.Extensions\net*\**\*" />