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)"
|
||||
NoStandardLib="$(NoCompilerStandardLib)"
|
||||
NoWin32Manifest="$(NoWin32Manifest)"
|
||||
NullableContextOptions="$(NullableContextOptions)"
|
||||
Nullable="$(Nullable)"
|
||||
Optimize="$(Optimize)"
|
||||
Deterministic="$(Deterministic)"
|
||||
PublicSign="$(PublicSign)"
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ Copyright (c) .NET Foundation. All rights reserved.
|
|||
NoLogo="$(NoLogo)"
|
||||
NoStandardLib="$(NoCompilerStandardLib)"
|
||||
NoWin32Manifest="$(NoWin32Manifest)"
|
||||
NullableContextOptions="$(NullableContextOptions)"
|
||||
Nullable="$(Nullable)"
|
||||
Optimize="$(Optimize)"
|
||||
Deterministic="$(Deterministic)"
|
||||
PublicSign="$(PublicSign)"
|
||||
|
|
|
|||
|
|
@ -629,7 +629,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
|||
{
|
||||
var result = await DotnetMSBuild(
|
||||
"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");
|
||||
|
||||
Assert.BuildPassed(result, allowWarnings: true);
|
||||
|
|
@ -644,7 +644,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
|||
{
|
||||
var result = await DotnetMSBuild(
|
||||
"Build",
|
||||
"/p:LangVersion=8.0 /p:NullableContextOptions=enable",
|
||||
"/p:LangVersion=8.0 /p:Nullable=enable",
|
||||
suppressBuildServer: true);
|
||||
var indexFilePath = Path.Combine(RazorIntermediateOutputPath, "Views", "Home", "Index.cshtml.g.cs");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue