473,770 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to include old fashioned DLL in a C# project/solution?

Hello,

In my C# solution the MathsUtility Project uses a few fortran DLLs.
What is the correct way to specify the dependancy of these DLLs?

Initially I just stuck the DLLs in a directory on the System Path,
this is a disaster as far as running different versions of the
Solution (sometimes a bug gets reported and I might want to run an old
version along side a new version, the DLLs may be different).

My next plan was to add the DLLs to the project's file list, so they
appear along side the ".cs" files, and set the "Copy To Output
Directory" property to "Copy if newer". This seems to work OK in
Visual Studio, the DLLS get copied to all the 'bin' directories of all
the projects that depend on MathUtility. But when I build it from the
command line, as would be done with Cruise Control, it just goes crazy
copying the DLLs again and again for ages.

Anyone have any ideas?

Thanks,

bob

May 18 '07 #1
1 1913
Focus on Cruise Control to get rid of the circular dependency. I do not know
how to do this, but I know we did it on one project. Until you conquer the
fighting, you are going to continue to have issues.

A longer term option is to run DSM on the project and reorg using the
information found. You want to try to stack the projects so the dependencies
only go in one direction.Once that is done, you get rid of the constant
swapping of libs.

Another possible solution is to move into a more SOA architecture, but I
would not just jump into this, using assembly boundaries as service
boundaries, as you will end up with a mess. I do not suggest this as a short
term, immediate type of solution.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

*************** *************** *************** ***
Think outside the box!
*************** *************** *************** ***
<bo**********@h otmail.comwrote in message
news:11******** **************@ n59g2000hsh.goo glegroups.com.. .
Hello,

In my C# solution the MathsUtility Project uses a few fortran DLLs.
What is the correct way to specify the dependancy of these DLLs?

Initially I just stuck the DLLs in a directory on the System Path,
this is a disaster as far as running different versions of the
Solution (sometimes a bug gets reported and I might want to run an old
version along side a new version, the DLLs may be different).

My next plan was to add the DLLs to the project's file list, so they
appear along side the ".cs" files, and set the "Copy To Output
Directory" property to "Copy if newer". This seems to work OK in
Visual Studio, the DLLS get copied to all the 'bin' directories of all
the projects that depend on MathUtility. But when I build it from the
command line, as would be done with Cruise Control, it just goes crazy
copying the DLLs again and again for ages.

Anyone have any ideas?

Thanks,

bob

May 18 '07 #2

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

Similar topics

2
15155
by: Jon Maz | last post by:
Hi, Got a simple one. In the VS.NET Solution Explorer you can right-click on the "bin" folder and there is an option to "Include in Project". Selecting this option changes the icon next to the dll's (and pdb's) in the bin. * What exactly does this do? * When and why would you want to do this? Thanks,
2
1928
by: Scott Kaszyk | last post by:
I have created a setup project and was able to include the exe as well as the source code in the install. However, I have been unable to include the setup project source. Therefore, when I access the solution after the install, I get an error message stating the setup project is missing. In the 'Add Project Output Group' dialogue, all my projects are listed EXCEPT the setup project. Any ideas? Scott
2
6203
by: Martín Marconcini | last post by:
Hello there, I'm writting (or trying to) a Console Application in C#. I has to be console. I remember back in the old days of Cobol (Unisys), Clipper and even Basic, I used to use a program (its name i cannot recall now...) where I designed the "screen" using this "program" and then saved it into an ASCII file. (thus, using 'extended' ASCII's like Lines, Corners, etc. and making screens look nicer and more professional). Then reading a...
1
1016
by: Sean Jorden | last post by:
I am trying to include a custom IDL available to the project. In VC6 I would simply import "custom.idl" at the top of my .idl file. Now, it seems this file is automatically generated - I cannot see where I am supposed to insert this statement. Sean
2
3015
by: Susan Baker | last post by:
Hi, I am (trying) to compile some code I downloaded from the internet. The sources contain references to header files - using the form : #include <pathname/file> If I change the form to this: #include "pathname/file"
4
1819
by: Mark | last post by:
I am setting up an asp.net site using the Ektron CMS. Every page in the site uses the same basic template, with the look of the page changing via CSS and an id on the body. The id is shared by all pages in a subsection, e.g. everything in /about/ needs to have <body id="about">. In the past what I've done is set a global variable in index.asp, then include the template to render the page: <% pageid = "about"
11
26640
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package and PEAR is in c:\wamp\php\pear I modified php.ini in the c:\wamp\php directory to reflect the actual path, but even stopping and restarting my server shows the c: \php5\pear path. I can't change it no matter what I do I also tried the...
1
1916
by: Ronald S. Cook | last post by:
If I choose not to include a dependent project in my solution, but rather just reference the .dll in that project's bin\debug folder, are there any negative repercussions? Or, is it more normal/better to just go ahead and include that project in the solution? I'm thinking I would prefer the prior because we have alot of projects and most main projects reference several other projects and that would be alot of projects within a...
5
1454
by: Christian | last post by:
Hi, i include an Access Db in the solution of my project; now how can i connect to DB?
0
9454
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
10260
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10102
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9910
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
8933
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...
0
6712
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
5354
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
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.