Open HaoLife opened 7 months ago
Thanks for the report. The attached sample is not reproducing the issue for me. For build issues, make sure to include a binlog.
It's not compilation, it's publishing Properties/PublishProfiles/win-x64.pubxml
Thanks. This is likely a visual studio bug, but in general, it's not a good idea to use the UI to build app packages.
You can take a look at this for making packages using the CLI: https://learn.microsoft.com/en-us/windows/apps/package-and-deploy/ci-for-winui3?pivots=winui3-packaged-csharp
The default template is like this! Microsoft's support for Winui3 is still relatively poor
@HaoLife when you're saying that the default template is like this, you mean that it fails the same way the uno template does?
The official Winui3 template from Microsoft can be used for publishing, but uno's default template will fail. I can't find the reason, even without Uno Compile with Sdk sdk.
same to me
dotnet build Counter.Windows /p:Configuration=Release /p:Platform=x64
can build ok, but application can not execute
Current behavior
Path error when Configuration equals release (Uno.Sdk)
log:
Cannot resolve Assembly or Windows Metadata file 'C:\Users\w4384\Desktop\temp\UnoAppSdkBuild\UnoAppSdkBuild\bin\Release\net8.0-windows10.0.19041\win-x64\UnoAppSdkBuild.dll'
Why does the win-x64 directory appear UnoAppSdkBuild.zip
Expected behavior
No response
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
Windows
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response