Visual studio ";VSCTCompiler";任务意外失败,出现OutOfMemoryException

Visual studio ";VSCTCompiler";任务意外失败,出现OutOfMemoryException,visual-studio,vsix,Visual Studio,Vsix,我所做的是: 我从扩展性模板创建了一个新的VSIX项目。 我为ToolWindow1添加了一个新项 然后我编译并得到了消息。它位于Visual Studio 2015上。 计算机上的内存为8GB,Visual Studio安装在全新的计算机上 我得到的信息如下: Severity Code Description Project File Line Suppression State Error The "VSCTCompiler" task failed u

我所做的是:

我从扩展性模板创建了一个新的VSIX项目。 我为ToolWindow1添加了一个新项

然后我编译并得到了消息。它位于Visual Studio 2015上。 计算机上的内存为8GB,Visual Studio安装在全新的计算机上

我得到的信息如下:

Severity    Code    Description Project File    Line    Suppression State
Error       The "VSCTCompiler" task failed unexpectedly.
System.OutOfMemoryException: Out of memory.
   at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
   at Microsoft.VisualStudio.CommandTable.BitmapItem.Read(TextReadVSCTCStream s, XmlElement itemNode)
   at Microsoft.VisualStudio.CommandTable.ItemList.Read(TextReadVSCTCStream s, XmlElement listNode)
   at Microsoft.VisualStudio.CommandTable.CommandTable.ReadCMDSSection(TextReadVSCTCStream s, XmlElement listNode)
   at Microsoft.VisualStudio.CommandTable.CommandTable.Read(TextReadVSCTCStream s)
   at Microsoft.VisualStudio.CommandTable.CommandTable.Read(String fileName, ReadOptions ro, IMessageProcessor errorProcessor)
   at Microsoft.VisualStudio.CommandTable.CommandTable.Read(String fileName, IMessageProcessor errorProcessor)
   at Microsoft.VisualStudio.CommandTable.Compiler.Compile()
   at Microsoft.VisualStudio.CommandTable.VSCTCompiler.Execute()    VSIXProject1

有什么出路吗

Visual Studio创建的文件似乎已损坏。您可以自己在文件夹“/Resources”(应该位于.csproj文件旁边)的文件资源管理器中检查该文件,并尝试用其他程序打开它

要修复此错误,请使用有效的.png文件替换该文件。对我来说,它通过从扩展性模板创建一个新的“ItemTemplate”项目来工作。然后添加项->自定义命令

这创建了一个有效的.png,可用于替换VSIX项目中损坏的.png文件

在此处找到解决方案:

如果你不会说韩语,下面是谷歌的翻译:

可能是