Skip to content

Commit

Permalink
Merge pull request #3921 from Louis9902/bugfix/drop_nuget_deps_for_ms…
Browse files Browse the repository at this point in the history
…build_package

Mark dependencies as private assets for GitVersion.MsBuild
  • Loading branch information
arturcic authored Feb 20, 2024
2 parents bb5e40a + b57d60a commit f91c014
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/GitVersion.MsBuild/GitVersion.MsBuild.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Build.Utilities.Core" PrivateAssets="All" />
<PackageReference Include="Microsoft.Win32.Registry" PrivateAssets="All" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" PrivateAssets="All" />
<PackageReference Include="Microsoft.Build.Utilities.Core" />
<PackageReference Include="Microsoft.Win32.Registry" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
<!-- Marks all packages as 'local only' so they don't end up in the nuspec. -->
<PackageReference Update="@(PackageReference)" PrivateAssets="All"/>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\GitVersion.BuildAgents\GitVersion.BuildAgents.csproj" PrivateAssets="All" />
<ProjectReference Include="..\GitVersion.Configuration\GitVersion.Configuration.csproj" PrivateAssets="All" />
<ProjectReference Include="..\GitVersion.Core\GitVersion.Core.csproj" PrivateAssets="All" />
<ProjectReference Include="..\GitVersion.Output\GitVersion.Output.csproj" PrivateAssets="All" />
<ProjectReference Include="..\GitVersion.BuildAgents\GitVersion.BuildAgents.csproj" />
<ProjectReference Include="..\GitVersion.Configuration\GitVersion.Configuration.csproj" />
<ProjectReference Include="..\GitVersion.Core\GitVersion.Core.csproj" />
<ProjectReference Include="..\GitVersion.Output\GitVersion.Output.csproj" />
<ProjectReference Update="@(ProjectReference)" PrivateAssets="All"/>
</ItemGroup>

<ItemGroup>
Expand All @@ -38,7 +41,6 @@
<None Include="$(ExePublishPath)/net6.0/publish/**/*;$(BinPath)/net6.0/GitVersion.MsBuild.*" Pack="true" PackagePath="tools/net6.0" />
<None Include="$(ExePublishPath)/net7.0/publish/**/*;$(BinPath)/net7.0/GitVersion.MsBuild.*" Pack="true" PackagePath="tools/net7.0" />
<None Include="$(ExePublishPath)/net8.0/publish/**/*;$(BinPath)/net8.0/GitVersion.MsBuild.*" Pack="true" PackagePath="tools/net8.0" />

</ItemGroup>

</Project>

0 comments on commit f91c014

Please sign in to comment.