简体   繁体   English

Visual Studio中的“组装清单”错误

[英]“Assembly Manifest” error in visual studio

I've been facing a problem recently with visual studio, 我最近在Visual Studio中遇到了一个问题,

Every time i debug a program it says: 每次我调试程序时都会说:

"error while trying to run project: cold not load file 尝试运行项目时出现“错误:冷无法加载文件

or assembly 'console application1' or one of it's dependencies. 或程序集“控制台应用程序1”或其依赖项之一。 the module was expected to 该模块有望

contain an assembly manifest." 包含程序集清单。”

even if the project is blank like this 即使项目是空白的

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

    namespace ConsoleApplication4
    {
        class Program
        {
            static void Main(string[] args)
            {
            }
        }
    }

I've tried to clean solution and reinstall vs2010 but nothing works. 我试图清理解决方案并重新安装vs2010,但没有任何效果。

The error "The module was expected to contain an assembly manifest" usually refers to a low level assembly loading issue. 错误“模块预期包含组装清单”通常是指底层组装加载问题。 The Common Language Runtime has found a file with the correct name, but when the assembly is attempted to be loaded it doesn't contain the right manifest (which has information pertaining to the assembly). 公共语言运行库找到了具有正确名称的文件,但是当尝试加载程序集时,该文件不包含正确的清单(具有与程序集有关的信息)。

This question contains information on how to test and resolve this issue. 此问题包含有关如何测试和解决此问题的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM