Skip to content

Commit

Permalink
Add LangVersion to _GenerateCompileDependencyCache (#9656)
Browse files Browse the repository at this point in the history
Include LangVersion as `CoreCompileCache` to invalidate incremental build in the case when
building with `dotnet build -p:langversion=X` then with `dotnet build -p:langversion=Y`.

Fixes dotnet/roslyn#71678
  • Loading branch information
Youssef1313 authored Jan 23, 2024
1 parent f0936bf commit d51ae52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Tasks/Microsoft.Common.CurrentVersion.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3799,6 +3799,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<CoreCompileCache Include="@(Compile)" />
<CoreCompileCache Include="@(ReferencePath)" />
<CoreCompileCache Include="$(DefineConstants)" />
<CoreCompileCache Include="$(LangVersion)" />
</ItemGroup>

<Hash
Expand Down

0 comments on commit d51ae52

Please sign in to comment.