Skip to content

Commit 17b01e4

Browse files
committed
Use SystemRoot instead of hardcoded C-drive
1 parent 4e95679 commit 17b01e4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/WasmComponent.Sdk/WasmComponent.Sdk.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</PropertyGroup>
3131

3232
<PropertyGroup>
33-
<TarPath Condition="'$(TarPath)' == '' and $([MSBuild]::IsOSPlatform('Windows'))">C:\Windows\System32\tar.exe</TarPath>
33+
<TarPath Condition="'$(TarPath)' == '' and $([MSBuild]::IsOSPlatform('Windows'))">$(SystemRoot)\System32\tar.exe</TarPath>
3434
<TarPath Condition="'$(TarPath)' == ''">tar</TarPath>
3535
</PropertyGroup>
3636

src/WitBindgen/WitBindgen.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</PropertyGroup>
3535

3636
<PropertyGroup>
37-
<TarPath Condition="'$(TarPath)' == '' and $([MSBuild]::IsOSPlatform('Windows'))">C:\Windows\System32\tar.exe</TarPath>
37+
<TarPath Condition="'$(TarPath)' == '' and $([MSBuild]::IsOSPlatform('Windows'))">$(SystemRoot)\System32\tar.exe</TarPath>
3838
<TarPath Condition="'$(TarPath)' == ''">tar</TarPath>
3939
</PropertyGroup>
4040

src/WitBindgen/build/BytecodeAlliance.Componentize.DotNet.WitBindgen.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</PropertyGroup>
1313

1414
<PropertyGroup>
15-
<TarPath Condition="'$(TarPath)' == '' and $([MSBuild]::IsOSPlatform('Windows'))">C:\Windows\System32\tar.exe</TarPath>
15+
<TarPath Condition="'$(TarPath)' == '' and $([MSBuild]::IsOSPlatform('Windows'))">$(SystemRoot)\System32\tar.exe</TarPath>
1616
<TarPath Condition="'$(TarPath)' == ''">tar</TarPath>
1717
</PropertyGroup>
1818

test/WasmtimeCliFetcher/FetchWasmtime.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</PropertyGroup>
1919

2020
<PropertyGroup>
21-
<TarPath Condition="'$(TarPath)' == '' and $([MSBuild]::IsOSPlatform('Windows'))">C:\Windows\System32\tar.exe</TarPath>
21+
<TarPath Condition="'$(TarPath)' == '' and $([MSBuild]::IsOSPlatform('Windows'))">$(SystemRoot)\System32\tar.exe</TarPath>
2222
<TarPath Condition="'$(TarPath)' == ''">tar</TarPath>
2323
</PropertyGroup>
2424

0 commit comments

Comments
 (0)