gpt4 book ai didi

c# - VS 无法清理/构建/部署 - 损坏的 .NetFramework?

转载 作者:太空宇宙 更新时间:2023-11-03 12:38:56 24 4
gpt4 key购买 nike

我已经开始使用 VS 和 Xamarin.Android 进行开发,以制作我自己的应用程序。从今天早上开始,我无法清理/构建/部署任何项目,因为 VS 正在卡住。我正在使用 VS15 社区(最新版本)和 Xamarin 4.1.2(其他版本也不起作用)。这发生在我修复 VS 之后。

我制作了一个日志文件,对我来说似乎有一些注册表文件由于 .NET Framework 而损坏:

<entry>
<record>620</record>
<time>2016/09/30 16:52:00.948</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Advertised (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>621</record>
<time>2016/09/30 16:52:00.948</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing AssemblyFolders (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>622</record>
<time>2016/09/30 16:52:00.948</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Fusion (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>623</record>
<time>2016/09/30 16:52:00.948</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing NGen (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>624</record>
<time>2016/09/30 16:52:00.948</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing NGenQueue (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>625</record>
<time>2016/09/30 16:52:00.948</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing policy (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>626</record>
<time>2016/09/30 16:52:00.949</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Security (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>627</record>
<time>2016/09/30 16:52:00.949</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Windows Presentation Foundation (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>628</record>
<time>2016/09/30 16:52:00.949</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Advertised (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>629</record>
<time>2016/09/30 16:52:00.949</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing AssemblyFolders (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>630</record>
<time>2016/09/30 16:52:00.949</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Fusion (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>631</record>
<time>2016/09/30 16:52:00.949</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing NGen (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>632</record>
<time>2016/09/30 16:52:00.949</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing NGenQueue (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>633</record>
<time>2016/09/30 16:52:00.949</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing policy (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>634</record>
<time>2016/09/30 16:52:00.949</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Security (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>635</record>
<time>2016/09/30 16:52:00.949</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Windows Presentation Foundation (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>636</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Advertised (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>637</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing AssemblyFolders (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>638</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Fusion (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>639</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing NGen (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>640</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing NGenQueue (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>641</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing policy (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>642</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Security (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>643</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Windows Presentation Foundation (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>644</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Advertised (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>645</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing AssemblyFolders (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>646</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Fusion (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>647</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing NGen (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>648</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing NGenQueue (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>649</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing policy (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>650</record>
<time>2016/09/30 16:52:00.950</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Security (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>651</record>
<time>2016/09/30 16:52:00.951</time>
<type>Error</type>
<source>Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.ToolboxInstallerPackage</source>
<description>Exception parsing Windows Presentation Foundation (under HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework) as a version</description>
</entry>
<entry>
<record>652</record>
<time>2016/09/30 16:52:00.978</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Done loading new toolbox content, total time = 281 ms</description>
</entry>

这也发生在一个新的空白创建的应用程序中。我还尝试使用 MS 修复工具修复 .NET Framework,并删除了控制面板中的 .NET Framework 文件。目前我正在做“sfc/scannow”。接下来将完全重新安装 VS...

有什么建议吗?

最佳答案

这可能是由于解决方案文件损坏造成的。在文件资源管理器中,导航到您的项目目录,找到 .suo 文件并将其删除。它应该位于 MyProject\.vs\MyProject\v14 之类的地方。或者只需打开您的项目目录并搜索“*.suo”。该文件将被隐藏,因此请确保打开查看隐藏文件的选项。

关于c# - VS 无法清理/构建/部署 - 损坏的 .NetFramework?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39796815/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com