473,805 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help setting up Solution

Hello,

I currently have a .dll assembly and 2 .exe assemblies that both use the
..dll assembly. I currently have the IDE set up as 3 separate projects. I
must always first build the .dll assembly, then the other two. What I'd
like to be able to do is to set it up so that they all work together, that
is whenever I change something in either of the 3 whatever is necessary will
be rebuilt in the correct order automagically. When I tried to do this by
putting everything into one assembly it complained (as expected) that there
were 2 Main entry points.

Thanks,
Ray Mitchell
Nov 15 '05 #1
3 1619

"Ray Mitchell" <Ra*********@Me anOldTeacher.co m> wrote in message
news:ph******** **********@news read2.news.pas. earthlink.net.. .
Hello,

I currently have a .dll assembly and 2 .exe assemblies that both use the
.dll assembly. I currently have the IDE set up as 3 separate projects. I
must always first build the .dll assembly, then the other two. What I'd
like to be able to do is to set it up so that they all work together, that
is whenever I change something in either of the 3 whatever is necessary will be rebuilt in the correct order automagically. When I tried to do this by
putting everything into one assembly it complained (as expected) that there were 2 Main entry points.
Use project references (Add Reference, Projects tab) instead of hard
references to the assembly. This will do what you want. Thanks,
Ray Mitchell

Nov 15 '05 #2

"Daniel O'Connell" <onyxkirx@--NOSPAM--comcast.net> wrote in message
news:ej******** ******@TK2MSFTN GP11.phx.gbl...

"Ray Mitchell" <Ra*********@Me anOldTeacher.co m> wrote in message
news:ph******** **********@news read2.news.pas. earthlink.net.. .
Hello,

I currently have a .dll assembly and 2 .exe assemblies that both use the
.dll assembly. I currently have the IDE set up as 3 separate projects. I must always first build the .dll assembly, then the other two. What I'd
like to be able to do is to set it up so that they all work together, that is whenever I change something in either of the 3 whatever is necessary

will
be rebuilt in the correct order automagically. When I tried to do this by putting everything into one assembly it complained (as expected) that

there
were 2 Main entry points.

Use project references (Add Reference, Projects tab) instead of hard
references to the assembly. This will do what you want.
Thanks,
Ray Mitchell


I think that's what I've done. I've added a reference to the common .dll
created by the common project to the list of references for each of the
other two projects that use that .dll. A I missing what you're telling me
somehow? Thanks for your help.
Nov 15 '05 #3

"Ray Mitchell" <Ra*********@Me anOldTeacher.co m> wrote in message
news:hc******** ***********@new sread2.news.pas .earthlink.net. ..

"Daniel O'Connell" <onyxkirx@--NOSPAM--comcast.net> wrote in message
news:ej******** ******@TK2MSFTN GP11.phx.gbl...

"Ray Mitchell" <Ra*********@Me anOldTeacher.co m> wrote in message
news:ph******** **********@news read2.news.pas. earthlink.net.. .
Hello,

I currently have a .dll assembly and 2 .exe assemblies that both use the .dll assembly. I currently have the IDE set up as 3 separate projects.
I
must always first build the .dll assembly, then the other two. What
I'd like to be able to do is to set it up so that they all work together, that is whenever I change something in either of the 3 whatever is
necessary will
be rebuilt in the correct order automagically. When I tried to do
this by putting everything into one assembly it complained (as expected) that there
were 2 Main entry points.

Use project references (Add Reference, Projects tab) instead of hard
references to the assembly. This will do what you want.
Thanks,
Ray Mitchell


I think that's what I've done. I've added a reference to the common .dll
created by the common project to the list of references for each of the
other two projects that use that .dll. A I missing what you're telling me
somehow? Thanks for your help.

In vs.net, there are four types of references, .assembly file references,
which reference assemblies on disk, COM references that referernce COM
objects via interop assemblies, Web references that reference web services
through similar proxy assemblies, and project references which are linked to
a project, not a given file. By linking to a project in the current
solution, visual studio adds a dependency and automatically builds all
assemblies the assembly you are building is dependent upon, this is the
effect you are after, correct?

To achieve it, when you add the reference, you would use the Projects tab on
the Add Reference dialog, not the .NET tab.

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1596
by: Mike | last post by:
Hey guys I am pulling my hair out on this problem!!!!! Any help or ideas or comments on how to make this work I would be grateful! I have been working on this for the past 4 days and nothing I do seems to get me any closer to the solution. Below is a program that I am working on for a class project. The original code was provided for us which is what I have below. What we have to do is make the app run so that it allows the user to add...
13
2923
by: Brett Baisley | last post by:
At school, we do all of our coding in emacs, but I am trying to get the example apps working at home using Visual C++.net. In the example, there are 4 .cpp files (canvas.cpp, main.cpp, myDisplay.cpp and tween.cpp) a header file (canvas.h) and a makefile that compiles it for linux. The tween.cpp is the main file, and it only contains inludes statements to the other files.
2
1841
by: M Skabialka | last post by:
I installed Visual Studio Beta 2005 but setting up the SQL server was so complex I uninstalled it and put Visual Studio 2003 Academic on. I am totally new to Visual Studio and trying to teach myself from books and online classes. I tried to follow instructions to creating a new ASP.NET Web Application. The default location for this is http://localhost/WebApplication1 I hit OK then get this message: The Web server reported the...
20
4113
by: Tony | last post by:
I have a situation where I want to send data, but I have no need for a response. It seems to me that XMLHTTPRequest is the best way to send the data, but I don't need any response back from the server. Basically, I'm writing js errors to an error log on the server side - and there is no need to inform the user that the error has been logged. The problem is that I don't want to sit with the request open & waiting for a response, when I...
4
12857
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property, which becomes invalid when the user installs the database (ie: c:\devpath\ becomes c:\program files\mydbapp, but the .Picture property still points to c:\devpath\) The problem is that I don't *know* what installation path the user will select,...
7
2010
by: Ronald S. Cook | last post by:
In a .NET Windows app, if I set somehting like the title of the form to "MyApp" at run-time, will that make the app run slightly slower than if I had set the title at design-time? Thanks, Ron
21
1897
by: tizmagik | last post by:
Database consists of the following 4 tables with respective attributes: CUSTOMER(C#, CUSTOMER NAME, ADDRESS), the key is ITEM(I#, ITEM NAME, MANUFACTURER, YEAR), the key is BOUGHT(C#, I#, DATE, QUANTITY), the key is PREFER(I#, C#), the key is I'm trying to construct the following query (in SQL)
3
2000
by: kjell | last post by:
Hi, I wonder if someone may have a solution to a small problem I'm experiencing with a C++ program? I'm have two classes in my application that provides methods for setting parameters in the classes. These methods returns a pointer to the class itself so that you can use the return value to call another attribute setting method on the same line. This is what my program look like: #include <iostream>
4
1651
by: daxco21 | last post by:
I have been working on this simple project for a week, and come to the point where I feel like I need outside help. For the life of me I can't figure out what is wrong with this "sellIceCream(...)" method. I think theres something wrong with my if statement, because even if i have enough "ingredients", it still prints my "not enough" statement instead of selling. The error that the online tester for this project gave me was: "Test results...
0
934
by: dihola | last post by:
Hi all, I am developing 2 websites (A and B) that share a lot of pages and classes, and I wonder if I am doing it the right way. I have extracted the common classes and created master pages for all common pages in a third project (C), as follows (roughly simplified): --C ---page1.master ---page2.master ---commonclass1.cs ---commonclass2.cs
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10103
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9179
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7644
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.