aws-lambda-dotnet icon indicating copy to clipboard operation
aws-lambda-dotnet copied to clipboard

global.json SDK Version Specification

Open cbeall opened this issue 10 years ago • 2 comments

When you have dotnet build tools 1.0.0-preview3 installed (which installs automatically when you install Visual Studio 2017 RC), it changes the default behavior of dotnet. For machines with the latest tooling installed, an errors occurs when initially loading any of the lambda templates from Visual Studio 2015. To fix this problem, you need to manually add a global.json file and then run dotnet restore and all is well.

It is considered a best practice for all .NET Core projects to include a global.json that specifies an SDK version. It would be great if the new templates included global.json and explicitly specified 1.0.0-preview2-003131.

See "Side by side install" section below

https://blogs.msdn.microsoft.com/dotnet/2016/11/16/announcing-net-core-tools-msbuild-alpha/#dotnet-cli-tools

cbeall avatar Dec 04 '16 20:12 cbeall

I agree we should write the global.json file in the solution if it doesn't already exist in it. I'll take a look at updating our tooling to do that.

normj avatar Dec 04 '16 21:12 normj

I pushed out version 1.11.1 of the Visual Studio toolkit that now writes the global.json file when the project is created.

normj avatar Dec 07 '16 19:12 normj