H
H
Haaaaz2022-04-08 17:17:49
GitHub
Haaaaz, 2022-04-08 17:17:49

Github builds the project itself? How to fix it?

I have a C# project in Visual Studio. The "build events" set some console commands that must be executed before building the project.
I change a random line in the code and close Visual Studio. This means that the next time you start VS, when you press ctrl + F5, the project should first be compiled (accordingly, my console commands will be executed), and only then run (because before leaving Visual Studio I made changes to the code, but did not build it). In the end, this is what happens. BUT. When I do the same (i.e., change the random string and close the project without building), and then upload the project to GitHub, after downloading and running this project, the code is somehow already compiled. When I press ctrl + F5, the program starts without compiling, as if I did not make any changes to the code. Accordingly, my console commands are not executed, because the assembly does not occur.
But I need that after cloning the repository, it must be rebuilt from a person before launching. Apparently this is done by GitHub itself somehow.
Perhaps there is some setting in the project so that before starting the program, the assembly is MANDATORY, even if there were no changes in the code? It is necessary that the setting is exactly in the project such that when a person downloads my project, he rebuilds it 100% so that the "build events" are executed.
PS Sorry for the extra text

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Haaaaz, 2022-04-08
@haaaaz

Solved a problem. I just delete the contents of the bin -> release and bin -> debug folder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question