c# - How can I share XAML UserControls between VS projects? -


i have portable class library project targeting windows 8.1. project has normal c# files (template controls), , xaml page files (user controls).

when build project, following in bin/release folder.

  • user_controls
    • example.xbf
  • themes
    • generic.xbf
  • project.dll
  • project.pdb
  • project.pri
  • project.xr.xml

these files enough deploy , run test harness library in same solution. i'd know how package these files can use them in other projects/solutions.

i found how trial , error. package manager of choice vs projects seems nuget, package file structure follows.

  • project
    • user_controls
      • example.xbf
    • themes
      • generic.xbf
    • project.xr.xml
  • project.dll
  • project.pdb
  • project.pri

the above goes in lib folder. i'd happy here better (or less haphazard) way of doing this. @ least works!


Comments