Visual Studio problem with deploying all files of

2019-06-28 08:17发布

My application consist of an executable project and a dll library. My executable project has added the reference to the library project.

The library project contains some "content" files like .ini .bmp. The problem is that these files are not copied to the device when I deploy the executable project. Only dll file is copied. The curious thing is that all files are copied to the \ExecutableProject\bin\Debug directory on the desktop machine.

To workaround this I've set the deployment path of dll project the same as executable project and I'm deploying them both, but this solution doesn't seem to be nice.

I'm using VS2008 and my device works on Windows CE.

1条回答
趁早两清
2楼-- · 2019-06-28 09:07

There are a few things to check.

  • Double check that the "Build Action" is set to "Content"
  • Make sure that the "Copy to Output folder" is set to "Copy Always" or "Copy If Newer"
  • Make sure that the deployment folder for the library project is what you expect (Properties->Devices->Output File Folder)
  • Make sure that the library project is set to the same target device as the executable
  • Make sure the library project is set to deploy for your configuration (Build->Configuration Manager)
  • Remember that if the content files are in a subfolder in the project, they will end up in a subfolder on the device
查看更多
登录 后发表回答