繁体   English   中英

生成失败:Visual Studio 2010

[英]Build Failed: Visual studio 2010

当我尝试在Visual Studio 2010 Professional上编译我的项目时,出现此错误:

编译完成-1个错误,0个警告生成开始于15/08/2012 19:30:23。 ResolveAssemblyReferences:将生成TargetFramework配置文件排除列表。 CoreResGen:“ c:\\ Program文件(x86)\\ Microsoft SDKs \\ Windows \\ v7.0A \\ bin \\ NETFX 4.0 Tools \\ resgen.exe” / useSourcePath / r:“ C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ Microsoft.CSharp.dll“ / r:” C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ mscorlib .dll“ / r:” C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Core.dll“ / r:” C:\\ Program Files(x86 )\\参考程序集\\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Data.DataSetExtensions.dll“ / r:” C:\\ Program Files(x86)\\参考程序集\\ Microsoft \\ Framework.NETFramework \\ v4 .0 \\ Profile \\ Client \\ System.Data.dll“ / r:” C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Deployment.dll“ / r:“ C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.dll” / r:“ C:\\ Program Files(x86)\\ Reference Asse mblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Drawing.dll“ / r:” C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Windows.Forms.dll“ / r:” C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Xml.dll“ / r:” C:\\ Program Files(x86)\\ Reference Assemblys \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Xml.Linq.dll“ / r:” C:\\ Program Files(x86)\\ TaoFramework \\ bin \\ Tao.FreeGlut.dll“ / r:” C:\\ Program Files(x86)\\ TaoFramework \\ bin \\ Tao.OpenGl.dll“ / r:” C:\\ Program Files(x86)\\ TaoFramework \\ bin \\ Tao.Platform .Windows.dll“ / compile Form1.resx,obj \\ x86 \\ Debug \\ WindowsFormsApplication1.Form1.resources Properties \\ Resources.resx,obj \\ x86 \\ Debug \\ WindowsFormsApplication1.Properties.Resources.resources将资源文件“ Form1.resx”处理为“ obj \\ x86 \\ Debug \\ WindowsFormsApplication1.Form1.resources”。 将资源文件“ Properties \\ Resources.resx”处理为“ obj \\ x86 \\ Debug \\ WindowsFormsApplication1.Properties.Resources.resources”。 GenerateTargetFrameworkMonikerAttribute:跳过目标“ GenerateTargetFrameworkMonikerAttribute”,因为所有输出文件都相对于输入文件而言是最新的。 CoreCompile:C:\\ Windows \\ Microsoft.NET \\ Framework \\ v4.0.30319 \\ Csc.exe / noconfig / nowarn:1701,1702 / nostdlib + / platform:x86 / errorreport:prompt / warn:4 / define:DEBUG; TRACE / reference :“ C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ Microsoft.CSharp.dll” /引用:“ C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ mscorlib.dll” /引用:“ C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System。 Core.dll“ /参考:” C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Data.DataSetExtensions.dll“ /参考:” C:\\ Program文件(x86)\\参考程序集\\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Data.dll“ /引用:” C:\\ Program文件(x86)\\参考程序集\\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Deployment.dll” /引用:“ C:\\ Program Files(x86)\\ Reference Assem blies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.dll“ / reference:” C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Drawing.dll“ /参考:” C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Windows.Forms.dll“ /参考:” C: \\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Xml.dll“ / reference:” C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework。 NETFramework \\ v4.0 \\ Profile \\ Client \\ System.Xml.Linq.dll“ /参考:” C:\\ Program Files(x86)\\ TaoFramework \\ bin \\ Tao.FreeGlut.dll“ /参考:” C:\\ Program Files (x86)\\ TaoFramework \\ bin \\ Tao.OpenGl.dll“ /引用:” C:\\ Program Files(x86)\\ TaoFramework \\ bin \\ Tao.Platform.Windows.dll“ / debug + / debug:full / filealign:512 /优化-/out:obj\\x86\\Debug\\WindowsFormsApplication1.exe /resource:obj\\x86\\Debug\\WindowsFormsApplication1.Form1.resources / resource:obj \\ x86 \\ Debug \\ WindowsForm sApplication1.Properties.Resources.resources / target:winexe Form1.cs Form1.Designer.cs Program.cs属性\\ AssemblyInfo.cs属性\\ Resources.Designer.cs属性\\ Settings.Designer.cs“ C:\\ Users \\ Antonino Saitta \\ AppData \\ Local \\ Temp.NETFramework,Version = v4.0,Profile = Client.AssemblyAttributes.cs“

建立失败。

有人可以帮我告诉我问题是什么吗?

我已经找到了解决方案!

this.Load += new System.EventHandler(this.Form1_Load);

这是错误...我忘了删除那行代码! ;)

通常(对我来说),创建一个新的.NET项目会使目标框架默认为.NET Framework 4.0(客户端配置文件)-这可能会产生一些错误(我自己尝试过)。 您可以在“项目选项”中将其更改为.NET Framework 4.0。

您也可以在按Create之前使新项目使用.NET Framework 4.0,如果我的记忆正确的话,它应该位于New Project窗口的顶部。

暂无
暂无

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

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