Files in folder in Solution project

G

GW

Hi, I have my files in a DLL folder in my solution project.
The problem is when i deploy the project it creates
a DLL folder in the PPC2003 target app folder and
copies the dlls into that. I need the dlls copied into
my app folder not app\DLL\. Other than having all
the files laid out Flat in my solution project, is there
another ay round this problem
 
S

Steve B.

In the solution configurations manager, uncheck the deploy checkbox for the
libraries. The application will deploy all required dependencies in its own
folder.

HTH

Steve
 
S

Steve B.

In the solution explorer, right click on the solution and select
Configuration manager

HTH
Steve
 
G

GW

Steve, that didn't work even after unchecking the box they are still
built in their own folders in the release directory and then when i deplo
they deploy in their own folders
 
S

Steve B.

If the files has been previously deployed, VS won't delete it for you.

Clean the device, than try what I suggested. Be aware that the checkboxes I
mentionned are dependent on the configuration you choose (Debug, Release or
whatever you choose).

Also notice that the build process is required. Only the deploy is not
required. So uncheck only the deploy columns in the conf manager.

Steve
 
G

GW

I was deploying to emulator so that will be clean. I have build ticked.
The only way i have found to deploy all files to app folder on same
level is to have all files flat in solution explorer, any other ideas
welcome
 
S

Steve B.

I can't understant what is the problem.

Follow theses few steps :

1. Create a VS Solution
2. Add into this solution a library (class library for device) called MyLib
(for example)
3. Add also a new device application called MyApp
4. In MyApp, add a reference to the library
5. Code your lib and the app.

At his point, if you depploy the solution, two folder will be created under
program files : MyLib with MyLib.dll and MyApp with both MyApp.exe and
MyLib.dll (since it is referenced).

To avoid creating the folder of the lib, add these steps :
6. Right click on the solution and select Configuration Manager
7. Select "All" in the configuration dropdown
8. Uncheck "Deploy" for MyLib

At this point when you deploy the app, only the app folder is created and
both MyApp.exe and MyLib.dll are copied into this folder, which I suppose is
what you want to reach.

Notice that if your application requires libraries that are shipped into the
binary format (.dll), referencing the dll is enough to make the library
deploy into the app dir.

I hope it is clearer now

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top