Errors creating new project


#1

I have errors trying to create any new project.

[M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Windows\ThirdPersonPlatformer.Windows.csproj(0,0)]: Error: The SDK ‘Microsoft.NET.Sdk’ specified could not be found.
[M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Error: The SDK ‘Microsoft.NET.Sdk’ specified could not be found.
[M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Verbose: Loading Assets from Package [Xenko.xkpkg]
[M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Info: Upgrading package [ThirdPersonPlatformer] to use [Xenko] from version [3.0.0.1-dev] to [3.0.0.6] will be required
[M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Warning: Unable to load project [ThirdPersonPlatformer.Game.csproj]. Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK ‘Microsoft.NET.Sdk’ specified could not be found. M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj
at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List1& projects, Boolean throwOnFileNotExistsError)
at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext)
at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.Project.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary2 globalProperties, String toolsVersion) at Xenko.Core.Assets.VSProjectHelper.LoadProject(String fullProjectLocation, String configuration, String platform, Dictionary2 extraProperties)
at Xenko.Assets.XenkoPackageUpgrader.UpgradeBeforeAssembliesLoaded(PackageLoadParameters loadParameters, PackageSession session, ILogger log, Package dependentPackage, PackageDependency dependency, Package dependencyPackage)
[M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Warning: Unable to load project [ThirdPersonPlatformer.Windows.csproj]. Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK ‘Microsoft.NET.Sdk’ specified could not be found. M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Windows\ThirdPersonPlatformer.Windows.csproj
at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List1& projects, Boolean throwOnFileNotExistsError)
at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext)
at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.Project.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary2 globalProperties, String toolsVersion) at Xenko.Core.Assets.VSProjectHelper.LoadProject(String fullProjectLocation, String configuration, String platform, Dictionary2 extraProperties)
at Xenko.Assets.XenkoPackageUpgrader.UpgradeBeforeAssembliesLoaded(PackageLoadParameters loadParameters, PackageSession session, ILogger log, Package dependentPackage, PackageDependency dependency, Package dependencyPackage)
[M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Windows\ThirdPersonPlatformer.Windows.csproj(0,0)]: Error: The SDK ‘Microsoft.NET.Sdk’ specified could not be found.
[M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Error: The SDK ‘Microsoft.NET.Sdk’ specified could not be found.
[M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Error: Unexpected error while loading project [M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj] or assembly reference []. Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK ‘Microsoft.NET.Sdk’ specified could not be found. M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj
at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List1& projects, Boolean throwOnFileNotExistsError)
at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext)
at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.Project.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary2 globalProperties, String toolsVersion) at Xenko.Core.Assets.VSProjectHelper.LoadProject(String fullProjectLocation, String configuration, String platform, Dictionary2 extraProperties)
at Xenko.Core.Assets.VSProjectHelper.GetOrCompileProjectAssembly(String solutionFullPath, String fullProjectLocation, ILogger logger, String targets, Boolean autoCompileProject, String configuration, String platform, Dictionary2 extraProperties, Boolean onlyErrors, BuildRequestDataFlags flags) at Xenko.Core.Assets.Package.LoadAssemblyReferencesForPackage(ILogger log, PackageLoadParameters loadParameters) [M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Error: Error while pre-loading package [Xenko.Core.Assets.Package]. Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk' specified could not be found. M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List1& projects, Boolean throwOnFileNotExistsError) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement)
at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
at Microsoft.Build.Evaluation.Evaluator4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext) at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.Project.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.Project…ctor(String projectFile, IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary2 globalProperties, String toolsVersion)
at Xenko.Core.Assets.VSProjectHelper.LoadProject(String fullProjectLocation, String configuration, String platform, Dictionary2 extraProperties) at Xenko.Core.Assets.Package.FindAssetsInProject(String projectFullPath, String& nameSpace) at Xenko.Core.Assets.Package.FindAssetsInProject(ICollection1 list, Package package)
at Xenko.Core.Assets.Package.ListAssetFiles(ILogger log, Package package, Boolean listAssetsInMsbuild, Nullable1 cancelToken) at Xenko.Core.Assets.PackageSession.TryLoadAssets(PackageSession session, ILogger log, Package package, PackageLoadParameters loadParameters) [M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Verbose: Restore NuGet packages... [M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Windows\ThirdPersonPlatformer.Windows.csproj(0,0)]: Error: The SDK 'Microsoft.NET.Sdk' specified could not be found. [M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Error: The SDK 'Microsoft.NET.Sdk' specified could not be found. [M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Verbose: Compiling game assemblies... [M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Error: Unexpected error while loading project [M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj] or assembly reference []. Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk' specified could not be found. M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List1& projects, Boolean throwOnFileNotExistsError) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement)
at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
at Microsoft.Build.Evaluation.Evaluator4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext) at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.Project.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.Project…ctor(String projectFile, IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary2 globalProperties, String toolsVersion)
at Xenko.Core.Assets.VSProjectHelper.LoadProject(String fullProjectLocation, String configuration, String platform, Dictionary2 extraProperties) at Xenko.Core.Assets.VSProjectHelper.GetOrCompileProjectAssembly(String solutionFullPath, String fullProjectLocation, ILogger logger, String targets, Boolean autoCompileProject, String configuration, String platform, Dictionary2 extraProperties, Boolean onlyErrors, BuildRequestDataFlags flags)
at Xenko.Core.Assets.Package.LoadAssemblyReferencesForPackage(ILogger log, PackageLoadParameters loadParameters)
[M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Verbose: Game assemblies compiled…
[M:\3D\xenko projects\tps\ThirdPersonPlatformer\ThirdPersonPlatformer\ThirdPersonPlatformer.Game\ThirdPersonPlatformer.Game.csproj(0,0)]: Error: Could not find game settings asset at location [GameSettings]


#2

did you allow the the upgrade to the new version when asked? also better use pastbin to post error logs, otherwise everyone needs to scroll two pages to help you…


#3

From:

  1. Make sure that all prerequisites were properly installed.
  2. Possible workaround: run Visual Studio installer and make sure that C# development is checked.