Skip to content
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

Closed
ArchieCoder opened this issue Nov 18, 2024 · 6 comments
Closed

Brand new project does not compile in Release #18827

ArchieCoder opened this issue Nov 18, 2024 · 6 comments
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working

Comments

@ArchieCoder
Copy link
Contributor

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

@ArchieCoder ArchieCoder added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Nov 18, 2024
@jeromelaban
Copy link
Member

Thanks for the report, @ArchieCoder. I'm not able to reproduce this issue, can you provide a binlog?

@jeromelaban jeromelaban added triage/needs-information Indicates an issue needs more information in order to work on it. and removed triage/untriaged Indicates an issue requires triaging or verification labels Nov 18, 2024
@ArchieCoder
Copy link
Contributor Author

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'.
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'.
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'.

@github-actions github-actions bot removed the triage/needs-information Indicates an issue needs more information in order to work on it. label Nov 18, 2024
@jeromelaban
Copy link
Member

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 obj get confused.

@ArchieCoder
Copy link
Contributor Author

I actually just reproduced it with a new project again:

1- Create the project Skia + Windows
2- Compile Debug (success)
3- Compile Release

Here is the binlog

UnoApp6_Release_AnyCPU_Build_2024-11-18T16_00_45.6846092-05_00.zip

@jeromelaban
Copy link
Member

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?

@ArchieCoder
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants