Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Friends,



When i build the application then reference dll files copy into application directory
but i don't want to dll file in application directory,
i want to change dll file location to any folder (like C:\windows)

Can anybody tell me,


Thanks in Advance.
Posted
Comments
Sergey Alexandrovich Kryukov 7-Aug-11 0:55am    
Bad idea. This is not nice to OS, an abuse. And why? if you want to hard-code directory, the user may not have it and likely not have an access.
--SA

1 solution

Visual Basic:
With a project selected in Solution Explorer, on the Project menu, click Properties.
If you are using Visual Basic, click the Compile tab. If you are using C#, click the Build tab.
In the Build output path (Visual Basic) or Output path (C#) box, type any valid file or Universal Naming Convention (UNC) path, or click the ellipsis button and browse to a directory.

C#:
On the Project menu, click Properties.
Click the Build tab.
Click the Browse button next to the Output path box and select a new build output directory.

If you wish to retain files at both places, then write a batch file (cmd or vbs or PowerShell) to copy the files from the application directory to a location of your choice and then execute the batch file in the Post Build event.
 
Share this answer
 
v2
Comments
amit_myana 5-Aug-11 8:39am    
Thanks for reply

but i want to do - only *.dll files move to specified path..
[no name] 5-Aug-11 15:16pm    
Then write a batch file to copy only the dll files and execute it in the Post Build event.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900