React to Roslyn rename of `NullableContextOptions` to `Nullable`.
- Verified the fix with VS16.2-preview2 + latest CLI with modified `Nullable` entry on disk
- Updated tests.
- Note: This change will not pass the build until we have a new CLI that has an updated Roslyn that understands `Nullable`.
aspnet/AspNetCoredotnet/aspnetcore-tooling#10218
\n\nCommit migrated from fee9c35bee
This commit is contained in:
parent
fde8f98d7e
commit
b724885f38
|
|
@ -153,7 +153,7 @@ Copyright (c) .NET Foundation. All rights reserved.
|
||||||
NoLogo="$(NoLogo)"
|
NoLogo="$(NoLogo)"
|
||||||
NoStandardLib="$(NoCompilerStandardLib)"
|
NoStandardLib="$(NoCompilerStandardLib)"
|
||||||
NoWin32Manifest="$(NoWin32Manifest)"
|
NoWin32Manifest="$(NoWin32Manifest)"
|
||||||
NullableContextOptions="$(NullableContextOptions)"
|
Nullable="$(Nullable)"
|
||||||
Optimize="$(Optimize)"
|
Optimize="$(Optimize)"
|
||||||
Deterministic="$(Deterministic)"
|
Deterministic="$(Deterministic)"
|
||||||
PublicSign="$(PublicSign)"
|
PublicSign="$(PublicSign)"
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@ Copyright (c) .NET Foundation. All rights reserved.
|
||||||
NoLogo="$(NoLogo)"
|
NoLogo="$(NoLogo)"
|
||||||
NoStandardLib="$(NoCompilerStandardLib)"
|
NoStandardLib="$(NoCompilerStandardLib)"
|
||||||
NoWin32Manifest="$(NoWin32Manifest)"
|
NoWin32Manifest="$(NoWin32Manifest)"
|
||||||
NullableContextOptions="$(NullableContextOptions)"
|
Nullable="$(Nullable)"
|
||||||
Optimize="$(Optimize)"
|
Optimize="$(Optimize)"
|
||||||
Deterministic="$(Deterministic)"
|
Deterministic="$(Deterministic)"
|
||||||
PublicSign="$(PublicSign)"
|
PublicSign="$(PublicSign)"
|
||||||
|
|
|
||||||
|
|
@ -629,7 +629,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
{
|
{
|
||||||
var result = await DotnetMSBuild(
|
var result = await DotnetMSBuild(
|
||||||
"Build",
|
"Build",
|
||||||
"/p:LangVersion=8.0 /p:NullableContextOptions=enable");
|
"/p:LangVersion=8.0 /p:Nullable=enable");
|
||||||
var indexFilePath = Path.Combine(RazorIntermediateOutputPath, "Views", "Home", "Index.cshtml.g.cs");
|
var indexFilePath = Path.Combine(RazorIntermediateOutputPath, "Views", "Home", "Index.cshtml.g.cs");
|
||||||
|
|
||||||
Assert.BuildPassed(result, allowWarnings: true);
|
Assert.BuildPassed(result, allowWarnings: true);
|
||||||
|
|
@ -644,7 +644,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
{
|
{
|
||||||
var result = await DotnetMSBuild(
|
var result = await DotnetMSBuild(
|
||||||
"Build",
|
"Build",
|
||||||
"/p:LangVersion=8.0 /p:NullableContextOptions=enable",
|
"/p:LangVersion=8.0 /p:Nullable=enable",
|
||||||
suppressBuildServer: true);
|
suppressBuildServer: true);
|
||||||
var indexFilePath = Path.Combine(RazorIntermediateOutputPath, "Views", "Home", "Index.cshtml.g.cs");
|
var indexFilePath = Path.Combine(RazorIntermediateOutputPath, "Views", "Home", "Index.cshtml.g.cs");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue