20091104

Visual Studio and Resource.resx missing

To be more specific i had trouble building the Sample and Library Sources in C# from Forest Moon Productions. It concerns an API that i wanted to try out.

Errors
When opening the ArmSample project in Visual Studio 2008 Pro i was met with the following errors:
Warning 1 The custom tool 'ResXFileCodeGenerator' failed while processing the file 'Properties\Resources.resx'.
When then building in an attempt to run it anyhow it trows two errors:

Error 1 Metadata file 'C:\Documents and Settings\Staes\Desktop\InternetFiles\ForrestMoonProductions\AX12 sample and library sources in C#\AX12ArmSources\Projects\Joystick\Joystick\bin\Debug\Joystick.dll' could not be found AX12ArmSample
Error 2 Resource file "Properties\Resources.resx" cannot be found. Joystick
Warning 3 The custom tool 'ResXFileCodeGenerator' failed while processing the file 'Properties\Resources.resx'.
These files are not in the archive i downloaded. I reckoned the files got repacked and some are missing now or i use a unsuited IDE version, or i might have some misconfiguration on the Windows XP computer bursting anyway with all the installations of DirectX, DotNetFramework, runtimes, drivers, and whatnot.

Solution
Most google searches led me to irrelevant sites, and some suggested altering the .csproj files with Notepad. When i did that just more errors popped up, pulled out anything i got (even Bing.com) and was willing to  giveup, figured that a reboot might help and decided to emailed the author weither he saw the problem before.

Minutes later i tried this obvious and simple solution: removing the /Resource.resx files from the project. To be more specific those in AX12ArmSample and JoyStick sub projects. All other errors dissapeared.

Priming myself
Turns out i overlooked those files in the projectbrowser, and went searching for some deep rooted cause that didn´t exist. Its been to long since using Visual Studio, in the old days easy stuff like this didn't cost me 2 cups of caffeine to figure out. I wish i never stopped using it and should have used an easyer project to play catchup with on the IDE. (I'm trying to graph AX12 actuator outputs)

Its late. Time for a nap i guess. Oh crap .. damn caffeine!
Perhaps i´ll watch Primer again. On Android! Use the download link at Google Video while it lasts.

UPDATE 20091108:
I mailed Scott Ferguson about the missing files in his library, he fixed the download;
I added the missing files Resources.resx and Resources.Designer.cs to the Projects\Joystick\Joystick\Properties\ path in the AX12ArmSources.zip file:
http://www.forestmoon.com/Software/AX12ArmSample/AX12ArmSources.zip
Thanks for reporting the issue! Do let me know if you encounter further problems.

No comments:

Post a Comment