In a .Net MAUI application, I would like to get the current position of the device. The code looks like it works (tested in another environment), but during the building I get the following error message:
Could not find file 'C:***********\bin\Debug\net6.0-windows10.0.19041.0\ win10-x64\AppxManifest.xml'
The file is really missing, it is not created during the build. How to force Visual Studio 2022 to create it?
Environment: Windows 10, .Net 6.0, VS2022
Thank you in advance for your help!
I created the file manually, the build is ok, but this is not a solution for a longer time
We have a similar issue in github and thanks for the workaround shared by @wulf11 which is confirmed by OP that he modified the csproj, to automatically copy the missing file to the right place.
In the workaround, it still requires to create the folder MsixContent
and insert the AppxManifest.xml manually after dotnet build
and dotnet publish
.