473,473 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Define assembly folder?

Hi,
Is there a way to define where the assembly should search for its referenced
assemblies? I have my assemblies in different locations and I don't want to
add them the GAC.

Any help is appreciated!

Thanks,

Mats-Lennart
Nov 17 '05 #1
6 1837
erm .... Yes. Did you know that the Visual Studio IDE is just a nice fancy UI
tool, and the real work is done by the ILASM and other such modules?

So, with that said .... in the solution explorer, right click on your
PROJECT (not solution) and select the properties menu. In the "MyApplication
Property Pages" dialog that is displayed, select common Properties/References
Path ... enter your paths

--
Of all words of tongue and pen, the saddest are: "It might have been"

Bill.Richards @ greyskin .co .uk
http://greyskin.co.uk
"Mats-Lennart Hansson" wrote:
Hi,
Is there a way to define where the assembly should search for its referenced
assemblies? I have my assemblies in different locations and I don't want to
add them the GAC.

Any help is appreciated!

Thanks,

Mats-Lennart

Nov 17 '05 #2
erm .... Yes. Did you know that the Visual Studio IDE is just a nice fancy UI
tool, and the real work is done by the ILASM and other such modules?

So, with that said .... in the solution explorer, right click on your
PROJECT (not solution) and select the properties menu. In the "MyApplication
Property Pages" dialog that is displayed, select common Properties/References
Path ... enter your paths

--
Of all words of tongue and pen, the saddest are: "It might have been"

Bill.Richards @ greyskin .co .uk
http://greyskin.co.uk
"Mats-Lennart Hansson" wrote:
Hi,
Is there a way to define where the assembly should search for its referenced
assemblies? I have my assemblies in different locations and I don't want to
add them the GAC.

Any help is appreciated!

Thanks,

Mats-Lennart

Nov 17 '05 #3
I'm aware of reference paths. I can't use this though, since I during design
time don't know where the components will be located. The user can define
any location during installation so I can't set it when compiling.

Maybe I was a bit unclear, but I'm wondering how to set reference paths
programatically. Can this be done?

Thanks for your answer,

Mats-Lennart

"billr" <bi***@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
erm .... Yes. Did you know that the Visual Studio IDE is just a nice fancy
UI
tool, and the real work is done by the ILASM and other such modules?

So, with that said .... in the solution explorer, right click on your
PROJECT (not solution) and select the properties menu. In the
"MyApplication
Property Pages" dialog that is displayed, select common
Properties/References
Path ... enter your paths

--
Of all words of tongue and pen, the saddest are: "It might have been"

Bill.Richards @ greyskin .co .uk
http://greyskin.co.uk
"Mats-Lennart Hansson" wrote:
Hi,
Is there a way to define where the assembly should search for its
referenced
assemblies? I have my assemblies in different locations and I don't want
to
add them the GAC.

Any help is appreciated!

Thanks,

Mats-Lennart

Nov 17 '05 #4
I'm aware of reference paths. I can't use this though, since I during design
time don't know where the components will be located. The user can define
any location during installation so I can't set it when compiling.

Maybe I was a bit unclear, but I'm wondering how to set reference paths
programatically. Can this be done?

Thanks for your answer,

Mats-Lennart

"billr" <bi***@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
erm .... Yes. Did you know that the Visual Studio IDE is just a nice fancy
UI
tool, and the real work is done by the ILASM and other such modules?

So, with that said .... in the solution explorer, right click on your
PROJECT (not solution) and select the properties menu. In the
"MyApplication
Property Pages" dialog that is displayed, select common
Properties/References
Path ... enter your paths

--
Of all words of tongue and pen, the saddest are: "It might have been"

Bill.Richards @ greyskin .co .uk
http://greyskin.co.uk
"Mats-Lennart Hansson" wrote:
Hi,
Is there a way to define where the assembly should search for its
referenced
assemblies? I have my assemblies in different locations and I don't want
to
add them the GAC.

Any help is appreciated!

Thanks,

Mats-Lennart

Nov 17 '05 #5
I don't think I do understand the problem :o((

If you have a project that you want to compile, and that project needs to
reference an external library, you have to know where that assembly is in
order to compile your project (or even to use the intellisense of Visual
Studio).

When you build your project, by default the dependencies are also copied to
the output directory. When you are creating your installer for your assembly,
you should include the dependencies also ... you need to do this because you
are insisting on not using the GAC and therefore you need to package
everything you need in order to operate.
--
Of all words of tongue and pen, the saddest are: "It might have been"

Bill.Richards @ greyskin .co .uk
http://greyskin.co.uk
"Mats-Lennart Hansson" wrote:
I'm aware of reference paths. I can't use this though, since I during design
time don't know where the components will be located. The user can define
any location during installation so I can't set it when compiling.

Maybe I was a bit unclear, but I'm wondering how to set reference paths
programatically. Can this be done?

Thanks for your answer,

Mats-Lennart

"billr" <bi***@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
erm .... Yes. Did you know that the Visual Studio IDE is just a nice fancy
UI
tool, and the real work is done by the ILASM and other such modules?

So, with that said .... in the solution explorer, right click on your
PROJECT (not solution) and select the properties menu. In the
"MyApplication
Property Pages" dialog that is displayed, select common
Properties/References
Path ... enter your paths

--
Of all words of tongue and pen, the saddest are: "It might have been"

Bill.Richards @ greyskin .co .uk
http://greyskin.co.uk
"Mats-Lennart Hansson" wrote:
Hi,
Is there a way to define where the assembly should search for its
referenced
assemblies? I have my assemblies in different locations and I don't want
to
add them the GAC.

Any help is appreciated!

Thanks,

Mats-Lennart


Nov 17 '05 #6
I don't think I do understand the problem :o((

If you have a project that you want to compile, and that project needs to
reference an external library, you have to know where that assembly is in
order to compile your project (or even to use the intellisense of Visual
Studio).

When you build your project, by default the dependencies are also copied to
the output directory. When you are creating your installer for your assembly,
you should include the dependencies also ... you need to do this because you
are insisting on not using the GAC and therefore you need to package
everything you need in order to operate.
--
Of all words of tongue and pen, the saddest are: "It might have been"

Bill.Richards @ greyskin .co .uk
http://greyskin.co.uk
"Mats-Lennart Hansson" wrote:
I'm aware of reference paths. I can't use this though, since I during design
time don't know where the components will be located. The user can define
any location during installation so I can't set it when compiling.

Maybe I was a bit unclear, but I'm wondering how to set reference paths
programatically. Can this be done?

Thanks for your answer,

Mats-Lennart

"billr" <bi***@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
erm .... Yes. Did you know that the Visual Studio IDE is just a nice fancy
UI
tool, and the real work is done by the ILASM and other such modules?

So, with that said .... in the solution explorer, right click on your
PROJECT (not solution) and select the properties menu. In the
"MyApplication
Property Pages" dialog that is displayed, select common
Properties/References
Path ... enter your paths

--
Of all words of tongue and pen, the saddest are: "It might have been"

Bill.Richards @ greyskin .co .uk
http://greyskin.co.uk
"Mats-Lennart Hansson" wrote:
Hi,
Is there a way to define where the assembly should search for its
referenced
assemblies? I have my assemblies in different locations and I don't want
to
add them the GAC.

Any help is appreciated!

Thanks,

Mats-Lennart


Nov 17 '05 #7

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

Similar topics

2
by: Yang Liu | last post by:
Hi all, I have a .net windows application xx.exe, which reference a private assembly yy.dll, the property "local copy" of the yy.dll reference is automatically set to true, so the yy.dll will be...
12
by: Russell Stevens | last post by:
Should be trivial - I want to detect the program version so that I can take steps to update things to the current version. Pretty simple - just use Application.ProductVersion So I install the...
8
by: Umut Tezduyar | last post by:
I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly. My question is, if i create a custom web...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
2
by: Luis Arvayo | last post by:
I am compiling and executing c# code at runtime and I need to define in CompilerParameters.ReferencedAssemblies one of my own assemblies together with the standard System.dll u others. Example:...
5
by: RickN | last post by:
I want to creat a new application domain called 'mydomain' and then load an assembly named 'myassembly.dll' into the domain. The assembly is in the folder "C:\Mydata\assembly", which is not the...
3
by: Kopiad | last post by:
I have two assemblys A and B in folder 1. Assembly A references assembly B. In another folder 2, I have a program C that do a Assmebly.LoadFile(<absolute path to assembly A) and creates an...
2
by: peter.drienovsky | last post by:
Hello, let me describe my problem: ENVIRONMENT: ..Net 2.0, MSVS 2005, c#, WinXP SYMPTOMS: If assembly 'AgentDesktop' IS NOT in the (loading) application folder,
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
1
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...
0
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...
0
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...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.