Correct `<Exec />` commands on Windows to handle spaces in root path (#18285)
- #15055 - add a few more quotation marks
This commit is contained in:
parent
761dc53857
commit
d0c71edd84
|
|
@ -101,7 +101,7 @@
|
|||
<Copy SourceFiles="$(PackageJson)" DestinationFiles="$(_BackupPackageJson)" />
|
||||
|
||||
<Yarn Command="version --no-git-tag-version --new-version $(PackageVersion)" />
|
||||
<Exec Command="node $(MSBuildThisFileDirectory)..\scripts\update-packagejson-links.js $(PackageJson) $(PackageVersion)" />
|
||||
<Exec Command="node "$(MSBuildThisFileDirectory)..\scripts\update-packagejson-links.js" "$(PackageJson)" $(PackageVersion)" />
|
||||
<Yarn Command="pack --filename $(PackageFileName)" />
|
||||
|
||||
<Move SourceFiles="$(_PackageTargetPath)" DestinationFolder="$(PackageOutputPath)" />
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
|||
Condition="'$(IsPackable)' == 'true'">
|
||||
<PropertyGroup>
|
||||
<_TarCommand>tar</_TarCommand>
|
||||
<_TarCommand Condition="Exists('$(RepoRoot).tools\tar.exe')">$(RepoRoot).tools\tar.exe</_TarCommand>
|
||||
<_TarCommand Condition="Exists('$(RepoRoot).tools\tar.exe')">"$(RepoRoot).tools\tar.exe"</_TarCommand>
|
||||
|
||||
<!-- For the tar packed with git, transform e.g. "C:\root\AspNetCore\File.tar.gz" to "/C/root/AspNetCore/File.tar.gz". -->
|
||||
<_TarArchiveOutputPath>$(TarArchiveOutputPath)</_TarArchiveOutputPath>
|
||||
|
|
@ -209,8 +209,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
|||
Overwrite="true" />
|
||||
|
||||
<!-- Requires Windows 10 version 1803 or newer -->
|
||||
<Message Importance="High" Text="Executing: $(_TarCommand) -czf $(_TarArchiveOutputPath) ." />
|
||||
<Exec Command="$(_TarCommand) -czf $(_TarArchiveOutputPath) ."
|
||||
<Message Importance="High" Text="Executing: $(_TarCommand) -czf "$(_TarArchiveOutputPath)" ." />
|
||||
<Exec Command="$(_TarCommand) -czf "$(_TarArchiveOutputPath)" ."
|
||||
WorkingDirectory="$(TargetingPackLayoutRoot)" />
|
||||
|
||||
<Message Importance="High" Text="$(MSBuildProjectName) -> $(TarArchiveOutputPath)" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue