Skip to content

Instantly share code, notes, and snippets.

@van800
Created October 23, 2020 07:52
Show Gist options
  • Save van800/e1c0f702a685048429bae99f5e3370fa to your computer and use it in GitHub Desktop.
Save van800/e1c0f702a685048429bae99f5e3370fa to your computer and use it in GitHub Desktop.
build error
>SStride.Core.Tasks.exe: Microsoft.Build.Exceptions.InvalidProjectFileException: The expression "[System.IO.Path]::GetDirectoryName('')" cannot be evaluated. The path is not of a legal form. C:\Users\Ivan.Shakhov\.nuget\packages\msbuild.sdk.extras\2.0.87\Sdk\Sdk.props
61> at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
61> at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject[T1,T2](IElementLocation elementLocation, String resourceName, T1 arg0, T2 arg1)
61> at Microsoft.Build.Evaluation.Expander`2.Function`1.Execute(Object objectInstance, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation)
61> at Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertyBody(String propertyBody, Object propertyValue, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties usedUninitializedProperties, IFileSystem fileSystem)
61> at Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveTypedAndEscaped(String expression, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties usedUninitializedProperties, IFileSystem fileSystem)
61> at Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveEscaped(String expression, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties usedUninitializedProperties, IFileSystem fileSystem)
61> at Microsoft.Build.Evaluation.Expander`2.ExpandIntoStringLeaveEscaped(String expression, ExpanderOptions options, IElementLocation elementLocation)
61> at Microsoft.Build.Evaluation.Evaluator`4.EvaluatePropertyElement(ProjectPropertyElement propertyElement)
61> at Microsoft.Build.Evaluation.Evaluator`4.EvaluatePropertyGroupElement(ProjectPropertyGroupElement propertyGroupElement)
61> at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
61> at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
61> at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
61> at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext)
61> at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
61> at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
61> at Microsoft.Build.Evaluation.Project.Initialize(IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
61> at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
61> at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary`2 globalProperties, String toolsVersion)
61> at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName)
61> at Stride.Core.Assets.VSProjectHelper.LoadProject(String fullProjectLocation, String configuration, String platform, Dictionary`2 extraProperties) in D:\Work\stride2\sources\assets\Stride.Core.Assets\VSProjectHelper.cs:line 205
61> at Stride.Core.Assets.Package.FindAssetsInProject(String projectFullPath, String& nameSpace) in D:\Work\stride2\sources\assets\Stride.Core.Assets\Package.cs:line 1289
61> at Stride.Core.Assets.Package.FindAssetsInProject(ICollection`1 list, Package package) in D:\Work\stride2\sources\assets\Stride.Core.Assets\Package.cs:line 1325
61> at Stride.Core.Assets.Package.ListAssetFiles(ILogger log, Package package, Boolean listAssetsInMsbuild, Boolean listUnregisteredAssets, Nullable`1 cancelToken) in D:\Work\stride2\sources\assets\Stride.Core.Assets\Package.cs:line 1269
61> at Stride.Core.Assets.CompilerApp.Tasks.PackAssetsHelper.Run(Logger logger, String projectFile, String intermediatePackagePath, List`1 generatedItems) in D:\Work\stride2\sources\assets\Stride.Core.Assets.CompilerApp\Tasks\PackAssets.cs:line 101
61> at Stride.Core.Tasks.Program.RealMain(String[] args) in D:\Work\stride2\sources\core\Stride.Core.Tasks\Program.cs:line 87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment