Solved

Visual stuido 2010 - How to include used references in a build

Posted on 2013-05-23
2
180 Views
Last Modified: 2014-02-25
Hi Experts

I have a Visual stuido project, when Building a release of the code I want the used references comipled into the Exe or have them located in the Exe path, is there an option for me to do this?
0
Comment
Question by:MrDavidThorn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
ChloesDad earned 250 total points
ID: 39192711
Assuming that you are using the full version of VS2010 and not the express version of VB, then you need to add a setup project and create a solution. This will then do almost all of the work for you.

Click File - Add - New Project

In the project types list open up "Other Project Types" then select setup & Deployment and chose Setup Project.

Once you have added the project then you add the exe and other files that you want to install on the target machine and can create the folder paths etc. It is very powerful in what it can do for you.
0
 
LVL 40

Assisted Solution

by:Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger) earned 250 total points
ID: 39197867
First of all, you do not need to do that for references to the framework dll. Same as Windows is needed to run a Windows application, the framework is a prerequisite for any station that needs to run a .NET application. So these dlls must already be installed on the users stations.

Note also that you must inquire as to whether you have the right to distribute the dlls. This is different for each dll. For instance, you cannot distribute stuff from the Office installation, Office must be installed separately on the users computers if your application needs it.

For the other dlls, you have 2 options.

Click on the dll in the references and set Copy Local to True in the Properties window. This will copy the dll in the application directory when you compile it, and most installations scenarios will automatically include these dll for you. Note that Copy Local is disabled if the Embed Interop Types is set to True.

The second option is Embed Interop Types. If you set it to True, the parts of the dll that are needed by your application ends up compiled into the application itself. This does not work will all dlls however, mostly with COM dlls.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question