最近在做wpf项目,期间下了一些源码参考,但是在build时经常遇到下面这种bug:
Error 2 Failed to execute command: ""C:Program Files (x86)Microsoft SDKsWindowsv7.0ABinResGen.exe" /useSourcePath
/r:C:WindowsMicrosoft.NETFrameworkv2.0.50727mscorlib.dll "/r:C:Program Files (x86)Reference AssembliesMicrosoftFramework
v3.0PresentationCore.dll" "/r:C:Program Files (x86)Reference AssembliesMicrosoftFrameworkv3.0PresentationFramework.dll"
"/r:C:Program Files (x86)Reference AssembliesMicrosoftFrameworkv3.5System.Core.dll" "/r:C:Program Files (x86)Reference
AssembliesMicrosoftFrameworkv3.5System.Data.DataSetExtensions.dll" /r:C:WindowsMicrosoft.NETFramework
v2.0.50727System.Data.dll /r:C:WindowsMicrosoft.NETFrameworkv2.0.50727System.dll /r:C:WindowsMicrosoft.NETFramework
v2.0.50727System.Xml.dll "/r:C:Program Files (x86)Reference AssembliesMicrosoftFrameworkv3.5System.Xml.Linq.dll" "/r:C:
Program Files (x86)Reference AssembliesMicrosoftFrameworkv3.0WindowsBase.dll" /compile PropertiesResources.resx,obj
Release
otateButton.Properties.Resources.resources". D:DocumentsVisual Studio 2010Projects
tCtrlLibs
otateButtonTRACKER
rotateButton
百度发现ms是因为“在64位的Windows 7下,用VS2010编译4.0以前的.Net项目会有问题”
下面是一种解决办法。本人试了下,没有成功....
gisoracle http://www.cnblogs.com/gisoracle/archive/2012/06/11/2544552.html
后来无意中在一个地方看到说:删除Properties文件夹下的Resources.resx这个文件就可以了。
本人试了下,竟然能用了....
有遇到同样问题的可以试试这个解决办法。
本人菜鸟一只,大神路过请轻喷。