How to publish referenced projects within an ASP.NET project - c#

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
http://i.imgur.com/J4qeyTj.png
Thanks in advance

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

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.

Related

How do I publish a WPF application with ClickOnce correctly?

I have written a WPF application, which uses a third-party API (as .dll) as a project dependency, in Visual Studio 2022. I'm able to publish the application both to a local folder and with ClickOnce, however, with the former, the application file does not run and with the latter, the application does not run after installation either. The application file in my bin\Release and bin\Debug folders both work, however.
I've tried the following:
Unload Project and Reload Project with Dependencies
Defining the Starting object
I would like to publish the project with ClickOnce, but I'm not sure what the problem could be. Thank you for your help in advance.
Project properties
Project properties (continued)

How to create a "content only" project in a Visual Studio 2017 solution?

Is there an easier way to create content only projects in Visual Studio 2017 with out having to edit csproj files?
My objective is to have a class library project in my solution that does not produce and assembly/dll.
ASP.NET Empty Web Site is the project type you are looking for. It is located under Visual C#-Web-Previous Versions.
Project file structure
There is no project file (.csproj or .vbproj). All the files in a folder structure are automatically included in the site.
Compilation
If you do include source code in the project, the source code is typically compiled dynamically (automatically) by ASP.NET on the server the first time a request is received after the site has been installed or updated.
Deployment
You copy the application source files to a computer that has IIS installed on it, or use visual studio tools that integrate with Web Deploy (the IIS web deployment tool) to automate many deployment tasks.
Limitations
There are a number of limitations to these project types but if you are only looking for static content and no compiled assemblies, the limitations should not affect you.
There is much more documentation located here regarding the specifics of this project type.

Created mvc project and published but newly-added folder did not follow

I created an MVC project in Visual Studio 2013 and published it to Azure and it worked great. I made some changes by adding an image folder under content. Well, when I went to publish my changes to Azure, that folder did not get published.
I had to manually right-click on the folder in Solution Explorer and publish it separately. Can I do this automatically?

Deployment of Visual Studio solution containing dll project and exe project

I have a Visual Studio 2010 solution that contains 3 projects: a dll project, an executable project, and the Installer project.
I am working on the dll and the executable concurrently. The executable is simply a front end for the library. While developing the two in Visual Studio I simply added a reference to the dll project from within the executable and it works fine.
What I'm having trouble with is the deployment. Ideally the dll would be compiled and installed in a subdirectory of the executable. Using the "Visual Studio Installer - Setup Wizard" project template for my installer doesn't seem to be giving me the options I need.
Am I going about this wrong by developing my backend and frontend in different projects? What steps should I take to deploy the compiled dll along with the executable? I may be going about this all wrong, so please help me understand a better methodology if this seems backwards. For all the programming I learned in college, no one ever went over what I do when I actually want to deploy my software.
Since the DLL project is explicitly referenced from the EXE project, it is automatically copied in the EXE's build folder (i.e. bin\Debug or bin\Release) and is considered part of EXE project's "primary output". As a consequence, you only need to reference the EXE from your setup project.
The installed DLL will be in the same folder as EXE. Why would you want to install the DLL in a different folder on the user's machine if it is not there on the development machine? If you are loading it dynamically and using reflection, then don't reference it from EXE, but do reference it from the setup project, which then gives you the power to set whatever target folder you want.
This is what you need to do.
On your Solution create new Project > Other project Types > Click Setup and Deployment
On The Application Folder > right click > Then Add your front end Application > Build.
Check this
Regards

ClickOnce deployment for solution containing several projects

I have a solution containing several projects, as well as some projects that get copied into subfolders relative to the main application. Is there any possibility to deploy this using ClickOnce? Or should i create a seperate project including references to my built files just for clickonce deployment?
What is the actual problem you are having?
Referenced assemblies are included automatically, and if I add an .EXE to a subfolder of my Project it shows up in the Application Files dialog of Project|Publish.

Categories