Export (0) Print
Expand All

Appendix A - Unity and Windows Store apps

When you create applications for Windows 8, those applications are known as Windows Store apps. You can develop Windows Store apps using C#, Visual Basic, JavaScript, and C++.

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

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.


Show:
© 2014 Microsoft