question

WebBarner-1769 avatar image
0 Votes"
WebBarner-1769 asked lextm commented

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

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

dotnet-csharpvs-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ASP.NET Web Site has been one of the worst designed project types by Microsoft, so getting rid of it has been of high priority. Users of that project type have been recommended to migrate to ASP.NET Web Application project type for years, and now of course ASP.NET Core/Blazor.

0 Votes 0 ·
SimpleSamples avatar image
0 Votes"
SimpleSamples answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AnnaXiu-MSFT avatar image
0 Votes"
AnnaXiu-MSFT answered

Hi @WebBarner-1769,

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.