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

Impossible to compile in Release with the WinAppSDK Unpackaged target #16753

Closed
ArchieCoder opened this issue May 16, 2024 · 5 comments
Closed
Labels
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

Comments

@ArchieCoder
Copy link
Contributor

ArchieCoder commented May 16, 2024

Current behavior

I get the following error with a brand new project or my current project:

C:\Users\USERNAME.nuget\packages\microsoft.windowsappsdk\1.5.240404000\buildTransitive\Microsoft.WindowsAppSDK.SelfContained.targets(36,9): error : The platform 'AnyCPU' is not supported for Self Contained mode.

Expected behavior

It should compile as debug

How to reproduce it (as minimally and precisely as possible)

1- Create new project
2- Select Release
3- F5 / Compile

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

Windows (WinAppSDK)

IDE

Visual Studio 2022

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 May 16, 2024
@jeromelaban
Copy link
Member

Thanks for the report. This has just been fixed in the 5.2.132 release. In general, you can also try reproducing issues by upgrading to the latest dev builds to see if it's fixed or not.

@ArchieCoder
Copy link
Contributor Author

How to know the latest build version? It's not mentioned on GitHub.

@jeromelaban
Copy link
Member

See in this doc on how to update the Uno.Sdk (don't forget to upvote this issue!)

@ArchieCoder
Copy link
Contributor Author

For "big" Microsoft issue like this, I would not hold by breathe for a fix anytime soon.

What about a step in the compilation that checks once a day if a new SDK is available? It could modify global.json OR warn in the output.

@jeromelaban
Copy link
Member

The nuget team has expressed direct interest in building this feature, so you can hold your breath a bit ;) Still, we're thinking about providing a top banner in VS to mention that there's an update in the uno.sdk.

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 triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

2 participants