How to compile all code into one dll file in VS2019?

WebBarner 1 Reputation point

I've created a blank solution in VS2019. Using the option "add existing website" I've added a website to the solution which was built in VS2010. Normally, after that, I was used to add a Web Deployment Project to the solution, to compile all the code in one dll, and upload the result to the web server. But this kind of project does not seem to be compatible anymore with the newer versions of VS.

Please advice. TQ

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,789 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,524 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 27,226 Reputation points Microsoft Vendor

    Hi @WebBarner ,

    Welcome to Microsoft Q&A!

    Please convert your Web Site project to Web Application project and try again.
    Walkthrough: Converting a Web Site Project to a Web Application Project in Visual Studio

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments