473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1833
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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,...

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.