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

Support for net9 Uno Platform class library #1103

Open
digger73 opened this issue Nov 15, 2024 · 2 comments
Open

Support for net9 Uno Platform class library #1103

digger73 opened this issue Nov 15, 2024 · 2 comments
Labels
kind/enhancement New feature or request.

Comments

@digger73
Copy link

Current behavior

In a newly created UNO platform solution targeting .Net9, creating a new project (uno platform library) results in the project targeting .Net8.
Uno-check, Uno-templates and Uno were updated before creating the solution.

Expected behavior

Would expect the new project to target .Net9 like the solution created.

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

No response

Workaround

Edit the newly added project file to target .Net9 (copy paste the targetframework from the project file created when the solution was created.)

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

Build tasks

IDE

Visual Studio 2022

IDE version

17.12.0

Relevant plugins

No response

Anything else we need to know?

No response

@digger73 digger73 added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Nov 15, 2024
@jeromelaban
Copy link
Member

Thanks for the report.

At this time, the class library template does not have a net9 version, only net8. You'll notice that there's no choice either in the template itself to do so. What you did you update the csproj manually is the way to go at this time.

@jeromelaban jeromelaban changed the title Creating a new "Uno Platform library" in a solution targeting net9, results in the newly created project to have .net8 dependencies Support for net9 Uno Platform class library Nov 15, 2024
@jeromelaban jeromelaban transferred this issue from unoplatform/uno Nov 15, 2024
@jeromelaban jeromelaban added kind/enhancement New feature or request. and removed kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Nov 15, 2024
@jeromelaban
Copy link
Member

jeromelaban commented Nov 15, 2024

It's supported by the dotnet new command line, though, where you can specify the -tfm parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants