在启动时出现损坏的注册表警告后,我通过简单地将窗口恢复到某个更新之前的状态,成功地让我的PC再次运行。但是,出于一些完全未知的原因,Visual Studio开始表现得很奇怪。首先,它没有检测到对Renci.SSH.NET的引用,即使它显然存在。所以我进入了nuget包管理器,卸载了SSH.NET,希望我能在之后重新安装它,一切都会好的。
显然,没有什么比这更顺利了。如果我使用包管理器GUI,Visual Studio会告诉我“无法恢复包。恢复'BlankApplication'的包修改。”。如果我使用nuget控制台并输入PM > Install-Package SSH.NET
,我会在红色噩梦中突出显示:
Install-Package : SSH.NET 2016.0.0 is not compatible with UAP,Version=v10.0.
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SshNet.Security.Cryptography 1.2.0 is not compatible with UAP,Version=v10.0.
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath.XmlDocument 4.0.1 is not compatible with UAP,Version=v10.0.
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath 4.0.1 is not compatible with UAP,Version=v10.0.
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : Some packages are not compatible with UAP,Version=v10.0.
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SSH.NET 2016.0.0 is not compatible with UAP,Version=v10.0 (win10-arm).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SshNet.Security.Cryptography 1.2.0 is not compatible with UAP,Version=v10.0 (win10-arm).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath.XmlDocument 4.0.1 is not compatible with UAP,Version=v10.0 (win10-arm).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath 4.0.1 is not compatible with UAP,Version=v10.0 (win10-arm).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : Some packages are not compatible with UAP,Version=v10.0 (win10-arm).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SSH.NET 2016.0.0 is not compatible with UAP,Version=v10.0 (win10-arm-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SshNet.Security.Cryptography 1.2.0 is not compatible with UAP,Version=v10.0 (win10-arm-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath.XmlDocument 4.0.1 is not compatible with UAP,Version=v10.0 (win10-arm-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath 4.0.1 is not compatible with UAP,Version=v10.0 (win10-arm-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : Some packages are not compatible with UAP,Version=v10.0 (win10-arm-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SSH.NET 2016.0.0 is not compatible with UAP,Version=v10.0 (win10-x64).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SshNet.Security.Cryptography 1.2.0 is not compatible with UAP,Version=v10.0 (win10-x64).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath.XmlDocument 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : Some packages are not compatible with UAP,Version=v10.0 (win10-x64).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SSH.NET 2016.0.0 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SshNet.Security.Cryptography 1.2.0 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath.XmlDocument 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : Some packages are not compatible with UAP,Version=v10.0 (win10-x64-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SSH.NET 2016.0.0 is not compatible with UAP,Version=v10.0 (win10-x86).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SshNet.Security.Cryptography 1.2.0 is not compatible with UAP,Version=v10.0 (win10-x86).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath.XmlDocument 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x86).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x86).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : Some packages are not compatible with UAP,Version=v10.0 (win10-x86).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SSH.NET 2016.0.0 is not compatible with UAP,Version=v10.0 (win10-x86-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : SshNet.Security.Cryptography 1.2.0 is not compatible with UAP,Version=v10.0 (win10-x86-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath.XmlDocument 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x86-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : System.Xml.XPath 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x86-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : Some packages are not compatible with UAP,Version=v10.0 (win10-x86-aot).
Au caractère Ligne:1 : 1
+ Install-Package SSH.NET
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
但这没有任何意义。几分钟前它运作得很好。我已经尝试卸载并重新安装nuget,清理项目,清除%AppData%中与NuGet相关的所有内容,但没有任何作用。此外,请注意,如果我尝试创建一个新的Blank项目,也会发生这种情况。
编辑:错误也发生在Microsoft.Toolkit.UWP,其症状与UAP,Version=v.10.0
不相容。在崩溃之前我还将这个包添加到我的项目中。但是,对于之前未安装的任何其他软件包,我不会遇到此问题。
答案 0 :(得分:0)
我终于找到了解决方案:
下载最新的nuget.exe here
通过在nuget.exe所在的位置打开cmd并运行nuget locals all -clear