0
我们希望在解决方案中的两个UWP项目之间共享可视资产。视觉资产位于同一解决方案中的UWP类库中。在其他UWP项目中引用图像时无法定位
我们可以通过引用它们在Package.appxmanifest
部署项目时可视资源都包含在同一个项目这样
Assets\SplashScreen1240x600.png
但如果我们尝试引用视觉资产类库这样
OtherProect.Assets\SplashScreen1240x600.png
我们得到这个错误
the splash screen image [SplashScreen1240x600.png] cannot be located
。
我们如何引用类库中的可视资源?