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

增加分版本的package引用和framework引用 #113

Closed lindexi closed 2 years ago

lindexi commented 2 years ago

行为变更:

  <ItemGroup Condition="$(DisableSourcePackageAutoPrivateAssets) != 'true'">
    <!-- 用于修复设置了 DevelopmentDependency 将不自动添加依赖 -->
    <!-- 参阅 https://github.com/dotnet-campus/SourceYard/issues/112 -->
    <PackageReference Update="#(PackageId)">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>all</IncludeAssets>
    </PackageReference>
  </ItemGroup>

代码变更逻辑:

Fixes #87

See https://github.com/dotnet-campus/SourceYard/pull/111

感谢 @Zhuangkh

因为 https://github.com/dotnet-campus/SourceYard/pull/111 在你的仓库里,我没有权限向此分支提交,因此重新开启此 PR 但这是在你的基础上进行更改的

lindexi commented 2 years ago

See https://github.com/dotnet/msbuild/issues/3787

lindexi commented 2 years ago

多个框架分别使用不同的 NuGet 包完成

图片

lindexi commented 2 years ago

支持多框架依赖

图片