Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 在Visual Studio中打开Unity着色器文件时出错_Visual Studio_Unity3d_Visual Studio 2017 - Fatal编程技术网

Visual studio 在Visual Studio中打开Unity着色器文件时出错

Visual studio 在Visual Studio中打开Unity着色器文件时出错,visual-studio,unity3d,visual-studio-2017,Visual Studio,Unity3d,Visual Studio 2017,每当我在Visual Studio中打开Unity着色器文件时,都会收到下面的错误消息 在ActivityLog.xml中,错误为 LegacySitePackage failed for package [Visual C++ Package]Source: 'Microsoft.VisualStudio.VC' Description: Could not load file or assembly 'Microsoft.VisualStudio.VisualC.Utilities,

每当我在Visual Studio中打开Unity着色器文件时,都会收到下面的错误消息

在ActivityLog.xml中,错误为

LegacySitePackage failed for package [Visual C++ Package]Source: 
'Microsoft.VisualStudio.VC' 
Description: Could not load file or assembly 'Microsoft.VisualStudio.VisualC.Utilities, 
Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one 
of its dependencies. The system cannot find the file 
specified.System.IO.FileNotFoundException: Could not load file or assembly 
'Microsoft.VisualStudio.VisualC.Utilities, Version=15.0.0.0, 
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its 
dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.VisualC.Utilities, Version=15.0.0.0, 
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at 
Microsoft.VisualStudio.VC.ManagedInterop.Initialize(IServiceProvider 
serviceProvider) WRN: Assembly binding logging is turned 
OFF. To enable assembly bind failure logging, set the registry value 
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind 
failure logging. To turn this feature off, remove the registry value 
[HKLM\Software\Microsoft\Fusion!EnableLog]. 

我通过转到
Tools->Get Tools and Features
并安装“C++桌面开发”解决了这个问题


您是否尝试过启用程序集绑定失败日志记录?Microsoft提供了一个更简单的方法。请查看该方法报告了什么,并用结果更新问题。还有一个类似的问题。请查看其中一个解决方案是否有帮助。我尝试了您建议的
fuslogvw
程序,但它没有显示任何内容。中的一个答案是你发布的第二个链接建议安装“使用C++进行桌面开发”。我这样做了,它解决了问题。谢谢你的回答。这对我也很有效。不过,在安装组件后,我必须重新启动Windows。