We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Take an example project like:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net5.0</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="nuget.common" Version="5.6.0" ExcludeAssets="build" /> </ItemGroup> </Project>
NuGet.exe would restore with Include="all" MSbuild.exe would restore with excludeassets build.
The problem is that the the flags don't round trip. See relevant code:
https://github.com/NuGet/NuGet.Client/blob/fc9dd52fcdf3c9a299a96de39b641b7c91779b5e/src/NuGet.Core/NuGet.LibraryModel/LibraryIncludeFlagUtils.cs#L26-L69
compile, runtime, contentFiles, native, analyzers, buildtransitive ends up being parsed to all.
compile, runtime, contentFiles, native, analyzers, buildtransitive
The text was updated successfully, but these errors were encountered:
I work rounded this by inversing "ExcludeAssets" to "IncludeAssets". Basically you list all the types you want to include: compile and etcs.
Sorry, something went wrong.
No branches or pull requests
Take an example project like:
NuGet.exe would restore with Include="all"
MSbuild.exe would restore with excludeassets build.
The problem is that the the flags don't round trip. See relevant code:
https://github.com/NuGet/NuGet.Client/blob/fc9dd52fcdf3c9a299a96de39b641b7c91779b5e/src/NuGet.Core/NuGet.LibraryModel/LibraryIncludeFlagUtils.cs#L26-L69
compile, runtime, contentFiles, native, analyzers, buildtransitive
ends up being parsed to all.The text was updated successfully, but these errors were encountered: