Closed Zhuangkh closed 3 years ago
设置DevelopmentDependency时,不单会设置PrivateAssets为all,同时也会将IncludeAssets设置为runtime; build; native; contentfiles; analyzers; buildtransitive,这会导致不会自动去加载源码包使用的其他nuget库.
DevelopmentDependency
PrivateAssets
all
IncludeAssets
runtime; build; native; contentfiles; analyzers; buildtransitive
不知有没有办法改变PrivateAssets时不去改变IncludeAssets的默认行为
这就是https://github.com/dotnet-campus/SourceYard/pull/111 无法加载依赖的问题来源
https://github.com/NuGet/Home/issues/7084#issuecomment-418655374 使用这个办法解决
设置
DevelopmentDependency
时,不单会设置PrivateAssets
为all
,同时也会将IncludeAssets
设置为runtime; build; native; contentfiles; analyzers; buildtransitive
,这会导致不会自动去加载源码包使用的其他nuget库.不知有没有办法改变PrivateAssets时不去改变IncludeAssets的默认行为