Visual Studio 2010 - Problem to Build NetGore.sln

23 replies [Last post]
Posts: 7
CP: 0

Hi, this is the first time that I use NetGore.
I Use:

Visual Studio 2010 Professional (mdsn school version)
Operating System : Windows XP Service pack 3

I load NetGore.sln, but when I click tu Build,.. I get 85 Errors of this type:

-The type or namespaces name 'Graphics' does not exist in the namaspaces ?NetGore.SFML
-Metadata file 'C:\.............dll' could not be found

And a Warning:

Could not resolve this reference. Could not locate the assembly "nunit.framework, Version=2.5.4.....

If I uninstall the NetFramework 4(But not the 3.5), the program error..
Thanks in advance and sorry for the type of writing but are not native english speakers.

Posts: 1647
CP: 26119
Posts: 7
CP: 0

I have already installed NUnit ...but I Repair Visual Studio 2010..Now when I open NetGore.sln file, appears a window that says:

What should I do?

Posts: 1003
CP: 7799

It says you don't have the .net framekwork version 3.5 so go download and install that Smile

Posts: 7
CP: 0

I have installing the 3.5, after 4.0 because is included in Visual Studio 2010 Professional...If I uninstall the 4.0, remains the 3.5 but Visual Studio Not Work..=(......

Another type of errors of all 85:

"are you missing an assembly reference?"

Posts: 1003
CP: 7799

Uninstall VS2010, uninstall .net4.0, install .net3.5, install VS2010 with .net4.0

Posts: 7
CP: 0

nothing...the same errors... I started the download of 2008 version...VS2008 work with last version of NetGore?

Posts: 1003
CP: 7799

Nope, the solution only works in the 2010 versions.

Posts: 1647
CP: 26119

Could be that you are using Parallels. Have never tried it, so no idea how well it is supported. Either Parallels doesn't work so great with the .NET framework and Visual Studio, or your installation of one of those is messed up somehow.

Posts: 7
CP: 0

Mmm can be parallels..i try to install windows with bootCamp...Thanks to all, I will let you know

Posts: 1647
CP: 26119

Sorry its such a pain in the butt. At least its easy on Windows! Wink

Posts: 7
CP: 0

Ok my English vocabulary is small .."a pain in the butt oO.."ahah..thanks Spodi and thanks to all...tomorrow, I try everything in my sister's pc

Posts: 19
CP: 0

Beenladen wrote:
Ok my English vocabulary is small .."a pain in the butt oO.."ahah..thanks Spodi and thanks to all...tomorrow, I try everything in my sister's pc

That made me lol. Smile

Its probably not a good idea to do any kind of development on a virtual machine IMO. There may be some cases when it might be necessary though I guess... Now im rambling...

"Individual science fiction stories may seem as trivial as ever to the blinder critics and philosophers of today—but the core of science fiction, its essence ... has become crucial to our salvation if we are to be saved at all. "
-Isaac Asimov

Posts: 7
CP: 0

I try with a pc...the same errors...

The type or namespace name 'Graphics' does not exist in the namespace 'NetGore.SFML' (are you missing an assembly reference?).	
Metadata file 'C:\.....\NetGore\bin\NetGore.Features.dll' could not be found.
The command ""C:\Documents and Settings\Beppe\Desktop\NetGore\CopyContent.exe" "C:\....\Desktop\NetGore\DevContent" "C:\Documents and Settings\Beppe\Desktop\NetGore\DemoGame.Client\bin\Content"" exited with code -2146232576.

=(

Posts: 3
CP: 0

Since there was someone else with the same problem I'm going to post here.

I, too, had problems with Copycontent.exe, InstallationValidator.exe, NUnit framework missing, .NET framwork version 3.5/4.0 but after many hours I've somehow managed to fix all of those.. at least it doesn't give me any errors anymore.
However, I still get those 85 errors when I try to build Solution, here's the exact list
http://pastie.org/951461.txt?key=uvk54iuurlz5n4okvg
It says I'm missing actual files and something else I don't really get... and I have no more ideas what to do.
Has anyone managed to fix this?

Program: Microsoft Visual C# 2010 Express
OS: Windows XP Service pack 3

Posts: 1003
CP: 7799

Seems like you're missing the 'Graphics' folder? Also, do a right click on the solution and do clean solution and then build solution. It's missing files it hasn't compiled yet I think.

Posts: 3
CP: 0

I don't know what you mean by "clean solution", I didn't find anything like that.
I managed to get rid of the dll errors by copying those missing dlls from Netgore\InstallationValidator\bin because Netgore\bin was completely empty. But I still keep getting those
"The type or namespace name 'Graphics' does not exist in the namespace 'NetGore.SFML' (are you missing an assembly reference?)"
errors. Also I checked to see if I'm missing the graphics folder but Netgore\Netgore\SFML\Graphics exists and there are many files & subfolders there. Netgore\Netgore\Graphics exists too.

Posts: 1003
CP: 7799

Is it included in the Solution though? (Does it appear in the solution explorer?)

Posts: 1647
CP: 26119

Skye wrote:
Is it included in the Solution though? (Does it appear in the solution explorer?)

Its the namespace that is missing, not the files. Usually this means that some other part of the solution is messed up or not building.

My guess is your "fixing" of the errors didn't really fix things. What problems were you having with the InstallationValidator? And how was CopyContent giving problems?

Posts: 3
CP: 0

InstallerValidator got stuck at "Load database settings", it gave a lot of errors but after I reinstalled the programs it runs successfully.
I'm not so sure about CopyContent, it was the first time I tried to build Solution and I got a runtime error ~3 times. That problem also disappeared after I reinstalled the programs. Basically my fixing has been reinstalling the programs, trying different versions for NUnit (Like changing from NUnit 2.5.5 to 2.5.4 fixed its warning message) and taking the missing DLLs from Netgore\InstallerValidator\bin to Netgore\bin.

Posts: 1647
CP: 26119

You don't NEED NUnit. As the InstallationValidator should say, you can just right-click NetGore.Tests and click Unload Solution.

Posts: 2
CP: 0

Hi there, i know this topic is a few weeks old, but I just registered to share the fix for me in case more people has the same problem:

While i was receiving that many errors, i went to check carefully some of them and most were related for error on the build of 'netgore.dll', so I went to check the logs for its error, and there were 2 errors. Both were trying to load something from the folder but it could not be found, then I noticed that the path to the folder was wrong due to 'strange' characters on my windows username ('ø'), so I just moved the folder to the root folder ('C:\') and that fixed all my errors.

That will hopefully help someone.

Comments,
From: Zananok

Posts: 1647
CP: 26119

Thanks for sharing, Zananok. Unfortunately, I don't think there is anything I can do to resolve that. I believe it is a problem with Visual Studio or MSBuild itself. Though having foreign characters in your paths is generally not a good idea anyways, no matter the OS, for precisely that reason. Smile

Posts: 2
CP: 0

No problem ^^.

I did not search the source on the code you use to find the .dll and other files yet, so I'm not sure how you are searching the file on the current apps dir, but I usually use the code:
 string examplePath = Application.StartupPath + "\\pizzaGuy.dll";
It works even if you have special characters on the path ^^. 'Application.StartupPath' gives the full path without the ending slash.

But then again, of course its better to follow your advice on not having special chars on paths ^^.

EDIT: I just noticed its from the vs 2010 builder itself,you are right. Hopefully they will fix that soon.

Comments,
From: Zananok