Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Windows From Control Library with Vs 2010.

$
0
0

Hello,

I have a problem when I try to build a windows form control library project using visual studio 2010 under Windows 7 64bits with Framework .NET 3.5 SP1.

If I create a blank "windows forms control library" projet, I can build it without any problem.

If I change the default UserControl (for exemple if I modify the size of the control) I got this error :

Error 1 Failed to execute command: ""C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\ResGen.exe" /useSourcePath /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll "/r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll""/r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll "/r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /compile UserControl1.resx,obj\Debug\WindowsFormsControlLibrary1.UserControl1.resources". The handle is invalid. C:\TEMP\WindowsFormsControlLibrary1\WindowsFormsControlLibrary1\TRACKER WindowsFormsControlLibrary1

I build 3 other projects (Class Library) on this machine (VS 2010, .NET 3.5 SP1) and after force 32Bit on resgen.exe, I can build them without any problem.

However each time I create a Windows Form control Library project, I can't build it if I modify/add a userControl or if I had a resource file in the project.

How can I fix this problem ?


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>