Skip to content

Commit

Permalink
Fix AOT intermediate output path
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongin committed Sep 17, 2023
1 parent e403e14 commit 16beecb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
</PropertyGroup>

<PropertyGroup Condition=" '$(PublishAot)' == 'true' ">
<!-- Modify the build output path when publishing for AOT. This enables separately compiling
<!-- Modify the build output paths when publishing for AOT. This enables separately compiling
AOT and non-AOT flavors of the same project, which is necessary because .NET 8 blocks
dynamic code generation even in the managed assembly if AOT is enabled at compile time. -->
<OutputPath>$(BaseOutputPath)bin/$(Configuration)/$(MSBuildProjectName)/aot/</OutputPath>
<BaseIntermediateOutputPath>$(BaseIntermediateOutputPath)aot/</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<StripSymbols>true</StripSymbols>
</PropertyGroup>
Expand Down

0 comments on commit 16beecb

Please sign in to comment.