O
O
Oxblad2020-09-16 10:53:19
C++ / C#
Oxblad, 2020-09-16 10:53:19

How to compile c# program?

I have created a simple console program.
But if the dll and exe are moved to another folder, the program will not work.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Griboks, 2020-09-16
@Griboks

I answer the question: you need to run the compiler and specify the path to the source code as a parameter (see the compiler help). You can also press f5 in the studio or select "collect" from the menu.
Now about the non-working program. Coffee grounds suggested that the ilmerge utility would suit you.

H
HemulGM, 2020-09-16
@HemulGM

Judging by the comments, you are using absolute paths to files, which is unacceptable. Use relative paths

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question