microsoft / dotnet

This repo is the official home of .NET on GitHub. It's a great starting point to find many .NET OSS projects from Microsoft and the community, including many that are part of the .NET Foundation.
https://devblogs.microsoft.com/dotnet/
MIT License
14.31k stars 2.21k forks source link

"ProgramW6432" environment variable is missing on 32-bit systems #1343

Closed chrisdaiii closed 2 years ago

chrisdaiii commented 2 years ago

On 32-bit systems use: dotnet msbuild WebApplication1.csproj -t:publish /p:PublishProfile=IISProfile

Output error: C:\Program Files\dotnet\sdk\6.0.300\Sdks\Microsoft.Net.Sdk.Publish\targets\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeploy.targets(171,5): error MSB6004: The specified task executable location "%ProgramW6432%\IIS\Microsoft Web Deploy V3\msdeploy.exe" is invalid.

The system has installed 32-bit WebDeploy, and the publish can be successful only after I manually set the "ProgramW6432" environment variable. Is this a bug of dotnet or msbuild?

richlander commented 2 years ago

Moved to https://github.com/dotnet/sdk/issues/25895.