Describe the bug
I used Visual Studio 2022 with latest .Net 6 stable version to create a solution containing a simple WPF project with another MSIX packaging project.
I created a repository on Azure DevOps for this solution and created a build pipeline using the MSIX Build And Package extension as explained in the documentation.
When pipeline is running, it cannot build the solution because even using a windows-latest agent and indicating latest in msbuildVersion parameter. It doesn't recognize project files format.
When looking at the output of the extension, we can see it is not using the latest version of msbuild and msbuildVersion is limited to version 16. Which is not enough for building .NET 6 application.
When I try to reproduce what does the extension using MSBuild extension, I can go further but it fails during compilation with error message below.
[error]C:\hostedtoolcache\windows\dotnet\sdk\6.0.401\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(267,5): Error NETSDK1004: Assets file 'D:\a\1\s\Test.Wpf\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.
Here is the pipeline YAML used to build the solution with the MSIX packaging extension:
Project MSIX Packaging Azure extension
Describe the bug I used Visual Studio 2022 with latest .Net 6 stable version to create a solution containing a simple WPF project with another MSIX packaging project. I created a repository on Azure DevOps for this solution and created a build pipeline using the MSIX Build And Package extension as explained in the documentation. When pipeline is running, it cannot build the solution because even using a
windows-latest
agent and indicatinglatest
inmsbuildVersion
parameter. It doesn't recognize project files format.When looking at the output of the extension, we can see it is not using the latest version of
msbuild
andmsbuildVersion
is limited to version 16. Which is not enough for building .NET 6 application.When I try to reproduce what does the extension using
MSBuild
extension, I can go further but it fails during compilation with error message below.[error]C:\hostedtoolcache\windows\dotnet\sdk\6.0.401\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(267,5): Error NETSDK1004: Assets file 'D:\a\1\s\Test.Wpf\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.
Here is the pipeline YAML used to build the solution with the
MSIX packaging
extension:And here is the one used to build the solution using
VSBuild
extension: