I think I'm wrong saving in Visual C #

05/31/2010 00:54 verdito99#1
NPCDialog.cs open (for example) and change something. So I save and close. (I saved by using Ctrl + S). I the New CO Server and reopen. And when I open the server, the NPC has changed nothing. What i need to do to save correctly?
05/31/2010 01:27 pro4never#2
saving does nothing... You need to debug it in order to re-build the .exe files.


The project file and the .cs files it loads are all your source code that controls the server. You cannot simply run those though (without using a compiler obviously, I just mean in general). You have to use a program to build them into a .exe file that you can click and run. To do that press f5 in your project and it will debug (and load) the server. you can then open the bin/debug folder to find the .exe and run it.
05/31/2010 03:09 LetterX#3
Quote:
Originally Posted by pro4never View Post
saving does nothing... You need to debug it in order to re-build the .exe files.


The project file and the .cs files it loads are all your source code that controls the server. You cannot simply run those though (without using a compiler obviously, I just mean in general). You have to use a program to build them into a .exe file that you can click and run. To do that press f5 in your project and it will debug (and load) the server. you can then open the bin/debug folder to find the .exe and run it.
You made something so simple so confusing.

@OP: You aren't building your project. Go to Build > Build Solution OR hit "F6"... then run the server.

You hit F5 (or Debug > Start Debugging) when you want to debug it within Visual Studios to find errors.
05/31/2010 08:14 kinshi88#4
Writing code does nothing.
You have to COMPILE that code into machine language, so you get the .exe you see.
So just saving the code does nothing. You would have to recompile the project.
05/31/2010 20:59 .Beatz#5
To clarify this to rebuild the project hit F6 and that will rebuild the project
06/01/2010 09:54 Korvacs#6
Make sure you open the project file, not a single .cs file, project files have the extension .sln
06/01/2010 10:02 Arcо#7
and .csproj
06/02/2010 04:14 .Summer#8
why not just say:
1. press F6
2. press F5
3. Eat a cookie

#EDITED
06/02/2010 14:58 Korvacs#9
Quote:
Originally Posted by .Summer View Post
why not just say:
1. press F6
2. press F7
3. Eat a cookie
So your suggesting to:

1. Build the source (good suggestion if the user opens the project file)

2. F7 is the shortcut for View->Code, useless suggestion.

3. Eat a cookie...

Why not just not post? :facepalm:
06/02/2010 15:17 .Summer#10
ops, i menat F5 and not F7 LMAO.
I will change, thansk for notice korvacs.