dotnet-campus / SourceYard

Add a NuGet package only for dll reference? By using dotnetCampus.SourceYard, you can pack a NuGet package with source code. By installing the new source code package, all source codes behaviors just like it is in your project.
MIT License
51 stars 12 forks source link

DevelopmentDependency设置 #112

Closed Zhuangkh closed 3 years ago

Zhuangkh commented 3 years ago

设置DevelopmentDependency时,不单会设置PrivateAssetsall,同时也会将IncludeAssets设置为runtime; build; native; contentfiles; analyzers; buildtransitive,这会导致不会自动去加载源码包使用的其他nuget库.

不知有没有办法改变PrivateAssets时不去改变IncludeAssets的默认行为

Zhuangkh commented 3 years ago

这就是https://github.com/dotnet-campus/SourceYard/pull/111 无法加载依赖的问题来源

Zhuangkh commented 3 years ago

https://github.com/NuGet/Home/issues/7084#issuecomment-418655374 使用这个办法解决