Answer the question
In order to leave comments, you need to log in
C# how to execute code snippet without building project?
Good afternoon!
During the development process, sometimes you need to test something on the example of a small piece of code or procedure.
Run one procedure and check the console output. Like in VBA.
It can take quite a long time to assemble and run the entire project and sometimes it is slowed down by errors in the project. As a result, time is wasted to test some assumption.
Is it possible to execute a piece of code without building the entire project in Visual Studio?
Have a nice day!
Answer the question
In order to leave comments, you need to log in
1) use c# interactive
2) use unit test
3) use LinqPad editor
4) use c# interpreter online
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question