Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

update global.asax not only global.asax.cs

Inside my local publish folder I have Global.asax and Global.asax.cs where Global.asax is not updated (dated one month ago) and Global.asax.cs is updated.

I check the "Build action" of the Global.asax file which is set to "Content" and Copy always in the file properties.

How to update global.asax together with global.asax.cs on publish command?

like image 862
user1765862 Avatar asked Mar 14 '23 18:03

user1765862


1 Answers

Global.asax doesn't usually change. Global.asax is compiled into a class deriving from the Global class in your Global.asax.cs.

You don't have to do anything for that. The server's compiler will pick it up itself. You just need to copy the Global.asax to your production server, where the Global.asax.cs will be compiled into an assembly.

like image 155
Patrick Hofman Avatar answered Mar 24 '23 22:03

Patrick Hofman