0

Possible Duplicate:
Is it possible to install c# compiler w/o Visual Studio?

I've just finished Global Game Jam 13 where I served as an artist. I have the files of the game but am at a loss of how to run them. It is all .cs files and folders within folders. How do I make an executable file out of it?

4
  • I believe the answers to this question can help you - stackoverflow.com/questions/861384/… Commented Jan 27, 2013 at 16:55
  • Does it have a .csproj or a .csproj.user file? If you could post those we may be able to help. Or even a .sln. Commented Jan 27, 2013 at 16:55
  • 1
    @ofstream I'm not sure I understand how pasting a csproj/sln helps Commented Jan 27, 2013 at 17:14
  • No I forgot MSBuild existed. A .sln/.csproj has the locations of all the files. Commented Jan 27, 2013 at 17:19

3 Answers 3

6

Load it up into Visual Studio. This should be the .sln file, if one doesn't exist, there would be a .csproj file.

You can get the free, express edition here - you will need the Windows Desktop edition, most likely.

To build and launch you F5 is the usual keyboard shortcut.

Sign up to request clarification or add additional context in comments.

5 Comments

+1: although you should explain about release mode and where to look for the .exe
@Baboon - Express editions will not have a separate Debug/Release configuration. They are stripped down versions, after all.
It appears it's only once you activated "expert" settings in the express edition oO
@Oded I can tell you I have release configuration on my Express edition.
@Baboon - I was not aware of that option. Thank you for teaching me something today :)
1

You could also consider using MONO which is a free software, multi-platform, implementation of C#.

However, in all cases, you'll need to compile your C# source code into CIL bytecode at least.

2 Comments

-1: you're totally missing the point.
No, he's not. He's merely suggesting another compiler.
1

If you just want build it, and there is a .csproj or .sln file, you can use msbuild from the command line:

msbuild proj_file.csproj
msbuild solution_file.sln

MSBuild is located in the .Net framework install folder, which is %WINDIR%/Microsoft .Net/Framework(64)\version\

If there's no csproj or solution files you will have to use the C# compiler directly (csc.exe) - see here.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.