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

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?

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

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.