You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you have a VS2019 C# project inside a WSL2 container and try to open it, you can end up with this error:
\\wsl$\Debian\home\user\Redacted\Redacted.csproj : error :
The expression "[MSBuild]::MakeRelative(\\wsl$\Debian\home\user\Redacted, \\wsl$\Debian\home\user\Redacted\obj\project.assets.json)" cannot be evaluated.
Invalid URI: The hostname could not be parsed.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\NuGet\16.0\Microsoft.NuGet.targets
Note: This might be a problem with UNC paths in general, or may be the damn dollar sign in \wsl$, haven't dug that far into it.
Versions & Configurations
Windows 10H2
WSL2
Visual Studio 2019 Version 16.9.2
The text was updated successfully, but these errors were encountered:
Perfect, thanks. I believe I have seen the WSL2 team also mentioning a switch away from \wsl$\ elsewhere as well, that would be the ideal solution to all of this.
Feel free to close this if you want, there should be enough info here for the next person to search for this ticket.
Issue Description
When you have a VS2019 C# project inside a WSL2 container and try to open it, you can end up with this error:
Note: This might be a problem with UNC paths in general, or may be the damn dollar sign in \wsl$, haven't dug that far into it.
Versions & Configurations
Windows 10H2
WSL2
Visual Studio 2019 Version 16.9.2
The text was updated successfully, but these errors were encountered: