Visual Studio 2012 Creating Additional dll when Publishing

729 Views Asked by At

I have an ASP.NET website in which all pages use the same master page, but recently needed to add an additional master page to work with one particular page. I tested it in Visual Studio 2012 and everything worked just fine and dandy, and it published just fine. However, I noticed that an extra .dll is created called app_web_.dll and is referenced by my new master page. I want the code-behind of the new master page to be compiled with the main .dll like everything else, or better yet not at all since the new master page's code-behind file is empty anyways. If I delete the extra .dll and then go into the new master page and delete the reference to it, it works just fine. I just don't want to have to keep going back and deleting things on every publish. How can I get Visual Studio to stop putting that in there? I imagine it would be some sort of setting I have because I did this exact thing to 4 websites and only 2 have this mystery dll issue.

0

There are 0 best solutions below