jeroenvdbergh
jeroenvdbergh

Reputation: 362

How to publish referenced projects within an ASP.NET project

I'm building an ASP.NET web portal for a project for school.

I use a three tier architecture and I'm trying to publish it using FTP. The web project is published successfully but the other two projects aren't published on the IIS.

How can I tell visual studio that I want these projects published alongside the web project?

here is an image to make it a bit more clear

https://i.sstatic.net/CXPl5.png

Thanks in advance

Upvotes: 0

Views: 1984

Answers (2)

user2148124
user2148124

Reputation: 970

No need to publish other projects separately.

  1. Give reference of other project to your main project.
  2. Publish Main Project.
  3. DLL's of all projects will get created in bin folder[you will get this folder in publish folder].
  4. Just upload files in bin folder to FTP.

Upvotes: 1

Saadi
Saadi

Reputation: 2237

You don't need to publish the class library projects. All you have to do is to add references of your class library projects in your web application and publish it. It'll add your class library projects dll in bin folder of your published folder.

Upvotes: 0

Related Questions