diff options
author | Jeremy Koritzinsky <jekoritz@microsoft.com> | 2021-09-24 23:52:55 +0300 |
---|---|---|
committer | Jeremy Koritzinsky <jekoritz@microsoft.com> | 2021-09-24 23:52:55 +0300 |
commit | 06b45925513ffd034cad3a8686df86b14d1e6682 (patch) | |
tree | 46de5cdc9cc38c59884203fe509157c3efa237e4 /eng/generators.targets | |
parent | d7fe7a6bd11f42f374579dbea098dd4efccf2568 (diff) |
Remove target framework in the call to DllImportGenerator.csproj.
This fixes an issue where a project that targets net7.0-windows accidentally ends up getting an output path pointing to the wrong directory for Microsoft.Interop.SourceGeneration.dll, which causes us to hit https://github.com/dotnet/roslyn/issues/56442.
Diffstat (limited to 'eng/generators.targets')
-rw-r--r-- | eng/generators.targets | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eng/generators.targets b/eng/generators.targets index f81418273a3..45f5cb6c4ba 100644 --- a/eng/generators.targets +++ b/eng/generators.targets @@ -59,7 +59,8 @@ <DefineConstants>$(DefineConstants);DLLIMPORTGENERATOR_INTERNALUNSAFE</DefineConstants> </PropertyGroup> - <MSBuild Projects="$(LibrariesProjectRoot)System.Runtime.InteropServices/gen/DllImportGenerator/DllImportGenerator.csproj"> + <MSBuild Projects="$(LibrariesProjectRoot)System.Runtime.InteropServices/gen/DllImportGenerator/DllImportGenerator.csproj" + RemoveProperties="TargetFramework"> <Output TaskParameter="TargetOutputs" PropertyName="DllImportGeneratorOutputPath" /> </MSBuild> |