Appendix A - Unity and Windows Store apps
|On this page:||Download:|
|The UnityServiceLocator Class | Unity Design-time Configuration | Unity Interception|
You can use Unity when you develop Windows Store apps using C# and Visual Basic. However, there are some limitations in the functionality of the version of Unity that targets the .NET for Windows Store apps version of the .NET Framework; this appendix describes those limitations.
The UnityServiceLocator Class
You cannot use the Microsoft.Practices.Unity.UnityServiceLocator class with the .NET for Windows Store apps version of the .NET Framework. This class depends on the Common Service Locator library, which is not available for Windows Store apps.
Unity Design-time Configuration
You cannot configure your Unity container using a configuration file such as app.config. Windows Store apps must configure Unity containers programmatically.
This is because the Unity.Configuration assembly is not compatible with Windows Store apps.
Unity Interception is not available to Windows Store apps.
This is because the Unity.Interception and Unity.Interception.Configuration assemblies are not compatible with Windows Store apps.