Skip to content

Commit

Permalink
Use ProduceReferenceAssembly for faster incremental builds
Browse files Browse the repository at this point in the history
This produces a `ref` folder (e.g. `bin/Debug/ref/Project.dll`) that contains the surface API of the project. Other projects which reference that assembly may avoid rebuilding themselves when the referenced project's surface area did not change, even if its internals did. This can help prevent cascading project builds when simple changes are made at low levels in the dependency graph.
  • Loading branch information
drewnoakes committed Apr 14, 2021
1 parent 0d24057 commit 80a06d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Directory.Build.props
Expand Up @@ -36,6 +36,8 @@

<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<ForceGenerationOfBindingRedirects>true</ForceGenerationOfBindingRedirects>

<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
</PropertyGroup>

<!--
Expand Down

0 comments on commit 80a06d7

Please sign in to comment.