2012-08-15 142 views
0

当我尝试编译在Visual Studio 2010中我的项目专业我收到此错误:构建失败:Visual Studio 2010中

Compile complete -- 1 errors, 0 warnings Build started 15/08/2012 19:30:23. ResolveAssemblyReferences: A TargetFramework profile exclusion list will be generated. CoreResGen: "c:\Program Files (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)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Profile\Client\System.Data.DataSetExtensions.dll" /r:"C:\Program Files (x86)\Reference Assemblies\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 Assemblies\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 Assemblies\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 Processing resource file "Form1.resx" into "obj\x86\Debug\WindowsFormsApplication1.Form1.resources". Processing resource file "Properties\Resources.resx" into "obj\x86\Debug\WindowsFormsApplication1.Properties.Resources.resources". GenerateTargetFrameworkMonikerAttribute: Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. 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" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Profile\Client\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Profile\Client\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Profile\Client\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Profile\Client\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Profile\Client\System.Deployment.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\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" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Profile\Client\System.Windows.Forms.dll" /reference:"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" /reference:"C:\Program Files (x86)\TaoFramework\bin\Tao.FreeGlut.dll" /reference:"C:\Program Files (x86)\TaoFramework\bin\Tao.OpenGl.dll" /reference:"C:\Program Files (x86)\TaoFramework\bin\Tao.Platform.Windows.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\x86\Debug\WindowsFormsApplication1.exe /resource:obj\x86\Debug\WindowsFormsApplication1.Form1.resources /resource:obj\x86\Debug\WindowsFormsApplication1.Properties.Resources.resources /target:winexe Form1.cs Form1.Designer.cs Program.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs Properties\Settings.Designer.cs "C:\Users\Antonino Saitta\AppData\Local\Temp.NETFramework,Version=v4.0,Profile=Client.AssemblyAttributes.cs"

构建失败。

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

+3

尝试将目标框架更改为.NET Framework 4.0 – Jeff 2012-08-15 17:39:19

+1

Visual Studio具有错误浏览器。按Ctrl + W,然后按E.然后按E. – HenryZhang 2012-08-15 17:39:33

+1

您显示的日志部分没有错误,请显示其中包含实际错误的日志部分。 – Alex 2012-08-15 17:41:21

回答

0

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

在按下Create之前,您还可以使新项目使用.NET Framework 4.0,它应该位于New Project窗口的顶部,如果我的内存能够为我提供正确的服务。

+0

我试过了,但是错误是一样的! :( – 2012-08-16 17:42:57

+0

在什么阶段发生这种情况? – Jeff 2012-08-16 18:07:11

+0

当我尝试构建项目时...... – 2012-08-16 18:09:29

1

我已经建立了解决方案!

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

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

+0

太棒了,+1分享您的解决方案! – Jeff 2012-08-17 06:29:46

相关问题