ojek
ojek

Reputation: 10068

ASP.NET MVC - compiler not updating global.asax

I was trying to make some changes to my global.asax.cs file, when I spotted, that after publishing my mvc application that file is not even touched by visual studio. Last modified date is from last week, while today I made a lot of changes to it. How do I force visual studio to actually do something useful?

Upvotes: 1

Views: 1012

Answers (1)

Dimitar Dimitrov
Dimitar Dimitrov

Reputation: 15138

Make sure that the "Build Action" for the Global.asax is set to "Content". Open Visual Studio -> Right Click on Global.asax -> Build Action

Upvotes: 1

Related Questions