0

所以在工作中,我正在使用 blazor webassembly 和 blazor 服务器,同时使用 arch linux wsl2 终端而不是我同事最初设置的 Visual Studio 来设置环境。我检查了我的 .net 核心 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

4

0 回答 0