[master] Update dependencies from dotnet/arcade dotnet/runtime (dotnet/aspnetcore-tooling#1873)

* Update dependencies from https://github.com/dotnet/runtime build 20200507.11

- Microsoft.Extensions.Logging: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20257.11
- Microsoft.Extensions.Configuration.Json: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20257.11
- Microsoft.Extensions.DependencyModel: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20257.11
- Microsoft.NETCore.App.Runtime.win-x64: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20257.11
- Microsoft.NETCore.Platforms: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20257.11
- Microsoft.NETCore.App.Internal: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20257.11
- Microsoft.NETCore.App.Ref: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20257.11
- System.Diagnostics.DiagnosticSource: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20257.11
- System.Text.Encodings.Web: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20257.11
- System.Reflection.Metadata: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20257.11

* Update dependencies from https://github.com/dotnet/arcade build 20200506.5

- Microsoft.DotNet.Arcade.Sdk: 5.0.0-beta.20228.4 -> 5.0.0-beta.20256.5

* Update SDKs and TFMs

* Try fixing SDK target

* Try removing reference to xunit?

* Try again?

* Revert test tfm

* Remove more xunit references

* Update dependencies from https://github.com/dotnet/runtime build 20200508.3

- Microsoft.Extensions.Logging: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20258.3
- Microsoft.Extensions.Configuration.Json: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20258.3
- Microsoft.Extensions.DependencyModel: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20258.3
- Microsoft.NETCore.App.Runtime.win-x64: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20258.3
- Microsoft.NETCore.Platforms: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20258.3
- Microsoft.NETCore.App.Internal: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20258.3
- Microsoft.NETCore.App.Ref: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20258.3
- System.Diagnostics.DiagnosticSource: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20258.3
- System.Text.Encodings.Web: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20258.3
- System.Reflection.Metadata: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20258.3

* Use `dotnet msbuild` in CI builds

* Update dependencies from https://github.com/dotnet/runtime build 20200509.5

- Microsoft.Extensions.Logging: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20259.5
- Microsoft.Extensions.Configuration.Json: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20259.5
- Microsoft.Extensions.DependencyModel: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20259.5
- Microsoft.NETCore.App.Runtime.win-x64: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20259.5
- Microsoft.NETCore.Platforms: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20259.5
- Microsoft.NETCore.App.Internal: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20259.5
- Microsoft.NETCore.App.Ref: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20259.5
- System.Diagnostics.DiagnosticSource: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20259.5
- System.Text.Encodings.Web: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20259.5
- System.Reflection.Metadata: 5.0.0-preview.5.20253.7 -> 5.0.0-preview.5.20259.5

* Try undoing `$(EnableFrameworkPathOverride) workaround

* Fix windows builds

* Fix NET.sdk.Razor.Test

* Try fix codecheck

* Skip tests failing with CS1701

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: John Luo <johluo@microsoft.com>
Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>\n\nCommit migrated from a60b721dbb
This commit is contained in:
dotnet-maestro[bot] 2020-05-11 02:32:33 +00:00 committed by GitHub
parent b0d819f1e8
commit f701a188c2
10 changed files with 20 additions and 21 deletions

View File

@ -181,7 +181,7 @@ public class MyModel
AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument());
} }
[Fact] [Fact(Skip = "Reenable after CS1701 errors are resolved")]
public void Sections_Runtime() public void Sections_Runtime()
{ {
// Arrange // Arrange
@ -315,7 +315,7 @@ public class MyService<TModel>
AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument());
} }
[Fact] [Fact(Skip = "Reenable after CS1701 errors are resolved")]
public void ModelExpressionTagHelper_Runtime() public void ModelExpressionTagHelper_Runtime()
{ {
// Arrange // Arrange
@ -338,7 +338,7 @@ public class InputTestTagHelper : {typeof(TagHelper).FullName}
AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument());
} }
[Fact] [Fact(Skip = "Reenable after CS1701 errors are resolved")]
public void RazorPages_Runtime() public void RazorPages_Runtime()
{ {
// Arrange // Arrange
@ -373,7 +373,7 @@ public class DivTagHelper : {typeof(TagHelper).FullName}
AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument());
} }
[Fact] [Fact(Skip = "Reenable after CS1701 errors are resolved")]
public void RazorPagesWithoutModel_Runtime() public void RazorPagesWithoutModel_Runtime()
{ {
// Arrange // Arrange
@ -422,7 +422,7 @@ public class DivTagHelper : {typeof(TagHelper).FullName}
AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument());
} }
[Fact] [Fact(Skip = "Reenable after CS1701 errors are resolved")]
public void ViewComponentTagHelper_Runtime() public void ViewComponentTagHelper_Runtime()
{ {
// Arrange // Arrange
@ -793,7 +793,7 @@ public class ThisShouldBeGenerated
var diagnotics = compiled.CodeDocument.GetCSharpDocument().Diagnostics; var diagnotics = compiled.CodeDocument.GetCSharpDocument().Diagnostics;
Assert.Equal("RZ2001", Assert.Single(diagnotics).Id); Assert.Equal("RZ2001", Assert.Single(diagnotics).Id);
} }
[Fact] [Fact]
public void ModelExpressionTagHelper_DesignTime() public void ModelExpressionTagHelper_DesignTime()
{ {

View File

@ -224,7 +224,7 @@ public class MyModel
AssertLinePragmas(compiled.CodeDocument, designTime: false); AssertLinePragmas(compiled.CodeDocument, designTime: false);
} }
[Fact] [Fact(Skip = "Reenable after CS1701 errors are resolved")]
public void Sections_Runtime() public void Sections_Runtime()
{ {
// Arrange // Arrange
@ -364,7 +364,7 @@ public class MyService<TModel>
AssertLinePragmas(compiled.CodeDocument, designTime: false); AssertLinePragmas(compiled.CodeDocument, designTime: false);
} }
[Fact] [Fact(Skip = "Reenable after CS1701 errors are resolved")]
public void ModelExpressionTagHelper_Runtime() public void ModelExpressionTagHelper_Runtime()
{ {
// Arrange // Arrange
@ -388,7 +388,7 @@ public class InputTestTagHelper : {typeof(TagHelper).FullName}
AssertLinePragmas(compiled.CodeDocument, designTime: false); AssertLinePragmas(compiled.CodeDocument, designTime: false);
} }
[Fact] [Fact(Skip = "Reenable after CS1701 errors are resolved")]
public void RazorPages_Runtime() public void RazorPages_Runtime()
{ {
// Arrange // Arrange
@ -425,7 +425,7 @@ public class DivTagHelper : {typeof(TagHelper).FullName}
AssertLinePragmas(compiled.CodeDocument, designTime: false); AssertLinePragmas(compiled.CodeDocument, designTime: false);
} }
[Fact] [Fact(Skip = "Reenable after CS1701 errors are resolved")]
public void RazorPagesWithoutModel_Runtime() public void RazorPagesWithoutModel_Runtime()
{ {
// Arrange // Arrange
@ -477,7 +477,7 @@ public class DivTagHelper : {typeof(TagHelper).FullName}
AssertLinePragmas(compiled.CodeDocument, designTime: false); AssertLinePragmas(compiled.CodeDocument, designTime: false);
} }
[Fact] [Fact(Skip = "Reenable after CS1701 errors are resolved")]
public void ViewComponentTagHelper_Runtime() public void ViewComponentTagHelper_Runtime()
{ {
// Arrange // Arrange
@ -918,7 +918,7 @@ public class ThisShouldBeGenerated
var diagnotics = compiled.CodeDocument.GetCSharpDocument().Diagnostics; var diagnotics = compiled.CodeDocument.GetCSharpDocument().Diagnostics;
Assert.Equal("RZ2001", Assert.Single(diagnotics).Id); Assert.Equal("RZ2001", Assert.Single(diagnotics).Id);
} }
[Fact] [Fact]
public void ModelExpressionTagHelper_DesignTime() public void ModelExpressionTagHelper_DesignTime()
{ {

View File

@ -30,7 +30,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<!-- Paths to tools, tasks, and extensions are calculated relative to the RazorSdkDirectoryRoot. This can be modified to test a local build. --> <!-- Paths to tools, tasks, and extensions are calculated relative to the RazorSdkDirectoryRoot. This can be modified to test a local build. -->
<RazorSdkDirectoryRoot Condition="'$(RazorSdkDirectoryRoot)'==''">$(MSBuildThisFileDirectory)..\..\</RazorSdkDirectoryRoot> <RazorSdkDirectoryRoot Condition="'$(RazorSdkDirectoryRoot)'==''">$(MSBuildThisFileDirectory)..\..\</RazorSdkDirectoryRoot>
<RazorSdkBuildTasksDirectoryRoot Condition="'$(RazorSdkBuildTasksDirectoryRoot)'==''">$(RazorSdkDirectoryRoot)tasks\</RazorSdkBuildTasksDirectoryRoot> <RazorSdkBuildTasksDirectoryRoot Condition="'$(RazorSdkBuildTasksDirectoryRoot)'==''">$(RazorSdkDirectoryRoot)tasks\</RazorSdkBuildTasksDirectoryRoot>
<_RazorSdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">netcoreapp5.0</_RazorSdkTasksTFM> <_RazorSdkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core'">net5.0</_RazorSdkTasksTFM>
<_RazorSdkTasksTFM Condition=" '$(_RazorSdkTasksTFM)' == ''">net46</_RazorSdkTasksTFM> <_RazorSdkTasksTFM Condition=" '$(_RazorSdkTasksTFM)' == ''">net46</_RazorSdkTasksTFM>
<RazorSdkBuildTasksAssembly>$(RazorSdkBuildTasksDirectoryRoot)$(_RazorSdkTasksTFM)\Microsoft.NET.Sdk.Razor.Tasks.dll</RazorSdkBuildTasksAssembly> <RazorSdkBuildTasksAssembly>$(RazorSdkBuildTasksDirectoryRoot)$(_RazorSdkTasksTFM)\Microsoft.NET.Sdk.Razor.Tasks.dll</RazorSdkBuildTasksAssembly>
</PropertyGroup> </PropertyGroup>

View File

@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
public Task Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute_WhenBuildingUsingDotnetMsbuild() public Task Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute_WhenBuildingUsingDotnetMsbuild()
=> Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute(MSBuildProcessKind.Dotnet); => Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute(MSBuildProcessKind.Dotnet);
[ConditionalFact] [ConditionalFact(Skip = "net5.0 TFM is not recognized on Desktop MSBuild. A VS update will be needed.")]
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)] [OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
[InitializeTestProject("AppWithP2PReference", additionalProjects: "ClassLibrary")] [InitializeTestProject("AppWithP2PReference", additionalProjects: "ClassLibrary")]
public Task Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute_WhenBuildingUsingDesktopMsbuild() public Task Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute_WhenBuildingUsingDesktopMsbuild()

View File

@ -235,8 +235,8 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
.Value; .Value;
var tfm = var tfm =
#if NETCOREAPP5_0 #if NETCOREAPP
"netcoreapp5.0"; "net5.0";
#else #else
#error Target framework needs to be updated. #error Target framework needs to be updated.
#endif #endif

View File

@ -38,7 +38,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
MSBuildIntegrationTestBase.Project = ProjectDirectory.Create(_originalProjectName, _testProjectName, _baseDirectory, _additionalProjects, _language); MSBuildIntegrationTestBase.Project = ProjectDirectory.Create(_originalProjectName, _testProjectName, _baseDirectory, _additionalProjects, _language);
#if NETCOREAPP #if NETCOREAPP
MSBuildIntegrationTestBase.TargetFramework = "netcoreapp5.0"; MSBuildIntegrationTestBase.TargetFramework = "net5.0";
#else #else
#error Target frameworks need to be updated #error Target frameworks need to be updated
#endif #endif

View File

@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
{ {
public class PackIntegrationTest : MSBuildIntegrationTestBase, IClassFixture<BuildServerTestFixture> public class PackIntegrationTest : MSBuildIntegrationTestBase, IClassFixture<BuildServerTestFixture>
{ {
private static readonly string TFM = "netcoreapp5.0"; private static readonly string TFM = "net5.0";
public PackIntegrationTest(BuildServerTestFixture buildServer) public PackIntegrationTest(BuildServerTestFixture buildServer)
: base(buildServer) : base(buildServer)

View File

@ -434,7 +434,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
var result = await DotnetMSBuild("Publish", "/p:NoBuild=true"); var result = await DotnetMSBuild("Publish", "/p:NoBuild=true");
Assert.BuildFailed(result); Assert.BuildFailed(result);
Assert.BuildError(result, "MSB3030"); // Could not copy the file "obj/Debug/netcoreapp5.0/SimpleMvc.dll because it couldn't be found. Assert.BuildError(result, "MSB3030"); // Could not copy the file "obj/Debug/net5.0/SimpleMvc.dll because it couldn't be found.
Assert.FileDoesNotExist(result, PublishOutputPath, "SimpleMvc.dll"); Assert.FileDoesNotExist(result, PublishOutputPath, "SimpleMvc.dll");
Assert.FileDoesNotExist(result, PublishOutputPath, "SimpleMvc.Views.dll"); Assert.FileDoesNotExist(result, PublishOutputPath, "SimpleMvc.Views.dll");

View File

@ -7,7 +7,7 @@
This is also a partial workaround for https://github.com/Microsoft/msbuild/issues/2661 - this project This is also a partial workaround for https://github.com/Microsoft/msbuild/issues/2661 - this project
has netcoreapp dependencies that need to be built first. has netcoreapp dependencies that need to be built first.
--> -->
<TargetFramework>netcoreapp5.0</TargetFramework> <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
<PreserveCompilationContext>true</PreserveCompilationContext> <PreserveCompilationContext>true</PreserveCompilationContext>
<DefineConstants Condition="'$(PreserveWorkingDirectory)'=='true'">$(DefineConstants);PRESERVE_WORKING_DIRECTORY</DefineConstants> <DefineConstants Condition="'$(PreserveWorkingDirectory)'=='true'">$(DefineConstants);PRESERVE_WORKING_DIRECTORY</DefineConstants>
<!-- Copy references locally so that we can use them in the test. --> <!-- Copy references locally so that we can use them in the test. -->

View File

@ -17,7 +17,6 @@
<PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(MicrosoftAspNetCoreTestingPackageVersion)" /> <PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(MicrosoftAspNetCoreTestingPackageVersion)" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(Runtime_MicrosoftCodeAnalysisCSharpPackageVersion)" /> <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(Runtime_MicrosoftCodeAnalysisCSharpPackageVersion)" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="$(MicrosoftExtensionsDependencyModelPackageVersion)" /> <PackageReference Include="Microsoft.Extensions.DependencyModel" Version="$(MicrosoftExtensionsDependencyModelPackageVersion)" />
<PackageReference Include="xunit" Version="$(XunitVersion)" />
</ItemGroup> </ItemGroup>
</Project> </Project>