Fix up runtimeconfig.json files for tools (dotnet, MSBuild, VSTest, etc) to target .NET Core 3.0
This commit is contained in:
parent
ec9914424c
commit
b3be19b820
1 changed files with 7 additions and 5 deletions
|
@ -25,7 +25,7 @@
|
|||
PublishDotnetTools;
|
||||
PublishVersionFile;
|
||||
PublishAppHostTemplate;
|
||||
RetargetVSTestConsole;
|
||||
RetargetTools;
|
||||
GenerateMSBuildExtensions"
|
||||
AfterTargets="Publish" />
|
||||
|
||||
|
@ -258,15 +258,17 @@
|
|||
DependsOnTargets="GetNuGetPackagesArchive">
|
||||
</Target>
|
||||
|
||||
<Target Name="RetargetVSTestConsole">
|
||||
<Target Name="RetargetTools">
|
||||
<PropertyGroup>
|
||||
<VSTestRuntimeConfigPath>$(PublishDir)/vstest.console.runtimeconfig.json</VSTestRuntimeConfigPath>
|
||||
<ReplacementPattern>"version": ".*"</ReplacementPattern>
|
||||
<ReplacementString>"version": "$(MicrosoftNETCoreAppPackageVersion)"</ReplacementString>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ToolRuntimeConfigPath Include="$(PublishDir)/**/*.runtimeconfig.json" />
|
||||
</ItemGroup>
|
||||
<ReplaceFileContents
|
||||
InputFiles="$(VSTestRuntimeConfigPath)"
|
||||
DestinationFiles="$(VSTestRuntimeConfigPath)"
|
||||
InputFiles="@(ToolRuntimeConfigPath)"
|
||||
DestinationFiles="@(ToolRuntimeConfigPath)"
|
||||
ReplacementPatterns="$(ReplacementPattern)"
|
||||
ReplacementStrings="$(ReplacementString)" />
|
||||
</Target>
|
||||
|
|
Loading…
Reference in a new issue