无法找到包含版本4.0.0的Microsoft.CSharp软件包 - UWP构建失败

时间:2018-04-05 09:47:24

标签: c# uwp visual-studio-2017

我正在尝试在VS2017中创建软件包应用,但我收到此错误:

The package Microsoft.CSharp with version 4.0.0 could not be found in C:\Users\User\.nuget\packages\, C:\Program Files (x86)\Microsoft 
SDKs\NuGetPackagesFallback\. Run a NuGet package restore to download the package.   Origami         

我google并发现运行nuget命令

Install-Package Microsoft.CSharp -Version 4.0.0

我在nuget的控制台中成功运行了这个命令,这是输出:

    PM> Install-Package Microsoft.CSharp -Version 4.0.0
      GET https://api.nuget.org/v3/registration3-gz-semver2/microsoft.csharp/index.json
      OK https://api.nuget.org/v3/registration3-gz-semver2/microsoft.csharp/index.json 1403ms
    Restoring packages for D:\HoloLense\HoloLense Projects\HolographicAcademy-Holograms-101\Origami\App\Origami\project.json...
    Committing restore...
    Writing lock file to disk. Path: D:\HoloLense\HoloLense 
Projects\HolographicAcademy-Holograms-101\Origami\App\Origami\project.lock.json
    Restore completed in 546.94 ms for D:\HoloLense\HoloLense Projects\HolographicAcademy-Holograms-101\Origami\App\Origami\Origami.csproj.
    Executing nuget actions took 978.18 ms
    Time Elapsed: 00:00:06.6826674

但是当我再次尝试构建它时,我遇到了同样的错误。我缺少什么?

0 个答案:

没有答案