Visual Studio issue when deploying all .NET Compact Framework application files

My application consists of an executable project and a dll library. A link to the library project has been added in my executable project.

The library project contains some β€œcontent” files, such as .ini.bmp. The problem is that these files are not copied to the device when deploying an executable project. Only the dll file is copied. Curiously, all files are copied to the \ ExecutableProject \ bin \ Debug directory on the desktop computer.

To get around this, I set the deployment path of the DLL project in the same way as the executable project, and I deploy both of them, but this solution seems not very pleasant.

I am using VS2008 and my device works in Windows CE.

+4
source share
1 answer

There are a few things to check.

  • Double-check that Build Action is set to Content
  • Make sure the Copy to Output folder is set to Always Copy or Copy If New
  • Make sure the deployment folder for the library project is what you expect (Properties-> Devices-> Output File Folder)
  • Make sure the library project is installed on the same target device as the executable
  • Make sure the library project is set up for deployment for your configuration (Build-> Configuration Manager).
  • Remember that if the content files are located in a subfolder in the project, they are in a subfolder on the device.
+4
source

Source: https://habr.com/ru/post/1316422/


All Articles