Skip to content

Commit

Permalink
Exclude NuGet assemblies from dotnet core Feed package (#4684)
Browse files Browse the repository at this point in the history
  • Loading branch information
chcosta authored Jan 25, 2020
1 parent 668181c commit 841c83d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<DevelopmentDependency>true</DevelopmentDependency>
<PackageType>MSBuildSdk</PackageType>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
<_ExcludeNuGetAssembliesTargetFramework>netcoreapp2.1</_ExcludeNuGetAssembliesTargetFramework>
</PropertyGroup>

<ItemGroup>
Expand All @@ -23,5 +24,12 @@
<ProjectReference Include="..\Microsoft.DotNet.VersionTools\lib\Microsoft.DotNet.VersionTools.csproj" />
</ItemGroup>

<!-- Exclude NuGet package assemblies per https://github.com/dotnet/arcade/issues/1965 -->
<Target Name="ExcludeNuGetPackagesFromNetCore" BeforeTargets="GenerateNuspec">
<ItemGroup>
<_PackageFilesToExclude Include="%(_PackageFiles.Identity)" Condition="$([System.String]::Copy('%(_PackageFiles.FileName)').StartsWith('NuGet')) and $([System.String]::Copy('%(_PackageFiles.Directory)').Contains('$(_ExcludeNuGetAssembliesTargetFramework)'))" />
</ItemGroup>
</Target>

<Import Project="$(RepoRoot)eng\BuildTask.targets" />
</Project>

0 comments on commit 841c83d

Please sign in to comment.