The site of origin is the location (i.e. the physical folder) of the application executable assembly (i.e. the .exe that the user runs). The URI is thus relative to that folder.
Example: You have
- C:ProgramsMyAppMyApp.exe
- C:ProgramsMyAppMyIcon.bmp
- C:ProgramsMyAppIconsMyOtherIcon.bmp
The pack URIs are pack://siteoforigin:,,,/MyIcon.bmp
and pack://siteoforigin:,,,/Icons/MyOtherIcon.bmp
when running the MyApp.exe. That means you have to copy those files to those places.
In contrast, the application pack URI refers to resources embedded in your assembly (by using Build Action "Resource").
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…