Skip to content

Commit

Permalink
Replace NuGet.Frameworks nuget to workaround FLE
Browse files Browse the repository at this point in the history
Previous commit adding the nuget reference didn't work. This is
a workaround that works:
dotnet/roslyn#61454 (comment)
  • Loading branch information
knocte authored and webwarrior-ws committed Feb 12, 2024
1 parent 1cafcf9 commit 27d08e0
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="FSharp.Compiler.Service" />
<PackageReference Include="Microsoft.Build.Locator" />
<PackageReference Include="NuGet.Frameworks" />
</ItemGroup>

<!-- workaround for NuGet.Frameworks FileLoadException issue,
see https://github.com/dotnet/roslyn/issues/61454#issuecomment-1191209761 -->
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Copy SourceFiles="$(MSBuildSDKsPath)\..\NuGet.Frameworks.dll"
DestinationFolder="$(OutputPath)"
ContinueOnError="false" />
</Target>
</Project>

0 comments on commit 27d08e0

Please sign in to comment.