Skip to content

Commit ba81066

Browse files
Merge branch 'master' into merge/release/3.1-to-master
2 parents 8b80d0b + 4ec68df commit ba81066

File tree

10 files changed

+17
-15
lines changed

10 files changed

+17
-15
lines changed

src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Sdk.Razor.CurrentVersion.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Copyright (c) .NET Foundation. All rights reserved.
3030
<!-- Paths to tools, tasks, and extensions are calculated relative to the RazorSdkDirectoryRoot. This can be modified to test a local build. -->
3131
<RazorSdkDirectoryRoot Condition="'$(RazorSdkDirectoryRoot)'==''">$(MSBuildThisFileDirectory)..\..\</RazorSdkDirectoryRoot>
3232
<RazorSdkBuildTasksDirectoryRoot Condition="'$(RazorSdkBuildTasksDirectoryRoot)'==''">$(RazorSdkDirectoryRoot)tasks\</RazorSdkBuildTasksDirectoryRoot>
33-
<_RazorSdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">$(DefaultNetCoreTargetFramework)</_RazorSdkTasksTFM>
33+
<_RazorSdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">netcoreapp5.0</_RazorSdkTasksTFM>
3434
<_RazorSdkTasksTFM Condition=" '$(_RazorSdkTasksTFM)' == ''">net46</_RazorSdkTasksTFM>
3535
<RazorSdkBuildTasksAssembly>$(RazorSdkBuildTasksDirectoryRoot)$(_RazorSdkTasksTFM)\Microsoft.NET.Sdk.Razor.Tasks.dll</RazorSdkBuildTasksAssembly>
3636
</PropertyGroup>

src/Razor/Microsoft.NET.Sdk.Razor/test/BuildVariables.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
66
internal static partial class BuildVariables
77
{
88
private static string _msBuildPath = string.Empty;
9-
private static string _microsoftNETCoreApp31PackageVersion = string.Empty;
9+
private static string _MicrosoftNETCoreApp50PackageVersion = string.Empty;
1010
private static string _microsoftNetCompilersToolsetPackageVersion = string.Empty;
1111

1212
static partial void InitializeVariables();
@@ -20,12 +20,12 @@ public static string MSBuildPath
2020
}
2121
}
2222

23-
public static string MicrosoftNETCoreApp31PackageVersion
23+
public static string MicrosoftNETCoreApp50PackageVersion
2424
{
2525
get
2626
{
2727
InitializeVariables();
28-
return _microsoftNETCoreApp31PackageVersion;
28+
return _MicrosoftNETCoreApp50PackageVersion;
2929
}
3030
}
3131

src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/ApplicationPartDiscoveryIntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public async Task BuildIncrementalism_CausingRecompilation_WhenApplicationPartAt
123123
Assert.AssemblyHasAttribute(result, Path.Combine(OutputPath, "AppWithP2PReference.dll"), "Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute");
124124
}
125125

126-
[Fact]
126+
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/13303")]
127127
[InitializeTestProject("SimpleMvcFSharp", language: "F#", additionalProjects: "ClassLibrary")]
128128
public async Task Build_ProjectWithDependencyThatReferencesMvc_AddsAttributeToNonCSharpProjects()
129129
{

src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/BuildIntegrationTest.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public async Task Build_GeneratesHostingAttributes_WhenGenerateRazorHostingAssem
472472
Assert.FileDoesNotContain(result, razorAssemblyInfo, "Microsoft.AspNetCore.Razor.Hosting.RazorConfigurationNameAttribute");
473473
}
474474

475-
[Fact]
475+
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/13303")]
476476
[InitializeTestProject("SimpleMvcFSharp", language: "F#")]
477477
public async Task Build_SimpleMvcFSharp_NoopsWithoutFailing()
478478
{
@@ -645,7 +645,9 @@ public async Task Build_ImplicitCSharp8_NullableEnforcement_WarningsDuringBuild_
645645
{
646646
var result = await DotnetMSBuild(
647647
"Build",
648-
"/p:Nullable=enable",
648+
// Remove /p:LangVersion=Default once we've picked up a compiler that supports .NET 5.0.
649+
// Tracked by https://github.com/aspnet/AspNetCore/issues/13304
650+
"/p:Nullable=enable /p:LangVersion=Default",
649651
suppressBuildServer: true);
650652
var indexFilePath = Path.Combine(RazorIntermediateOutputPath, "Views", "Home", "Index.cshtml.g.cs");
651653

src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/InitializeTestProjectAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public override void Before(MethodInfo methodUnderTest)
3838

3939
MSBuildIntegrationTestBase.Project = ProjectDirectory.Create(_originalProjectName, _testProjectName, _baseDirectory, _additionalProjects, _language);
4040
#if NETCOREAPP
41-
MSBuildIntegrationTestBase.TargetFramework = "netcoreapp3.1";
41+
MSBuildIntegrationTestBase.TargetFramework = "netcoreapp5.0";
4242
#else
4343
#error Target frameworks need to be updated
4444
#endif

src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/MSBuildIntegrationTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ internal Task<MSBuildResult> DotnetMSBuild(
9393
// Let the test app know it is running as part of a test.
9494
"/p:RunningAsTest=true",
9595

96-
$"/p:MicrosoftNETCoreApp31PackageVersion={BuildVariables.MicrosoftNETCoreApp31PackageVersion}",
96+
$"/p:MicrosoftNETCoreApp50PackageVersion={BuildVariables.MicrosoftNETCoreApp50PackageVersion}",
9797
$"/p:MicrosoftNetCompilersToolsetPackageVersion={BuildVariables.MicrosoftNetCompilersToolsetPackageVersion}",
9898

9999
// Additional restore sources for projects that require built packages

src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PackIntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
1111
{
1212
public class PackIntegrationTest : MSBuildIntegrationTestBase, IClassFixture<BuildServerTestFixture>
1313
{
14-
private static readonly string TFM = "netcoreapp3.1";
14+
private static readonly string TFM = "netcoreapp5.0";
1515

1616
public PackIntegrationTest(BuildServerTestFixture buildServer)
1717
: base(buildServer)

src/Razor/Microsoft.NET.Sdk.Razor/test/IntegrationTests/PublishIntegrationTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public async Task Publish_WithP2P_AndRazorCompileOnPublish_CopiesRazorAssembly()
329329
Assert.FileCountEquals(result, 0, Path.Combine(PublishOutputPath, "Views"), "*.cshtml");
330330
}
331331

332-
[Fact]
332+
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/13303")]
333333
[InitializeTestProject("SimpleMvcFSharp", language: "F#")]
334334
public async Task Publish_SimpleMvcFSharp_NoopsWithoutFailing()
335335
{
@@ -434,7 +434,7 @@ public async Task Publish_WithNoBuild_FailsWithoutBuild()
434434
var result = await DotnetMSBuild("Publish", "/p:NoBuild=true");
435435

436436
Assert.BuildFailed(result);
437-
Assert.BuildError(result, "MSB3030"); // Could not copy the file "obj/Debug/netcoreapp3.1/SimpleMvc.dll because it couldn't be found.
437+
Assert.BuildError(result, "MSB3030"); // Could not copy the file "obj/Debug/netcoreapp5.0/SimpleMvc.dll because it couldn't be found.
438438

439439
Assert.FileDoesNotExist(result, PublishOutputPath, "SimpleMvc.dll");
440440
Assert.FileDoesNotExist(result, PublishOutputPath, "SimpleMvc.Views.dll");

src/Razor/Microsoft.NET.Sdk.Razor/test/Microsoft.NET.Sdk.Razor.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
This is also a partial workaround for https://github.com/Microsoft/msbuild/issues/2661 - this project
88
has netcoreapp dependencies that need to be built first.
99
-->
10-
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
10+
<TargetFramework>netcoreapp5.0</TargetFramework>
1111
<PreserveCompilationContext>true</PreserveCompilationContext>
1212
<DefineConstants Condition="'$(PreserveWorkingDirectory)'=='true'">$(DefineConstants);PRESERVE_WORKING_DIRECTORY</DefineConstants>
1313
<!-- Copy references locally so that we can use them in the test. -->
@@ -96,7 +96,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
9696
static partial void InitializeVariables()
9797
{
9898
_msBuildPath = @"$(_DesktopMSBuildPath)";
99-
_microsoftNETCoreApp31PackageVersion = "$(MicrosoftNETCoreApp31PackageVersion)";
99+
_MicrosoftNETCoreApp50PackageVersion = "$(MicrosoftNETCoreApp50PackageVersion)";
100100
_microsoftNetCompilersToolsetPackageVersion = "$(MicrosoftNetCompilersToolsetPackageVersion)";
101101
}
102102
}

src/Razor/test/testassets/Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="RazorTest.Introspection.targets" />
33

44
<PropertyGroup>
5-
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)' ">$(MicrosoftNETCoreApp31PackageVersion)</RuntimeFrameworkVersion>
5+
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)' ">$(MicrosoftNETCoreApp50PackageVersion)</RuntimeFrameworkVersion>
66
<!-- aspnet/BuildTools#662 Don't police what version of NetCoreApp we use -->
77
<NETCoreAppMaximumVersion>99.9</NETCoreAppMaximumVersion>
88
</PropertyGroup>

0 commit comments

Comments
 (0)