-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workaround to sample projects (#576)
- Loading branch information
1 parent
64721c9
commit fe2d847
Showing
7 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<Project> | ||
<Sdk Name="Microsoft.Build.CentralPackageVersions" Version="2.1.3" /> | ||
<Import Project="$(MSBuildThisFileDirectory)\..\Directory.Build.targets" /> | ||
</Project> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<Project> | ||
<!-- 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> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.