Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include dependencies in Setup and Deployment Project?

I have a solution that consists of 3 projects. I've created a deployment project it is only including the dependencies from one of the projects in my solution.

What I've done so far is in my Setup and Deployment project, I right-clicked "Application Folder" to Add --> Project Output. Next I selected my main project from a dropdown and selected "Primary Output". I clicked OK and that project's dependencies were successfully included in the deployment.

I tried to repeat the same process for the other DLLs in my solution, but it didn't include their dependencies.

How do I include all dependencies for each project?

like image 854
binncheol Avatar asked Jun 13 '12 08:06

binncheol


People also ask

How to include dependencies from one project in deployment project?

I've created a deployment project it is only including the dependencies from one of the projects in my solution. What I've done so far is in my Setup and Deployment project, I right-clicked "Application Folder" to Add --> Project Output. Next I selected my main project from a dropdown and selected "Primary Output".

How do I deploy a project in Visual Studio?

While in Visual Studio in your Windows Application, right click on the Solution and select Add, New Project. Select Setup and Deployment from Other Project Types and select Setup Wizard.

Are the dependencies detected by the Visual Studio setup project correct?

Please note that the dependencies detected by a Visual Studio setup project are more like suggestions. You shouldn't put too much trust in them since false positives are very common. For a professional installer you should determine the correct dependencies yourself and add them in your project in the appropriate form.

How do I deploy a project to the default environment?

Deployment of Project to the Default environment is done for you automatically. When Project for the web or Roadmap are first used in an Office 365 tenant, a Default Dataverse instance is provisioned for the tenant and the solutions are deployed. The below sections only applies to Admins interested in deploying Project to a non-Default environment.


1 Answers

Please note that the dependencies detected by a Visual Studio setup project are more like suggestions. You shouldn't put too much trust in them since false positives are very common.

For a professional installer you should determine the correct dependencies yourself and add them in your project in the appropriate form. For example, some of the dependencies may be part of a runtime or framework which can be added as a prerequisite to your installer.

If you can't figure out what dependencies your application has, you can try using a dependency walker.

like image 55
rmrrm Avatar answered Oct 21 '22 02:10

rmrrm