Error: An exception occurred while generating the template.. Microsoft.Build.Exceptions.InvalidProjectFileException: El SDK "Microsoft.NET.Sdk" especificado no se pudo encontrar. D:\Proyectos\MyGame\MyGame.Game\MyGame.Game.csproj


#1

Hello.

Testing Xenko and create a new project throw its messsage:

Error: An exception occurred while generating the template… Microsoft.Build.Exceptions.InvalidProjectFileException: El SDK “Microsoft.NET.Sdk” especificado no se pudo encontrar. D:\Proyectos\MyGame\MyGame.Game\MyGame.Game.csproj

Finally close the window,

Any ideas?


#2

Looks like you’re just missing the SDK. Do you have .NET Framework 4.6.2 + development tools installed?


#3

Hi i solved,

First download dotnet sdk from its URL
https://www.microsoft.com/net/download/dotnet-core/2.1

in my case, download downet core 2.1 for x64

https://www.microsoft.com/net/download/dotnet-core/2.1

Second in my Enviroment Variables of windows 10 add a new variable called MSBuildSDKsPath with C:\Program Files\dotnet\sdk\2.1.302\Sdks

And save all

Restart te XENKO launcher and solved problem.