Skip to content

Is global.json preferred alternative to setting RuntimeFrameworkVersion? #6148

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

Closed
MNF opened this issue Jun 26, 2018 — with docs.microsoft.com · 4 comments
Closed

Comments

Copy link

MNF commented Jun 26, 2018

If I have a few projects in the solution, e.g. unit/ integration tests additionally to main application,
will be better to add global.json Instead of set RuntimeFrameworkVersion to each project?
The idea from dotnet/aspnetcore#3221 (comment)
global.json to my Project with:

{
"sdk": { "version": "2.1.300" }
}


Document Details

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

@mairaw
Copy link
Contributor

mairaw commented Jun 27, 2018

I think the new article that @BillWagner is working on is going to explain this in more detail. See PR #6060

@KathleenDollard please correct me if I'm wrong but my understanding is that they're orthogonal to each other. With global.json you specify which SDK version you're going to be using and with <RuntimeFrameworkVersion> you specify the minimum runtime patch version.

/cc @dsplaisted

@KathleenDollard
Copy link
Contributor

@mairaw is correct.

global.json does not affect the runtime framework in anyway.

global.json is a mechanism for determining the CLI/SDK that is used (including the version of MSBuild) that is used to create your application.

@dsplaisted
Copy link
Member

with you specify the minimum runtime patch version.

@mairaw It's not actually the minimum version, if you set this property it will use that specific version even if a later one is also available.

@MNF If you want to set the RuntimeFrameworkVersion for all of your projects, I'd suggest using a Directory.Build.targets file. See here for more information: Customize your build

@BillWagner
Copy link
Member

@MNF It looks like your question has been answered. I'm closing this issue. If you have further questions, re-open it and let us know what more information you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants