Unable to build with Visual Studio 2019
See original GitHub issueUnable to load the projects using Visual Studio 2019 (16.5.2)
The path seems to have an invalid format or the wrong Sdk is taken.
From the console output of Visual Studio (sorry, in parts in german language):
C:\Projekte\Caliburn.Micro\src\Caliburn.Micro.Core\Caliburn.Micro.Core.csproj : error : Der Ausdruck "[System.IO.Path]::GetDirectoryName('')" kann nicht ausgewertet werden. Der Pfad hat ein ungültiges Format. C:\Users\Developer\.nuget\packages\msbuild.sdk.extras\2.0.54\Sdk\Sdk.props
C:\Projekte\Caliburn.Micro\src\Caliburn.Micro.Platform\Caliburn.Micro.Platform.csproj : error : Der Ausdruck "[System.IO.Path]::GetDirectoryName('')" kann nicht ausgewertet werden. Der Pfad hat ein ungültiges Format. C:\Users\Developer\.nuget\packages\msbuild.sdk.extras\2.0.54\Sdk\Sdk.props
C:\Projekte\Caliburn.Micro\src\Caliburn.Micro.Core.Tests\Caliburn.Micro.Core.Tests.csproj : error : Der Ausdruck "[System.IO.Path]::GetDirectoryName('')" kann nicht ausgewertet werden. Der Pfad hat ein ungültiges Format. C:\Users\Developer\.nuget\packages\msbuild.sdk.extras\2.0.54\Sdk\Sdk.props
C:\Projekte\Caliburn.Micro\src\Caliburn.Micro.Platform.Tests\Caliburn.Micro.Platform.Tests.csproj : error : Der Ausdruck "[System.IO.Path]::GetDirectoryName('')" kann nicht ausgewertet werden. Der Pfad hat ein ungültiges Format. C:\Users\Developer\.nuget\packages\msbuild.sdk.extras\2.0.54\Sdk\Sdk.props
Are there any steps I need to do in front of trying to open the solution?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
VS2019 can't build any project
I have just installed VS2019 Version 16.7.4. I can't compile any c# project (WinForms, WPF and Console application ). There is output :...
Read more >Why Doesn't My Visual Studio Solution Build? A ...
It could be one of your low level library projects that is failing to build and causing all other projects to fail. Rebuild...
Read more >Visual Studio 2019 Cannot build solutions that are in ...
Visual Studio 2019 Cannot build solutions that are in custom folders - Microsoft Q&A.
Read more >Unable to build solution using Visual Studio 2019 Xamarin
Hi, I am new Xamarin. I am facing a problem while build the solution. Following error is showing while building the project.
Read more >Can't build solution with Visual Studio (2019 version 16.8)
Can't build solution with Visual Studio (2019 version 16.8) #6856 ... 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like you’ll see this error if you don’t have the SDK version specified in https://github.com/Caliburn-Micro/Caliburn.Micro/blob/master/src/global.json
I managed to recreate the error by installing the SDK, installing the correct version resolved the error.
I’m currently using
16.4.2
without any problems. Will try updating later today.