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

Command dotnet new classlib - How to choose different target framework than the defaults #34239

Closed
joramvanhaerens opened this issue Feb 23, 2023 · 1 comment
Assignees
Labels
cli/subsvc dotnet-fundamentals/svc Pri1 High priority, do before Pri2 and Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.

Comments

@joramvanhaerens
Copy link

joramvanhaerens commented Feb 23, 2023

It is also possible to choose a different target framework than the defaults when using dotnet new classlib, but it's not mentioned in the documentation how.

Replace command parameter --framework with e.g. --target-framework-override net462 to install Net Framework 4.6.2.

I believe you can find the official frameworks abbreviations listed here.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 65743

@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Feb 23, 2023
@issues-automation issues-automation bot added cli/subsvc dotnet-fundamentals/svc Pri1 High priority, do before Pri2 and Pri3 labels Feb 23, 2023
@tdykstra tdykstra self-assigned this Feb 23, 2023
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Feb 23, 2023
@tdykstra tdykstra added the 🗺️ reQUEST Triggers an issue to be imported into Quest. label Feb 23, 2023
@github-actions github-actions bot added 📌 seQUESTered Identifies that an issue has been imported into Quest. and removed 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Feb 23, 2023
@tdykstra
Copy link
Contributor

The --target-framework-override option is hidden pending a decision on whether to remove it. See dotnet/templating#3261. You can accomplish the same purpose by editing the project file after project creation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli/subsvc dotnet-fundamentals/svc Pri1 High priority, do before Pri2 and Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants