Closed dgandini closed 7 years ago
The issues you are mentioned related to tool chain you are using and not the framework. The syntax is compiled just fine for NET 4.0, 4.5, and etc. using more modern compilers.
It does not make any sense to regres library for the tool (Visual Studio 2013) that even Microsoft no longer supports.
It does not make any sense to regres library for the tool (Visual Studio 2013) that even Microsoft no longer supports.
I agree with you. My intention is just help others who may have the same problem.
The nameof statement and the delegate syntax are incompatible with .Net Framework 4.5.1
Issue 1 - The nameof statement (UnityMvcActivator.cs)
Issue 2 - The delegate that returns the configured container (UnityConfig.cs)
public static IUnityContainer Container => container.Value;
Workarounds UnityMvcActivator.cs
UnityConfig.cs
public static IUnityContainer Container { get { return container.Value; } }