Skip to content

Commit

Permalink
Fix publish errors
Browse files Browse the repository at this point in the history
- Fix NETSDK1204 error as cannot publish AoT on macOS.
- Fix NETSDK1201 error on Linux and Windows.
  • Loading branch information
martincostello committed Nov 9, 2023
1 parent 85a4c03 commit 085208c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/Polly.AotTest/Polly.AotTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
<PropertyGroup>
<Nullable>enable</Nullable>
<OutputType>Exe</OutputType>
<PublishAot>true</PublishAot>
<SKIP_POLLY_ANALYZERS>true</SKIP_POLLY_ANALYZERS>
<SelfContained>true</SelfContained>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="!$([System.OperatingSystem]::IsMacOS())">
<PublishAot>true</PublishAot>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Polly.Core\Polly.Core.csproj" />
<ProjectReference Include="..\..\src\Polly.Extensions\Polly.Extensions.csproj" />
Expand Down

0 comments on commit 085208c

Please sign in to comment.