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.
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?
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?