Reputation: 1659
I'm trying to use Property Injection with Prism Unity however in VS 2019 the [Dependency] attribute is giving an error that it is not recognised.
I've included Prism.Unity and Prism.Ioc namespaces but still no joy. Can anyone say what I'm missing
Thanks
Upvotes: 1
Views: 647
Reputation: 10883
You need the Unity
namespace (see DependencyAttribute.cs):
using Unity;
(and, of course, a reference to the Unity.Abstractions
package)
Upvotes: 1