![](/img/trans.png)
[英].Net Core MVC App run in Visual Studio Code can't find views
[英]Can't run the .NET core default app
我按照https://dotnet.github.io/getting-started/上的说明进行操作。我在Windows 8.1上安装了.NET Core,并在一个空文件夹中执行:
dotnet new
dotnet restore
dotnet run
包已下载,应用程序已编译,但执行以Exception结尾。
未处理的异常:System.IO.FileNotFoundException:无法加载文件或程序集'System.Runtime,版本= 4.1.0.0,区域性=中性,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一。
可能是什么问题呢?
我试图在Windows 8.1上进行复制,并且可以正常工作。
您正在使用哪个版本的dotnet cli(运行dotnet --version)? 最新的安装程序可以在这里找到
您也可以尝试在启用详细输出的情况下运行:dotnet --verbose run
我的(工作)输出如下。 你看到任何区别吗?
Running C:\Program Files\dotnet\bin\dotnet-build.exe "--output" "C:\Projects\temp\bin\.dotnetrun\d2d6b16263e145a0aa7245c62ff19614" "--temp-output
" "C:\Projects\temp\bin\.dotnetrun\d2d6b16263e145a0aa7245c62ff19614" "--framework" "DNXCore,Version=v5.0" "--configuration" "Debug" "C:\Projects\
temp"
Process ID: 21564
Project temp (DNXCore,Version=v5.0) will be compiled because expected outputs are missing.
C:\Projects\temp\bin\.dotnetrun\d2d6b16263e145a0aa7245c62ff19614\Debug\dnxcore50\temp.dll
C:\Projects\temp\bin\.dotnetrun\d2d6b16263e145a0aa7245c62ff19614\Debug\dnxcore50\temp.pdb
Running C:\Program Files\dotnet\bin\dotnet-compile.exe "--framework" "DNXCore,Version=v5.0" "--configuration" "Debug" "--output" "C:\Projects\tem
p\bin\.dotnetrun\d2d6b16263e145a0aa7245c62ff19614" "--temp-output" "C:\Projects\temp\bin\.dotnetrun\d2d6b16263e145a0aa7245c62ff19614" "C:\Project
s\temp"
Process ID: 12284
Compiling temp for DNXCore,Version=v5.0
Running C:\Program Files\dotnet\bin\dotnet-compile-csc.exe "@C:\Projects\temp\bin\.dotnetrun\d2d6b16263e145a0aa7245c62ff19614\dotnet-compile.rsp"
Process ID: 17832
Running C:\Program Files\dotnet\bin\csc.exe "-noconfig" "@C:\Projects\temp\bin\.dotnetrun\d2d6b16263e145a0aa7245c62ff19614\dotnet-compile-csc.rsp
"
Process ID: 3936
C:\Projects\temp\project.json(8,32): warning NU1007: Dependency specified was NETStandard.Library >= 1.0.0-rc2-23727 but ended up with NETStandar
d.Library 1.0.0-rc2-23804.
Compilation succeeded.
1 Warning(s)
0 Error(s)
Time elapsed 00:00:04.5670414
Running C:\Projects\temp\bin\.dotnetrun\d2d6b16263e145a0aa7245c62ff19614\Debug\dnxcore50\temp.exe
Process ID: 7480
Hello World!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.