plitter
plitter

Reputation: 794

Build and run single file in a project with Microsoft Visual Studio 10

I have a larger C# project which I made a class in and I would like to check my class and see if it does as I want it to do before I add it to the project. Is there a way to build and run that class on its own? I have made a suitable main for that class as well.

Upvotes: 1

Views: 1709

Answers (3)

Adrian Zanescu
Adrian Zanescu

Reputation: 8008

Try making a proper unit test

Upvotes: 2

L.B
L.B

Reputation: 116098

You can use C# compiler csc from command prompt

Upvotes: 1

SLaks
SLaks

Reputation: 887195

You can run your code in LINQPad.

Upvotes: 1

Related Questions