Home > OS >  Why doesn't .NET compiler react on changing code?
Why doesn't .NET compiler react on changing code?

Time:11-26

I am developing an ASP.NET MVC web application. To run it, I use the following shell commands:

dotnet restore ProjectDirectory

and then

dotnet run --project ProjectDirectory

But I have noticed it doesn't react on changing the code in my project. To check that, I added an alert into a script and re-compiled the project. No alert was displayed. I also tried adding a label into one of my views. No label.

What I have tried

  1. Checked my code editor (VS Code) really writes changes to the files. I opened the script where I have inserted an alert in Notepad. alert was there.

  2. Re-compiled project three times. No effect.

  3. Made some research in the Internet (including Stack Overflow). I couldn't find anyone with the same problem.

  4. Now I have asked a question and hope someone can see a possible reason why it doesn't work.

CodePudding user response:

The problem is solved. I have finally found the answer on Stack Overflow here. The top answer worked for me.

  • Related