2016-02-18 1 views
0

j'ai suivi les instructions sur https://dotnet.github.io/getting-started/ j'ai installé .NET de base sur Windows 8.1 et exécuté dans un dossier vide:Impossible d'exécuter l'application par défaut de base .NET

dotnet new 
dotnet restore 
dotnet run 

Les paquets ont été téléchargés, l'application compilée , mais l'exécution s'est terminée avec l'exception.

Exception non gérée: System.IO.FileNotFoundException: Impossible de charger le fichier ou assembly 'System.Runtime, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a' ou une de ses dépendances.

Quel pourrait être le problème?

Répondre

0

J'ai essayé de reproduire sur mon Windows 8.1 et cela fonctionne.

Quelle version de dotnet cli utilisez-vous (lancez dotnet --version)? Le dernier programme d'installation se trouve here

Vous pouvez également essayer de fonctionner avec une sortie verbeuse activée: DotNet --verbose exécuter

Mon (travail) sortie est inférieure. Pouvez-vous voir une différence?

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!