-
Notifications
You must be signed in to change notification settings - Fork 742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brand new project does not compile in Release #18827
Comments
Thanks for the report, @ArchieCoder. I'm not able to reproduce this issue, can you provide a binlog? |
It works now 🤔. I did nothing different. There are 3 weird errors below. If the warnings are harmless, you can close the issue. Thanks. UnoAppRelease_Release_AnyCPU_Build_2024-11-18T15_44_49.6685370-05_00.zip 1>CSC : warning CS8785: Generator 'ServerProcessorGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'InvalidOperationException' with message 'Sequence contains no elements'. |
Thanks! Those three errors will be fixed in a upcoming uno.sdk service release. Would you have changed the target framework between tests? Or maybe built with a different version of VS? Sometimes the caches in |
I actually just reproduced it with a new project again: 1- Create the project Skia + Windows Here is the binlog UnoApp6_Release_AnyCPU_Build_2024-11-18T16_00_45.6846092-05_00.zip |
I just tried your steps, but I still can't repro. I would not be surprised if it's some kind of design-time issue in winappsdk. Does it happen if you clear the obj and build again? |
Deleting the obj/bin does the job. I even got the error when creating a blank solution + compile in debug. I think I know the issue: I was not patient enough to let the solution loads completely before building. If I wait long enough, it works. |
Current behavior
I have this error:
1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ConflictResolution.targets(112,5): error NETSDK1152: Found multiple publish output files with the same relative path: D:\source\UnoAppRelease\UnoAppRelease\obj\Release\net8.0-windows10.0.26100\MsixContent\resources.pri, D:\source\UnoAppRelease\UnoAppRelease\bin\Release\net8.0-windows10.0.26100\resources.pri.
Expected behavior
No compilation error
How to reproduce it (as minimally and precisely as possible)
1- Create new project, select Skia (Desktop/Linux/Mac) and Windows only
2- Change target to Release
3- Compile
UnoAppRelease.zip
Workaround
No response
Works on UWP/WinUI
No
Environment
No response
NuGet package version(s)
"Uno.Sdk": "5.5.43"
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: