[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:
parent
b0d819f1e8
commit
f701a188c2
|
|
@ -181,7 +181,7 @@ public class MyModel
|
|||
AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Fact(Skip = "Reenable after CS1701 errors are resolved")]
|
||||
public void Sections_Runtime()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -315,7 +315,7 @@ public class MyService<TModel>
|
|||
AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Fact(Skip = "Reenable after CS1701 errors are resolved")]
|
||||
public void ModelExpressionTagHelper_Runtime()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -338,7 +338,7 @@ public class InputTestTagHelper : {typeof(TagHelper).FullName}
|
|||
AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Fact(Skip = "Reenable after CS1701 errors are resolved")]
|
||||
public void RazorPages_Runtime()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -373,7 +373,7 @@ public class DivTagHelper : {typeof(TagHelper).FullName}
|
|||
AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Fact(Skip = "Reenable after CS1701 errors are resolved")]
|
||||
public void RazorPagesWithoutModel_Runtime()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -422,7 +422,7 @@ public class DivTagHelper : {typeof(TagHelper).FullName}
|
|||
AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Fact(Skip = "Reenable after CS1701 errors are resolved")]
|
||||
public void ViewComponentTagHelper_Runtime()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -793,7 +793,7 @@ public class ThisShouldBeGenerated
|
|||
var diagnotics = compiled.CodeDocument.GetCSharpDocument().Diagnostics;
|
||||
Assert.Equal("RZ2001", Assert.Single(diagnotics).Id);
|
||||
}
|
||||
|
||||
|
||||
[Fact]
|
||||
public void ModelExpressionTagHelper_DesignTime()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ public class MyModel
|
|||
AssertLinePragmas(compiled.CodeDocument, designTime: false);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Fact(Skip = "Reenable after CS1701 errors are resolved")]
|
||||
public void Sections_Runtime()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -364,7 +364,7 @@ public class MyService<TModel>
|
|||
AssertLinePragmas(compiled.CodeDocument, designTime: false);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Fact(Skip = "Reenable after CS1701 errors are resolved")]
|
||||
public void ModelExpressionTagHelper_Runtime()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -388,7 +388,7 @@ public class InputTestTagHelper : {typeof(TagHelper).FullName}
|
|||
AssertLinePragmas(compiled.CodeDocument, designTime: false);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Fact(Skip = "Reenable after CS1701 errors are resolved")]
|
||||
public void RazorPages_Runtime()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -425,7 +425,7 @@ public class DivTagHelper : {typeof(TagHelper).FullName}
|
|||
AssertLinePragmas(compiled.CodeDocument, designTime: false);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Fact(Skip = "Reenable after CS1701 errors are resolved")]
|
||||
public void RazorPagesWithoutModel_Runtime()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -477,7 +477,7 @@ public class DivTagHelper : {typeof(TagHelper).FullName}
|
|||
AssertLinePragmas(compiled.CodeDocument, designTime: false);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Fact(Skip = "Reenable after CS1701 errors are resolved")]
|
||||
public void ViewComponentTagHelper_Runtime()
|
||||
{
|
||||
// Arrange
|
||||
|
|
@ -918,7 +918,7 @@ public class ThisShouldBeGenerated
|
|||
var diagnotics = compiled.CodeDocument.GetCSharpDocument().Diagnostics;
|
||||
Assert.Equal("RZ2001", Assert.Single(diagnotics).Id);
|
||||
}
|
||||
|
||||
|
||||
[Fact]
|
||||
public void ModelExpressionTagHelper_DesignTime()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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. -->
|
||||
<RazorSdkDirectoryRoot Condition="'$(RazorSdkDirectoryRoot)'==''">$(MSBuildThisFileDirectory)..\..\</RazorSdkDirectoryRoot>
|
||||
<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>
|
||||
<RazorSdkBuildTasksAssembly>$(RazorSdkBuildTasksDirectoryRoot)$(_RazorSdkTasksTFM)\Microsoft.NET.Sdk.Razor.Tasks.dll</RazorSdkBuildTasksAssembly>
|
||||
</PropertyGroup>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
|||
public Task Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute_WhenBuildingUsingDotnetMsbuild()
|
||||
=> 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)]
|
||||
[InitializeTestProject("AppWithP2PReference", additionalProjects: "ClassLibrary")]
|
||||
public Task Build_ProjectWithDependencyThatReferencesMvc_AddsAttribute_WhenBuildingUsingDesktopMsbuild()
|
||||
|
|
|
|||
|
|
@ -235,8 +235,8 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
|||
.Value;
|
||||
|
||||
var tfm =
|
||||
#if NETCOREAPP5_0
|
||||
"netcoreapp5.0";
|
||||
#if NETCOREAPP
|
||||
"net5.0";
|
||||
#else
|
||||
#error Target framework needs to be updated.
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
|||
|
||||
MSBuildIntegrationTestBase.Project = ProjectDirectory.Create(_originalProjectName, _testProjectName, _baseDirectory, _additionalProjects, _language);
|
||||
#if NETCOREAPP
|
||||
MSBuildIntegrationTestBase.TargetFramework = "netcoreapp5.0";
|
||||
MSBuildIntegrationTestBase.TargetFramework = "net5.0";
|
||||
#else
|
||||
#error Target frameworks need to be updated
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
|||
{
|
||||
public class PackIntegrationTest : MSBuildIntegrationTestBase, IClassFixture<BuildServerTestFixture>
|
||||
{
|
||||
private static readonly string TFM = "netcoreapp5.0";
|
||||
private static readonly string TFM = "net5.0";
|
||||
|
||||
public PackIntegrationTest(BuildServerTestFixture buildServer)
|
||||
: base(buildServer)
|
||||
|
|
|
|||
|
|
@ -434,7 +434,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
|||
var result = await DotnetMSBuild("Publish", "/p:NoBuild=true");
|
||||
|
||||
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.Views.dll");
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
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.
|
||||
-->
|
||||
<TargetFramework>netcoreapp5.0</TargetFramework>
|
||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||
<PreserveCompilationContext>true</PreserveCompilationContext>
|
||||
<DefineConstants Condition="'$(PreserveWorkingDirectory)'=='true'">$(DefineConstants);PRESERVE_WORKING_DIRECTORY</DefineConstants>
|
||||
<!-- Copy references locally so that we can use them in the test. -->
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
<PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(MicrosoftAspNetCoreTestingPackageVersion)" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(Runtime_MicrosoftCodeAnalysisCSharpPackageVersion)" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="$(MicrosoftExtensionsDependencyModelPackageVersion)" />
|
||||
<PackageReference Include="xunit" Version="$(XunitVersion)" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
Loading…
Reference in New Issue