Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error:An exception occurred while generating the template. #625

Closed
Stefos-art opened this issue Mar 15, 2020 · 6 comments
Closed

Error:An exception occurred while generating the template. #625

Stefos-art opened this issue Mar 15, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@Stefos-art
Copy link

Stefos-art commented Mar 15, 2020

Version 3.1.0.1
Project Selection screen:
New Project:
New Game: Error:An exception occurred while generating the template.
New Project:
Template: First Person Shooter: Error:An exception occurred while generating the template.

I think you get the drift....nothing works!

@Stefos-art Stefos-art added the bug Something isn't working label Mar 15, 2020
@Kryptos-FR
Copy link
Member

We are going more details than that. If I follow the same steps on my machine it works fine.

You are most likely missing some prerequisites/dependencies. Or there could be some trouble with nuget/internet and it fails to download the required packages.

@Stefos-art
Copy link
Author

Thanks for that, so what should I do? can I download the nuget packages manually? how can I find out what is missing?

@xen2
Copy link
Member

xen2 commented Mar 15, 2020

You can press the small icons with ... (3 dots) to have more details

@Stefos-art
Copy link
Author

Error:An exception occurred while generating the template.
The SDK 'Microsoft.NET.Sdk' specified could not be found. c:\Users\Stefos\Documents\Xenko Projects\FirstPersonShooter5\FirstPersonShooter5.Game\FirstPersonShooter5.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, SdkResult& sdkResult, Boolean throwOnFileNotExistsError)
at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement, SdkResult& sdkResult) 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.ProjectImpl.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(EvaluationContext evaluationContext)
at Microsoft.Build.Evaluation.Project.ProjectImpl.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
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.Presentation.Templates.TemplateSampleGenerator.Generate(SessionTemplateGeneratorParameters parameters)
at Xenko.Core.Assets.Editor.Components.TemplateDescriptions.SessionTemplateGenerator.Run(SessionTemplateGeneratorParameters parameters)
at Xenko.Core.Assets.Editor.Components.TemplateDescriptions.TemplateGeneratorHelper.<>c__DisplayClass0_0`1.b__0()

@Stefos-art
Copy link
Author

I am guessing by this there is a problem with Microsoft.NET.Sdk?

@Eideren
Copy link
Collaborator

Eideren commented Apr 27, 2020

Duplicate of #673 , I'll close this one off even if it is technically older than that one

@Eideren Eideren closed this as completed Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants