Why is my web deployment project deleting .ascx files from my MVC2 project?

I am currently working on a project that consists of an ASP.NET MVC 2.0 interface and was developed in VS 2008. I have already been busy with a web deployment project to deploy the application so that we can also modify various .config web pages based on configuration assembly.

However, when the deployment project publishes the output files for its purpose (this is currently the place on my local computer), all partial .ascx views are not included and therefore everything stops working. I can do standard publishing via VS, and everything works as expected.

The deployment project seems to be inserting .ascx files when it compiles everything. So, how do I get it to include .ascx files as they are (i.e. not embeddable)? Did I miss something?

Thanks in advance.

Nick.

+3
source share
1 answer

There are several things you can consider:

  • Make sure .ascx is included as part of your project. They probably are, but I should have thrown it there.

  • On the WDP properties page, check the box next to "Allow updating this precompiled site.

  • On the WDP properties page, select Merge All Exits Into One Assembly, and specify the name of the assembly.

  • , - / , .

- ASP.NET MVC

+2

Source: https://habr.com/ru/post/1757893/


All Articles