B
B
BasiC2k2020-03-31 19:01:10
Visual Basic
BasiC2k, 2020-03-31 19:01:10

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

2 answer(s)
I
Ilya, 2020-04-01
@BasiC2k

1) use c# interactive
2) use unit test
3) use LinqPad editor
4) use c# interpreter online

F
freeExec, 2020-03-31
@freeExec

Collect your code snippet in a separate project, obviously.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question