在 Universal 应用程序中使用 Unity 时收到很多关于资源的警告

When using Unity in Universal app got lots of Warning about Resources

我正在编写一个 windows 通用应用程序,当我通过 NuGet 将 Unity 添加到我的项目并构建它时,出现了许多关于 Unity 资源的警告。

喜欢那些:

No default or neutral resource given for 'Microsoft.Practices.Unity.Properties.Resources/SettingPropertyOperation'. The application may throw an exception for certain user configurations when retrieving the resources. HJ C:\Projects\TTT\HJ\HJ\MakePRI
No default or neutral resource given for 'Microsoft.Practices.Unity.Properties.Resources/MustHaveOpenGenericType'. The application may throw an exception for certain user configurations when retrieving the resources. HJ C:\Projects\TTT\HJ\HJ\MakePRI
...

在我的项目中有50多个这样的警告,我应该忽略它们吗? 请帮助我,谢谢。

如果您希望这些警告消失,您只需将缺少的资源添加到警告提到的文件中。查看here, somewhat similar. I think you can ignore them if you want, it is just saying it might be a problem or that it cannot guarantee that a particular resource candidate can be returned for that resource identifier at run time. Check here了解更多信息。