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

global.json specifies outdated dotnet sdk #426

Closed
auduchinok opened this issue Mar 22, 2019 · 3 comments
Closed

global.json specifies outdated dotnet sdk #426

auduchinok opened this issue Mar 22, 2019 · 3 comments

Comments

@auduchinok
Copy link
Contributor

Having a newer SDK installed I cannot build the solution in command line.

eugene@unit-937:Developer$ dotnet --version
2.2.105

eugene@unit-937:Developer$ cd fantomas/

eugene@unit-937:fantomas$ dotnet --version
A compatible SDK version for global.json version: [2.1.503] from [/Users/eugene/Developer/fantomas/global.json] was not found
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
  https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409

eugene@unit-937:fantomas$ ./build.sh 
A compatible SDK version for global.json version: [2.1.503] from [/Users/eugene/Developer/fantomas/global.json] was not found
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
  https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
A compatible SDK version for global.json version: [2.1.503] from [/Users/eugene/Developer/fantomas/global.json] was not found
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
  https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
./build.sh: line 8: .fake/fake: No such file or directory
@auduchinok
Copy link
Contributor Author

auduchinok commented Mar 22, 2019

The problem is the link in the error output makes one download the latest version, 2.2.105 which I already have and which doesn't satisfy the requirement.
If I download and install 2.1.503 manually it starts to work.

@nojaf
Copy link
Contributor

nojaf commented Mar 23, 2019

Hello, it does make sense to me that you would need 2.1.503 on your machine.
The go.microsoft link leads me (on Windows) to https://docs.microsoft.com/en-us/dotnet/core/windows-prerequisites?tabs=netcore2x. So I'm not sure where it is taking you.

Anyway, what actions do you suggest we take here?

@auduchinok
Copy link
Contributor Author

auduchinok commented Mar 23, 2019

Anyway, what actions do you suggest we take here?

I'd probably list .NET Core SDK 2.1+ as a required tool in readme and wouldn't enforce that particular version as people may have different (especially newer) ones installed that are fine for the build.

jindraivanek added a commit to jindraivanek/fantomas that referenced this issue Apr 3, 2019
@nojaf nojaf closed this as completed in b18c515 Apr 3, 2019
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

2 participants