简体   繁体   English

未定义“Microsoft.VisualBasic.CompilerServices.DesignerGenerated”类型

[英]Type 'Microsoft.VisualBasic.CompilerServices.DesignerGenerated' is not defined

When ever I start a blank WPF project in Visual Basic 2010 (SP1) I get the following error: 当我在Visual Basic 2010(SP1)中启动一个空白的WPF项目时,我收到以下错误:

Type 'Microsoft.VisualBasic.CompilerServices.DesignerGenerated' is not defined. 未定义“Microsoft.VisualBasic.CompilerServices.DesignerGenerated”类型。

The error comes from the auto-generated code in MainWindow.givb - when I try to add a reference to Microsoft.VisualBasic , it says I can't because it will be added at runtime. 该错误来自MainWindow.givb自动生成的代码 - 当我尝试添加对Microsoft.VisualBasic的引用时,它说我不能,因为它将在运行时添加。

I search of the MSDN forums found nothing, a workaround on MS Connect was to install SP1 (which I have done). 我搜索的MSDN论坛一无所获,MS Connect上的解决方法就是安装SP1(我已经完成了)。

Anyone else have this prob or know how to fix it? 其他人有这个问题或知道如何解决它?

I have got the same Problem and fix it with this: (I have the German-Version of VS, so i do not know the correct description of the buttons.) Advanced Compile->Change your framework and say OK. 我有同样的问题,并用此修复它:(我有VS的德语版本,所以我不知道按钮的正确描述。)高级编译 - >更改您的框架并说好。 After this change is back. 这个改变回来之后。 Then go to clean your project(find under build) and rebuild it new. 然后去清理你的项目(在build下找到)并重新构建它。

If VS when it breaks down later, you have the problem-again. 如果VS在以后发生故障时再次出现问题。 The Downloads have only change my memory-space. 下载只改变了我的记忆空间。

I had this problem and found it was due to adding a namespace of Microsoft.MapPoint (in fact any namespace starting "Microsoft" caused it). 我遇到了这个问题,发现它是由于添加了Microsoft.MapPoint的命名空间(实际上任何命名空间都以“Microsoft”引起它)。 This was a class from a Microsoft article: http://msdn.microsoft.com/en-us/library/bb259689.aspx 这是Microsoft文章中的一个类: http//msdn.microsoft.com/en-us/library/bb259689.aspx

Renaming the namespace to something without Microsoft in it fixed the problem. 将命名空间重命名为没有Microsoft的东西可以解决问题。

Try to install the file from Microsoft VBWP7SetupENU.msi 尝试从Microsoft VBWP7SetupENU.msi安装该文件

See the instructions and the required files in: http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx#BKMK_Installing 请参阅以下说明和所需文件: http//msdn.microsoft.com/en-us/library/ff402530(v = vs.92).aspx#BKMK_Installing

Good luck 祝好运

暂无
暂无

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

相关问题 修复Microsoft.VisualBasic.CompilerServices.ProjectData.ClearProjectError vbc编译错误 - Fixing Microsoft.VisualBasic.CompilerServices.ProjectData.ClearProjectError vbc compile error Microsoft.VisualBasic.CompilerServices.LikeOperator.LikeString中带有特殊字符的模式不起作用 - Patterns with special characters in Microsoft.VisualBasic.CompilerServices.LikeOperator.LikeString does not work Microsoft.visualbasic.collection没有类型参数 - Microsoft.visualbasic.collection has no type parameters Microsoft.VisualBasic.dll中发生了类型为'System.InvalidCastException'的未处理异常 - An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll 类型'System.InvalidCastException'的第一次机会异常发生在vb.NET中的Microsoft.VisualBasic.dll中 - A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll in vb.NET 编译错误:Microsoft.VisualBasic.dll中发生类型为'System.InvalidCastException'的第一次机会异常 - Compile error: A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll 类型“ System.InvalidCastException”的第一次机会异常发生在战斗模拟器上的Microsoft.VisualBasic.dll中 - A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll on a combat simulator Microsoft.VisualBasic.dll中发生了类型为'System.InvalidCastException'的第一次机会异常 - A first chance exception of type 'System.InvalidCastException' occured in Microsoft.VisualBasic.dll 错误:Microsoft.VisualBasic.dll中发生了类型为'System.InvalidCastException'的第一次机会异常 - Error: A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll Microsoft.VisualBasic.dll中发生了类型为'System.InvalidCastException'的第一次机会异常 - A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM