Skip to content

Commit

Permalink
[release/9.0] Workaround to allow rc1 uptake (#15077)
Browse files Browse the repository at this point in the history
Co-authored-by: Rainer Sigwald <raines@microsoft.com>
  • Loading branch information
github-actions[bot] and rainersigwald committed Sep 11, 2024
1 parent 65260b1 commit 09d7ff6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/Microsoft.DotNet.Arcade.Sdk/tools/Workarounds.targets
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,29 @@
</ItemGroup>
</Target>

<!-- BEGIN workaround for https://github.com/dotnet/sdk/issues/43339; remove after updated to VS 17.12 or a future 17.11 patch -->
<Target Name="WorkaroundDotnetSdk43339" BeforeTargets="ResolvePackageAssets" Condition=" '$(MSBuildRuntimeType)' == 'Full' and $([MSBuild]::VersionLessThan($(MSBuildVersion), 17.12.0))">
<PrimeSystemTextJson804 />
</Target>
<UsingTask
TaskName="PrimeSystemTextJson804"
TaskFactory="RoslynCodeTaskFactory"
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll" >
<Task>
<Code Type="Fragment" Language="cs">
<![CDATA[
try
{
System.Reflection.Assembly.LoadFrom(@"$(MicrosoftNETBuildTasksDirectoryRoot)\..\..\..\DotnetTools\dotnet-format\BuildHost-net472\System.Text.Json.dll");
}
catch
{
// Best effort: if something moves in the SDK don't break the build.
}
]]>
</Code>
</Task>
</UsingTask>
<!-- END workaround for https://github.com/dotnet/sdk/issues/43339 -->

</Project>

0 comments on commit 09d7ff6

Please sign in to comment.