Stop making tools.sh changes during source-build (#17664)
Co-authored-by: Michael Simons <msimons@microsoft.com>
This commit is contained in:
parent
b9f8a4b0ed
commit
e051067c46
3 changed files with 56 additions and 23 deletions
|
@ -58,29 +58,6 @@
|
|||
NewText="$(NewText)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="UpdateBuildToolFramework"
|
||||
BeforeTargets="Build"
|
||||
Condition="'$(EngCommonToolsShFile)' != ''"
|
||||
Inputs="$(MSBuildProjectFullPath)"
|
||||
Outputs="$(RepoCompletedSemaphorePath)UpdateBuildToolFramework.complete" >
|
||||
|
||||
<!-- Update the BuildToolFramework for repos that have not adopted the current version of Arcade-->
|
||||
<ReplaceTextInFile InputFile="$(EngCommonToolsShFile)"
|
||||
OldText="_InitializeBuildToolFramework="netcoreapp3.1""
|
||||
NewText="_InitializeBuildToolFramework="$(NetCurrent)"" />
|
||||
<ReplaceTextInFile InputFile="$(EngCommonToolsShFile)"
|
||||
OldText="_InitializeBuildToolFramework="net7.0""
|
||||
NewText="_InitializeBuildToolFramework="$(NetCurrent)"" />
|
||||
|
||||
<!-- Temporary workaround for when the ci option is specified, non-zero exit are swallowed which prevents builds from failing within
|
||||
the build process. https://github.com/dotnet/source-build/issues/2307 -->
|
||||
<ReplaceTextInFile InputFile="$(EngCommonToolsShFile)"
|
||||
OldText="ExitWithExitCode 0"
|
||||
NewText="ExitWithExitCode $exit_code" />
|
||||
|
||||
<WriteLinesToFile File="$(RepoCompletedSemaphorePath)UpdateBuildToolFramework.complete" Overwrite="true" />
|
||||
</Target>
|
||||
|
||||
<Target Name="UpdateNuGetConfig"
|
||||
BeforeTargets="Build"
|
||||
Condition="'$(NuGetConfigFile)' != '' OR '@(NuGetConfigFiles)' != ''"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue