cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
robin_brown
Level 2

Content Files Not Copying To Root Directory

Hi,

I have a couple of .dlls my application is using they are in a separate folder called lib. I have added them as a content files.

When I build the solution they don't get put in the same directory as the application .exe but in the folder called lib. Thus the application can't then reference these .dlls.

How can these files be moved to the directory where the .exe file resides, I tried adding them in as a file but I have issues with relative paths then when I build it on my build machine.

Any help would be great.

Thanks
0 Kudos
(1) Reply
chiranjeevi
Level 7 Flexeran
Level 7 Flexeran

Hello,

Try this:

>Expand your install project in the Solution Explorer so you see the 1,2,3,4,5,6 sections
>Expand '2' and double click on 'Files' You will see a four panel page: with 'Source computer's files' and 'Destination computer's files'
>delete your hard coded paths and files from the 'Destination computer's files'
>Click in the top left panel, on the project that has your files as 'Content Files'
>the top right panel will show 'Content Files from MyProject'
click and drag this to the bottom right panel (the 'Destination computer's files')
>Go back into your project and make sure all your files you want copied have properties: Build Action=Content and Copy
to output directory=Copy Always

Hope this helps.

Thanks,
Chiranjeevi
0 Kudos