✅ trying to build a single file WPF app but the publish dialog box looks nothing like the docs
I had to use upgrade assistant to upgrade. So now I'm on 6.0 which is great but I am getting a build error:
MSB4094 "publish\Application Files\mileage-calculator_1_0_0_0\mileage-calculator.exe.manifest;publish\Application Files\mileage-calculator_1_0_0_1\mileage-calculator.exe.manifest" is an invalid value for the "InputManifest" parameter of the "GenerateApplicationManifest" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem". mileage-calculator C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 4269
MSB4094 "publish\Application Files\mileage-calculator_1_0_0_0\mileage-calculator.exe.manifest;publish\Application Files\mileage-calculator_1_0_0_1\mileage-calculator.exe.manifest" is an invalid value for the "InputManifest" parameter of the "GenerateApplicationManifest" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem". mileage-calculator C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 4269
✅ trying to build a single file WPF app but the publish dialog box looks nothing like the docs
I tried CLI too: dotnet publish -r win-x64 and got this:
Determining projects to restore...
Nothing to do. None of the projects specified contain packages to restore.
C:\Program Files\dotnet\sdk\8.0.303\Microsoft.Common.CurrentVersion.targets(3398,5): error MSB4216: Could not run the "GenerateResource" task because MSBuild could not create or connect to a task host with runtime "NET" and architecture "x86". Please ensure that (1) the requested
runtime and/or architecture are available on the machine, and (2) that the required executable "C:\Program Files\dotnet\sdk\8.0.303\MSBuild.dll" exists and can be run. [C:\Users\...\source\repos\mileage-calculator\mileage-calculator\mileage-calculator.csproj]
C:\Program Files\dotnet\sdk\8.0.303\Microsoft.Common.CurrentVersion.targets(3422,7): error MSB4028: The "GenerateResource" task's outputs could not be retrieved from the "FilesWritten" parameter. Object does not match target type. [C:\Users\...\source\repos\mileage-calculator\mileag
e-calculator\mileage-calculator.csproj]
Determining projects to restore...
Nothing to do. None of the projects specified contain packages to restore.
C:\Program Files\dotnet\sdk\8.0.303\Microsoft.Common.CurrentVersion.targets(3398,5): error MSB4216: Could not run the "GenerateResource" task because MSBuild could not create or connect to a task host with runtime "NET" and architecture "x86". Please ensure that (1) the requested
runtime and/or architecture are available on the machine, and (2) that the required executable "C:\Program Files\dotnet\sdk\8.0.303\MSBuild.dll" exists and can be run. [C:\Users\...\source\repos\mileage-calculator\mileage-calculator\mileage-calculator.csproj]
C:\Program Files\dotnet\sdk\8.0.303\Microsoft.Common.CurrentVersion.targets(3422,7): error MSB4028: The "GenerateResource" task's outputs could not be retrieved from the "FilesWritten" parameter. Object does not match target type. [C:\Users\...\source\repos\mileage-calculator\mileag