Where is the PropertyGroup and so where do I find this to put the entry?Adding <ResGenToolArchitecture>Managed32Bit</ResGenToolArchitecture> to a PropertyGroup in the project file of any project that generates resources targeting .NET 3.5 – since the corflags trick affects the bitness of ResGen.exe on a system-wide level, the property must be set for all affected projects as well.
2. OR If running MSBuild.exe directly, passing it using the global property switch: ‘/p:ResGenToolArchitecture=Managed32Bit’
3. OR Setting it as an environment variable in the command window that MSBuild.exe is run from or the VS 2010 IDE is opened from: ‘set RESGENTOOLARCHITECTURE=Managed32Bit’
Trouble with Visual Studio 2010 and ResGen
Trouble with Visual Studio 2010 and ResGen
I followed the instructions on the developer page for fixing the ResGen issue, but it still won't build my plug in. I can build the main program fine. I followed the link to the Microsoft discussion but don't understand where to put the fix for continued section for workaround 2 :
Re: Trouble with Visual Studio 2010 and ResGen
here is the error i get
Error 15 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:\svn\beta\OpenDental\bin\Debug\OpenDental.exe /r:C:\svn\beta\OpenDentBusiness\bin\Debug\OpenDentBusiness.dll "/r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.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 /compile ContrAccountP.resx,obj\Debug\PluginDrTECH.ContrAccountP.resources ContrChartP.resx,obj\Debug\PluginDrTECH.ContrChartP.resources FormFromToolbar.resx,obj\Debug\PluginDrTECH.FormFromToolbar.resources FormOptions.resx,obj\Debug\PluginDrTECH.FormOptions.resources FormPtDash.resx,obj\Debug\PluginDrTECH.FormPtDash.resources". The handle is invalid. C:\svn\drtechplugin\TRACKER PluginDrtech
Error 15 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:\svn\beta\OpenDental\bin\Debug\OpenDental.exe /r:C:\svn\beta\OpenDentBusiness\bin\Debug\OpenDentBusiness.dll "/r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.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 /compile ContrAccountP.resx,obj\Debug\PluginDrTECH.ContrAccountP.resources ContrChartP.resx,obj\Debug\PluginDrTECH.ContrChartP.resources FormFromToolbar.resx,obj\Debug\PluginDrTECH.FormFromToolbar.resources FormOptions.resx,obj\Debug\PluginDrTECH.FormOptions.resources FormPtDash.resx,obj\Debug\PluginDrTECH.FormPtDash.resources". The handle is invalid. C:\svn\drtechplugin\TRACKER PluginDrtech
- jordansparks
- Site Admin
- Posts: 5746
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
- Contact:
Re: Trouble with Visual Studio 2010 and ResGen
Open one of the project files in a text editor. Look at where we stuck that line and immitate it in the project file for your plugin.
Jordan Sparks, DMD
http://www.opendental.com
http://www.opendental.com
Re: Trouble with Visual Studio 2010 and ResGen
ok, solved that problem, but now I am getting those PDF sharp reference errors and such...why does that happen all the time in Visual Studio? why can't they get it to remember the references.....
...can't remember how i fixed it before...the references look right but it doesn't work
...can't remember how i fixed it before...the references look right but it doesn't work
Re: Trouble with Visual Studio 2010 and ResGen
ok, got the dll dependencies re-established.
Now I have another error I have never seen and don't know where the problem is:
"Bad Image Format Exception Unhandled:
Could not load file or assembly 'CodeBase, Version=7.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
this occurs in OpenDental.ProgramEntry.cs line 42 ...which is:
FormOpenDental formOD=new FormOpenDental(cla);
This only happens when I build my plugin solution, so something I have set wrong. Any ideas to help me?
Now I have another error I have never seen and don't know where the problem is:
"Bad Image Format Exception Unhandled:
Could not load file or assembly 'CodeBase, Version=7.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
this occurs in OpenDental.ProgramEntry.cs line 42 ...which is:
FormOpenDental formOD=new FormOpenDental(cla);
This only happens when I build my plugin solution, so something I have set wrong. Any ideas to help me?
- jordansparks
- Site Admin
- Posts: 5746
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
- Contact:
Re: Trouble with Visual Studio 2010 and ResGen
That's just your solution configuration settings. Remember to build for x86 instead of all platforms.
Jordan Sparks, DMD
http://www.opendental.com
http://www.opendental.com
Re: Trouble with Visual Studio 2010 and ResGen
thanks...I thought I had reset that and didn't think to check it again. Fixed it like magic.