wsl2 arch linux (dotnet run) 不工作路径问题 #19169

问题描述

所以在工作中,我正在使用 blazor webassembly 和 blazor 服务器,同时使用 arch linux wsl2 终端而不是最初由我的同事设置的 Visual Studio 设置环境。我检查了我的 .net core sdk 的当前版本,它是 5.0.204,但是当我运行可执行文件“dotnet run”时,构建无法识别我的 SandBox.Client.csproj 的路径。不知道是下载项目的版本问题还是需要在wsl2中配置路径。

dotnet run                                                                                                                                   ✘ 1   3s  root@PCA-Roberto 
Building...
'\\wsl$\Arch\tmp\WebCompiler1.12.405'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
'prepare.cmd' is not recognized as an internal or external command,operable program or batch file.
/mnt/c/Users/rchavez/Documents/O+/SandBox/Client/Styles/CustomStyle.scss : WebCompiler error 0: The system cannot find the path specified. [/mnt/c/Users/rchavez/Documents/O+/SandBox/Client/SandBox.Client.csproj]
/mnt/c/Users/rchavez/Documents/O+/SandBox/Client/Styles/CustomStyle.scss : WebCompiler error 0:  [/mnt/c/Users/rchavez/Documents/O+/SandBox/Client/SandBox.Client.csproj]

The build Failed. Fix the build errors and run again.

1blazor-on-client-server-1581599373146

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)