You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting this error while trying to build my WinUI3 application with msbuild via CLI: error MSB4062: The "Microsoft.Build.Packaging.Pri.Tasks.ExpandPriContent" task could not be loaded from the assembly
It is also worth noting that I am able to build my MSIX with no issues while using Visual Studio 2022 with the Pack command.
The command I am using to create the MSIX via command line with msbuild is as follows:
I see multiple reports of this occuring with dotnet build, but all recommend to use msbuild instead as the Windows App SDK does not currently support dotnet build.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting this error while trying to build my WinUI3 application with msbuild via CLI:
error MSB4062: The "Microsoft.Build.Packaging.Pri.Tasks.ExpandPriContent" task could not be loaded from the assembly
It is also worth noting that I am able to build my MSIX with no issues while using Visual Studio 2022 with the Pack command.
The command I am using to create the MSIX via command line with msbuild is as follows:
In my project file as well, I have enabled all of the following options:
I see multiple reports of this occuring with
dotnet build
, but all recommend to use msbuild instead as the Windows App SDK does not currently supportdotnet build
.Related issues where I've seen this error:
DotNet Repo
WindowsAppSDK Repo
Would appreciate any and all assistance.
Beta Was this translation helpful? Give feedback.
All reactions