question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to build with Visual Studio 2019

See original GitHub issue

Unable to load the projects using Visual Studio 2019 (16.5.2)

image

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:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nigel-sampsoncommented, May 2, 2020

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.

0reactions
nigel-sampsoncommented, May 2, 2020

I’m currently using 16.4.2 without any problems. Will try updating later today.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found