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

WebBarner 1 Reputation point
2021-08-31T08:39:53.537+00:00

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,888 questions
C#
C#
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,650 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 27,891 Reputation points Microsoft Vendor
    2021-09-02T06:50:48.417+00:00

    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

    Sincerely,
    Anna
    *
    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