Skip to content

Commit

Permalink
修复设置了 DevelopmentDependency 将不自动添加依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Nov 19, 2021
1 parent eeb8df7 commit 263e69c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/Version.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>0.1.19393-alpha07</Version>
<Version>0.1.19393-alpha09</Version>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion sample/App/AppUsingSource/AppUsingSource.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="TheLib.Source" Version="1.0.3-alpha03" />
<PackageReference Include="TheLib.Source" Version="1.0.3-alpha05" />
</ItemGroup>
<Import Condition="Exists('obj\AppUsingSource.csproj.nuget.g.targets') " Project="obj\AppUsingSource.csproj.nuget.g.targets" />
</Project>
2 changes: 1 addition & 1 deletion sample/App/TheLib/TheLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="dotnetCampus.SourceYard" Version="0.1.19393-alpha06">
<PackageReference Include="dotnetCampus.SourceYard" Version="0.1.19393-alpha09">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion sample/build/Version.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.0.3-alpha03</Version>
<Version>1.0.3-alpha05</Version>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<Project>

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

<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
Expand Down

0 comments on commit 263e69c

Please sign in to comment.