Skip to content

Commit

Permalink
Fixes dotnet#4924
Browse files Browse the repository at this point in the history
Replaces the name of the project file with the MSBuildProjectName variable
  • Loading branch information
iliar-turdushev committed Sep 3, 2024
1 parent 904dda2 commit 35b0971
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@
<None Include="buildTransitive\$(MSBuildProjectName).targets"
CopyToOutputDirectory="PreserveNewest"
Pack="true"
PackagePath="buildTransitive\net462\Microsoft.Extensions.Http.Resilience.net462.targets" />
PackagePath="buildTransitive\net462\$(MSBuildProjectName).net462.targets" />
</ItemGroup>

<!-- For net462 we automatically add the .targets file, and to include the code that checks the version of the
Grpc.Net.ClientFactory package we need to set the _AdditionalNETStandardCompatErrorFileContents variable. -->
<PropertyGroup>
<_AdditionalNETStandardCompatErrorFileContents>
<![CDATA[
<Import Project="%24(MSBuildThisFileDirectory)\Microsoft.Extensions.Http.Resilience.net462.targets" />
<Import Project="%24(MSBuildThisFileDirectory)\$(MSBuildProjectName).net462.targets" />
]]>
</_AdditionalNETStandardCompatErrorFileContents>
</PropertyGroup>
Expand Down

0 comments on commit 35b0971

Please sign in to comment.