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?

Community
  • 1
  • 1
Aezur
  • 331
  • 2
  • 8

3 Answers3

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.

Oded
  • 489,969
  • 99
  • 883
  • 1,009
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.

Basile Starynkevitch
  • 223,805
  • 18
  • 296
  • 547
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.

Lee
  • 142,018
  • 20
  • 234
  • 287