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

Home Posts Topics Members FAQ

How to automate DLL deployment for P/Invoke?

I have a Visual Studio solution that includes two projects:

1) an unmanaged C++ project that produces a Win32 DLL
2) a C# web service

I want to have the build process for the web service copy the Win32 DLL to
the web service's /bin directory so that some P/Invoke calls will work.
Unfortunately, there are no pre- and post-build steps available in web
service projects.

Any suggestions?
Nov 18 '05 #1
2 1325
You could set the unmanaged project's output folder equals to the web
service's Bin folder ... and you must build the solution (not only the web
service project)

HtH

Andrea

"Hugh Williams" <fs******@hotmail.com> wrote in message
news:e4**************@TK2MSFTNGP09.phx.gbl...
I have a Visual Studio solution that includes two projects:

1) an unmanaged C++ project that produces a Win32 DLL
2) a C# web service

I want to have the build process for the web service copy the Win32 DLL to
the web service's /bin directory so that some P/Invoke calls will work.
Unfortunately, there are no pre- and post-build steps available in web
service projects.

Any suggestions?

Nov 18 '05 #2
Thanks Andrea,

I simplified things a bit for the purposes of the post - I'll elaborate a
bit:

The DLL is consumed by multiple web services, so resetting the DLL project's
output directory is only a half-way solution.

I suppose I could hack it by making a post-build step that copies the output
to all the different web services, but ... yuck.

Thanks again for the thought.

HW

"Andrea D'Onofrio" <an******@microsoft.com> wrote in message
news:uF**************@TK2MSFTNGP11.phx.gbl...
You could set the unmanaged project's output folder equals to the web
service's Bin folder ... and you must build the solution (not only the web
service project)

HtH

Andrea

"Hugh Williams" <fs******@hotmail.com> wrote in message
news:e4**************@TK2MSFTNGP09.phx.gbl...
I have a Visual Studio solution that includes two projects:

1) an unmanaged C++ project that produces a Win32 DLL
2) a C# web service

I want to have the build process for the web service copy the Win32 DLL to
the web service's /bin directory so that some P/Invoke calls will work.
Unfortunately, there are no pre- and post-build steps available in web
service projects.

Any suggestions?


Nov 18 '05 #3

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

Similar topics

1
by: Niko | last post by:
Hello, I want to retrieve the details of an SSL certificate of HTTPS websites, using openSSL, running on Windows 2003. This works fine as follows: openssl s_client www.somewebsite.com:443 >...
2
by: interuser | last post by:
I want to automate deployment that I now do using the "copy project" button. Is there a script that does this or ideas how to make one? I do not want to make a deployment project or use xcopy ,...
2
by: Eduardo Crivelli via DotNetMonster.com | last post by:
Hi everybody, I'm new to this site and regarding the quality of the threads I'm confident that I will get some help here. Here is the case: We have a huge asp.net c# (101 bins and more than...
4
by: Joseph Geretz | last post by:
Do I need to deploy both my ASMX page plus the DLL onto the web site? If so, can you please explain what role both of these deployment units play? To me they would seem to be mirror images of each...
1
by: Solution Seeker | last post by:
Hi, I have a quick question on VB.net deployment on win 98 platform.It would be of great help if you could help. I am trying run a deployable exe built from VB.net 2003. The target machine...
1
by: Wade | last post by:
Hey all, I have a setup / deployment project that is used to create builds for my web project. I can very easily invoke this manually, in the IDE, to get the packaged MSI file. However, I...
2
by: olc | last post by:
We are planning to use an executable along with Bootstrapper to handle installation checks with ClickOnce. I dont see any option to specify the install condition for the application that is...
1
by: Ronald S. Cook | last post by:
We have a Win app that we publish via built-in ClickOnce. However, we have 10 different locations to which we deploy the app. Each time we have a new build to publish, we have to change the IP in...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
I use "Click Once" Deployment from VS2005. Works like a charm. I have to deploy a console app and an MS Access ADP. The console app invokes the ADP. I copy the ADP to the application files to be...
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,...
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...
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.