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

Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

2 answers

Sort by: Most helpful
  1. Sam of Simple Samples 5,546 Reputation points
    2021-08-31T19:44:54.93+00:00
    0 comments No comments

  2. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.