tech74
tech74

Reputation: 1659

Using [Dependency] attribute with Prism Unity in WPF application

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

Answers (1)

Haukinger
Haukinger

Reputation: 10883

You need the Unity namespace (see DependencyAttribute.cs):

using Unity;

(and, of course, a reference to the Unity.Abstractions package)

Upvotes: 1

Related Questions