Taj
Taj

Reputation: 1728

Placing dlls in bin directory after successfull build

I was working on a project , I needed to add a folder inside my application which consists some usefull dlls

enter image description here

under properties of my dll , I have changed the Copy to output directory field to copy always

On successfull build of my project I am getting the bin folder as :

enter image description here

After building the project I found out that my dll is placed inside DLL folder but I do not want such folder , I want it to be inside the bin folder only , how can I achieve that.

Upvotes: 1

Views: 1659

Answers (2)

Mesh
Mesh

Reputation: 6472

IF the project has a reference to the DLL already VS will copy the dll to the bin folder.

Upvotes: 0

Andrew
Andrew

Reputation: 218

simply delete the dll folder in both vs and the windows folder, then add them as references for your project and set there properties to copy always

you still may copy them manually the first time to make sure everything is going just fine

Upvotes: 3

Related Questions