سؤال

I'm trying to include data files, or images in a C# appx package. I've tried adding the files to the csproj, and enabled "Copy to Output Directory", but they don't wind up in the AppXLayouts dir.

I haven't found any hints on dev.windows.com.

هل كانت مفيدة؟

المحلول

In Visual Studio:

  1. go to the Solution Explorer
  2. find the images item
  3. right click
  4. select add
  5. pick your pictures

This should cause them to be packaged.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top