29 references to CompatibilityVersion
Microsoft.AspNetCore.Mvc.Core (25)
CompatibilityVersion.cs (5)
49
[Obsolete("This " + nameof(
CompatibilityVersion
) + " value is obsolete.")]
60
[Obsolete("This " + nameof(
CompatibilityVersion
) + " value is obsolete.")]
76
[Obsolete("This " + nameof(
CompatibilityVersion
) + " value is obsolete.")]
83
[Obsolete("This " + nameof(
CompatibilityVersion
) + " value is obsolete.")]
90
[Obsolete("This " + nameof(
CompatibilityVersion
) + " value is obsolete.")]
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (3)
138
/// Sets the <see cref="
CompatibilityVersion
"/> for ASP.NET Core MVC for the application.
141
/// <param name="version">The <see cref="
CompatibilityVersion
"/> value to configure.</param>
146
public static IMvcBuilder SetCompatibilityVersion(this IMvcBuilder builder,
CompatibilityVersion
version)
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (3)
216
/// Sets the <see cref="
CompatibilityVersion
"/> for ASP.NET Core MVC for the application.
219
/// <param name="version">The <see cref="
CompatibilityVersion
"/> value to configure.</param>
224
public static IMvcCoreBuilder SetCompatibilityVersion(this IMvcCoreBuilder builder,
CompatibilityVersion
version)
Infrastructure\CompatibilitySwitch.cs (1)
49
/// Infrastructure supporting the implementation of <see cref="
CompatibilityVersion
"/>. This is an
Infrastructure\ConfigureCompatibilityOptions.cs (4)
11
/// <see cref="
CompatibilityVersion
"/>. This is framework infrastructure and should not be used
40
/// <see cref="
CompatibilityVersion
"/>.
45
/// Gets the <see cref="
CompatibilityVersion
"/> configured for the application.
47
protected
CompatibilityVersion
Version { get; }
Infrastructure\ICompatibilitySwitch.cs (1)
32
/// to apply a compatibility value based on <see cref="
CompatibilityVersion
"/>.
Infrastructure\MvcCompatibilityOptions.cs (8)
11
/// An options type for configuring the application <see cref="Mvc.
CompatibilityVersion
"/>.
14
/// The primary way to configure the application's <see cref="Mvc.
CompatibilityVersion
"/> is by
15
/// calling <see cref="MvcCoreMvcBuilderExtensions.SetCompatibilityVersion(IMvcBuilder,
CompatibilityVersion
)"/>
16
/// or <see cref="MvcCoreMvcCoreBuilderExtensions.SetCompatibilityVersion(IMvcCoreBuilder,
CompatibilityVersion
)"/>.
24
/// Gets or sets the application's configured <see cref="Mvc.
CompatibilityVersion
"/>.
26
/// <value>the default value is <see cref="
CompatibilityVersion
.Version_3_0"/>.</value>
27
public
CompatibilityVersion
CompatibilityVersion { get; set; } =
CompatibilityVersion
.Version_3_0;
Microsoft.AspNetCore.Mvc.Core.Test (4)
Infrastructure\ConfigureCompatibilityOptionsTest.cs (4)
19
var configure = Create(
CompatibilityVersion
.Version_3_0, new Dictionary<string, object>());
35
CompatibilityVersion
.Version_3_0,
58
CompatibilityVersion
.Version_3_0,
74
CompatibilityVersion
version,