question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

global.json: tools.dotnet and sdk.version are redundant

See original GitHub issue

If you don’t specify tools.dotnet in your global.json, you get this error:

/global.json must specify 'tools.dotnet'.

This seems redundant given that the sdk.version property already contains this information. Can we just use sdk.version since it’s what VS and the CLI already use?

{
  "tools": {
    "dotnet": "3.0.100-preview-009750"
  },
  "sdk": {
    "version": "3.0.100-preview-009750"
  }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
tmatcommented, Dec 12, 2018

That may be the policy, but pinning is still supported, right?

It is indeed supported. There is nothing in Arcade blocking you from using it.

0reactions
tmatcommented, Apr 17, 2019

The pinning will be addressed by https://github.com/dotnet/designs-microsoft/pull/44. Once implemented this will allow us to remove Arcade’s tools.dotnet and use sdk.version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NETSDK1141: Unable to resolve the .NET SDK version as ...
Learn about .NET SDK error NETSDK1141, which occurs when the SDK version could not be resolved in global.json.
Read more >
How to avoid global.json version conflicts in Azure DevOps
NET tool, running dotnet tool install MyBuildTool will fail. ... NET SDK version set in the global.json, you need to either always keep...
Read more >
Add path to global.json SDK version lock · Issue #8254
json selects the full .NET Core SDK (CLI) used, not just the msbuild SDKs. We don't even have a resolver when we're invoked...
Read more >
Unable to locate the .NET SDK as specified by global.json ...
In my case my global.json was referring to an SDK I didn't have. Run the below in your terminal dotnet --list-sdks.
Read more >
Managing your .NET Core SDK versions with the .NET Install ...
The global tool will check the contents of the global.json file and download then start the installation of the defined version of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found