Closed sashang closed 5 years ago
Did you double check the global.json version? It looks like the latest version of the Saturn template specifies "2.1.300" in global.json. You'll need that version installed.
Well my global.jason has 2.1.4 in it.
sashan@deimos /home/sashan/code ☺ > rm -rf saturntest/
sashan@deimos /home/sashan/code ☺ > mkdir saturntest
sashan@deimos /home/sashan/code ☺ > cd saturntest/
sashan@deimos sashan/code/saturntest ☺ > ls
sashan@deimos sashan/code/saturntest ☺ > echo $DOTNET_ROOT
/home/sashan/code/dotnet/2.1.3
sashan@deimos sashan/code/saturntest ☺ > which dotnet
/home/sashan/code/dotnet/2.1.3/dotnet
sashan@deimos sashan/code/saturntest ☺ > dotnet --version
2.1.300
sashan@deimos sashan/code/saturntest ☺ > dotnet new saturn -lang F# --force
The template "Saturn v0.4.1" was created successfully.
Processing post-creation actions...
xdg-open: unexpected argument '+x'
Try 'xdg-open --help' for more information.
Unable to apply permissions +x to "*.sh".
Post action failed.
Description: Make scripts executable
Manual instructions: Run 'chmod +x *.sh'
sashan@deimos sashan/code/saturntest ☺ > chmod +x .paket/paket.exe build.sh
sashan@deimos sashan/code/saturntest ☺ > ls
build.cmd build.fsx build.sh* global.json paket.dependencies paket.lock saturntest.sln src/
sashan@deimos sashan/code/saturntest ☺ > cat global.json
{
"sdk": {
"version": "2.1.4"
}
}⏎ sashan@deimos sashan/code/saturntest ☺ >
Subsequently running build.sh
fails
dotnet "build" --configuration Release
A compatible SDK version for global.json version: [2.1.4] from [/home/sashan/code/saturntest/global.json] was not found
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
Running build failed.
2.1.4 is quite old, from January of this year, and is no longer supported. You should upgrade to at least 2.1.300 as requested by the template and try again. And also curse Microsoft for making confusing versioning schemes.
wtf........2.1.300 is an upgrade????
I think this is solved. I reinstalled the template and ran the build.sh again and it worked.
sashan@deimos sashan/code/saturntest ☺ > source ~/code/dotnet-env-2.1.3
sashan@deimos sashan/code/saturntest ☺ > dotnet new -i Saturn.Template
sashan@deimos sashan/code/saturntest ☺ > dotnet new saturn -lang F# --force
The template "Saturn v0.7.0" was created successfully.
Processing post-creation actions...
xdg-open: unexpected argument '+x'
Try 'xdg-open --help' for more information.
Unable to apply permissions +x to "*.sh".
Post action failed.
Description: Make scripts executable
Manual instructions: Run 'chmod +x *.sh'
sashan@deimos sashan/code/saturntest ☺ > chmod +x .paket/paket.exe build.sh
sashan@deimos sashan/code/saturntest ☺ > dotnet --version
2.1.300
sashan@deimos sashan/code/saturntest ☺ > ./build.sh
First this is my environment:
Then create a new saturn project and run build.sh
It ends with the following error:
Why is this? I've specified the path to the SDK in DOTNET_ROOT?