[release/3.1] Update dependencies from dotnet/extensions (dotnet/aspnetcore-tooling#1496)

* Update dependencies from https://github.com/dotnet/extensions build 20200115.6

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.1.2-servicing.20065.6
- Microsoft.AspNetCore.Testing - 3.1.2-servicing.20065.6
- Microsoft.Extensions.CommandLineUtils.Sources - 3.1.2-servicing.20065.6
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.1.2-servicing.20065.6
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.1.2-servicing.20065.6
- Microsoft.Extensions.Logging - 3.1.2

Dependency coherency updates

- Microsoft.NETCore.App.Runtime.win-x64 - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.App.Internal - 3.1.2-servicing.20064.4 (parent: Microsoft.Extensions.Logging)

* Update dependencies from https://github.com/dotnet/extensions build 20200115.7

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.1.2-servicing.20065.7
- Microsoft.AspNetCore.Testing - 3.1.2-servicing.20065.7
- Microsoft.Extensions.CommandLineUtils.Sources - 3.1.2-servicing.20065.7
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.1.2-servicing.20065.7
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.1.2-servicing.20065.7
- Microsoft.Extensions.Logging - 3.1.2

Dependency coherency updates

- Microsoft.NETCore.App.Runtime.win-x64 - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.App.Internal - 3.1.2-servicing.20064.4 (parent: Microsoft.Extensions.Logging)

* Update dependencies from https://github.com/dotnet/extensions build 20200115.8

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.1.2-servicing.20065.8
- Microsoft.AspNetCore.Testing - 3.1.2-servicing.20065.8
- Microsoft.Extensions.CommandLineUtils.Sources - 3.1.2-servicing.20065.8
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.1.2-servicing.20065.8
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.1.2-servicing.20065.8
- Microsoft.Extensions.Logging - 3.1.2

Dependency coherency updates

- Microsoft.NETCore.App.Runtime.win-x64 - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.App.Internal - 3.1.2-servicing.20065.7 (parent: Microsoft.Extensions.Logging)

* Update dependencies from https://github.com/dotnet/extensions build 20200115.9

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.1.2-servicing.20065.9
- Microsoft.AspNetCore.Testing - 3.1.2-servicing.20065.9
- Microsoft.Extensions.CommandLineUtils.Sources - 3.1.2-servicing.20065.9
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.1.2-servicing.20065.9
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.1.2-servicing.20065.9
- Microsoft.Extensions.Logging - 3.1.2

Dependency coherency updates

- Microsoft.NETCore.App.Runtime.win-x64 - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.App.Internal - 3.1.2-servicing.20065.9 (parent: Microsoft.Extensions.Logging)

* Update dependencies from https://github.com/dotnet/extensions build 20200116.2

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.1.2-servicing.20066.2
- Microsoft.AspNetCore.Testing - 3.1.2-servicing.20066.2
- Microsoft.Extensions.CommandLineUtils.Sources - 3.1.2-servicing.20066.2
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.1.2-servicing.20066.2
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.1.2-servicing.20066.2
- Microsoft.Extensions.Logging - 3.1.2

Dependency coherency updates

- Microsoft.NETCore.App.Runtime.win-x64 - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.App.Internal - 3.1.2-servicing.20066.1 (parent: Microsoft.Extensions.Logging)

* Add System.Text.Json to nuget.config

* Update dependencies from https://github.com/dotnet/extensions build 20200116.3

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.1.2-servicing.20066.3
- Microsoft.AspNetCore.Testing - 3.1.2-servicing.20066.3
- Microsoft.Extensions.CommandLineUtils.Sources - 3.1.2-servicing.20066.3
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.1.2-servicing.20066.3
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.1.2-servicing.20066.3
- Microsoft.Extensions.Logging - 3.1.2

Dependency coherency updates

- Microsoft.NETCore.App.Runtime.win-x64 - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.App.Internal - 3.1.2-servicing.20066.1 (parent: Microsoft.Extensions.Logging)

* fix nuget.config

* Update dependencies from https://github.com/dotnet/extensions build 20200116.5

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.1.2-servicing.20066.5
- Microsoft.AspNetCore.Testing - 3.1.2-servicing.20066.5
- Microsoft.Extensions.CommandLineUtils.Sources - 3.1.2-servicing.20066.5
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.1.2-servicing.20066.5
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.1.2-servicing.20066.5
- Microsoft.Extensions.Logging - 3.1.2

Dependency coherency updates

- Microsoft.NETCore.App.Runtime.win-x64 - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.1.2 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.App.Internal - 3.1.2-servicing.20066.6 (parent: Microsoft.Extensions.Logging)

* fixup nuget.config

* Rely on regular restores for RID-specific package restores (dotnet/aspnetcore-tooling#1502)

* Rely on regular restores for RID-specific package restores

* Pin the runtime to a previously shippped version in SDK tests

* Update src/Razor/test/testapps/Directory.Build.targets

Co-authored-by: William Godbe <wigodbe@microsoft.com>
Co-authored-by: Pranav K <prkrishn@hotmail.com>
\n\nCommit migrated from 5fd301284e
This commit is contained in:
dotnet-maestro[bot] 2020-01-16 17:55:52 -08:00 committed by William Godbe
parent c0bf414494
commit 4520c6498a
5 changed files with 66 additions and 6 deletions

View File

@ -9,6 +9,7 @@ using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Testing;
using Microsoft.Extensions.CommandLineUtils;
using Xunit;
using Xunit.Abstractions;
@ -83,15 +84,15 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
Assert.FileDoesNotExist(result, PublishOutputPath, "AppWithPackageAndP2PReference.StaticWebAssets.xml");
}
[Fact]
[InitializeTestProject("AppWithPackageAndP2PReference", additionalProjects: new[] { "ClassLibrary", "ClassLibrary2" })]
[ConditionalFact]
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
[InitializeTestProject("AppWithPackageAndP2PReferenceAndRID", additionalProjects: new[] { "ClassLibrary", "ClassLibrary2" })]
public async Task Publish_CopiesStaticWebAssetsToDestinationFolder_PublishSingleFile()
{
var runtimeIdentifier = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "win-x64" : (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? "osx-x64" : "linux-x64");
var result = await DotnetMSBuild("Publish", $"/restore /p:PublishSingleFile=true /p:RuntimeIdentifier={runtimeIdentifier}");
var result = await DotnetMSBuild("Publish", $"/restore /p:PublishSingleFile=true /p:ReferenceLocallyBuiltPackages=true");
Assert.BuildPassed(result);
var publishOutputPath = GetRidSpecificPublishOutputPath(runtimeIdentifier);
var publishOutputPath = GetRidSpecificPublishOutputPath("win-x64");
Assert.FileExists(result, publishOutputPath, Path.Combine("wwwroot", "_content", "ClassLibrary", "js", "project-transitive-dep.js"));
Assert.FileExists(result, publishOutputPath, Path.Combine("wwwroot", "_content", "ClassLibrary", "js", "project-transitive-dep.v4.js"));
Assert.FileExists(result, publishOutputPath, Path.Combine("wwwroot", "_content", "ClassLibrary2", "css", "site.css"));

View File

@ -0,0 +1,41 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<RazorSdkDirectoryRoot>$(RazorSdkArtifactsDirectory)$(Configuration)\sdk-output\</RazorSdkDirectoryRoot>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<RuntimeAdditionalRestoreSources Condition="'$(RuntimeAdditionalRestoreSources)'=='' AND EXISTS('$(MSBuildThisFileDirectory)..\TestPackageRestoreSource\')">$(MSBuildThisFileDirectory)..\TestPackageRestoreSource\</RuntimeAdditionalRestoreSources>
<RestoreAdditionalProjectSources>$(RestoreAdditionalProjectSources);$(RuntimeAdditionalRestoreSources)</RestoreAdditionalProjectSources>
</PropertyGroup>
<ItemGroup>
<!-- Avoid referencing the AspNetCore framework since we want the ability to target work-in-progress shims -->
<FrameworkReference Remove="Microsoft.AspNetCore.App" />
</ItemGroup>
<PropertyGroup Condition="'$(RunningAsTest)' == ''">
<!-- We don't want to run build server when not running as tests. -->
<UseRazorBuildServer>false</UseRazorBuildServer>
</PropertyGroup>
<!-- Test Placeholder -->
<ItemGroup>
<PackageReference Include="PackageLibraryDirectDependency" Version="1.0.0" Condition="'$(ReferenceLocallyBuiltPackages)' == 'true'" />
<ProjectReference Include="..\ClassLibrary2\ClassLibrary2.csproj" />
</ItemGroup>
<PropertyGroup Condition="'$(BinariesRoot)'==''">
<!-- In test scenarios $(BinariesRoot) is defined in a generated Directory.Build.props file -->
<BinariesRoot>$(RepositoryRoot)artifacts\bin\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib\$(Configuration)\netstandard2.0\</BinariesRoot>
</PropertyGroup>
<ItemGroup Condition="'$(BinariesRoot)'!=''">
<Reference Include="$(BinariesRoot)\Microsoft.AspNetCore.Razor.Test.ComponentShim.dll" />
<Reference Include="$(BinariesRoot)\Microsoft.AspNetCore.Razor.Test.MvcShim.ClassLib.dll" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,13 @@

namespace AppWithP2PReference
{
public class Program
{
public static void Main(string[] args)
{
// Just make sure we have a reference to the MvcShim
var t = typeof(Microsoft.AspNetCore.Mvc.IActionResult);
System.Console.WriteLine(t.FullName);
}
}
}

View File

@ -2,7 +2,11 @@
<Import Project="RazorTest.Introspection.targets" />
<PropertyGroup>
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)' ">$(MicrosoftNETCoreApp31PackageVersion)</RuntimeFrameworkVersion>
<!--
The runtime version is only useful to restore and compile test projects, and not used to run tests.
We'll keep it pinned to a version that has already been shipped.
-->
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)' ">$(MicrosoftNETCoreAppRefPackageVersion)</RuntimeFrameworkVersion>
<!-- aspnet/BuildTools#662 Don't police what version of NetCoreApp we use -->
<NETCoreAppMaximumVersion>99.9</NETCoreAppMaximumVersion>
</PropertyGroup>

View File

@ -10,6 +10,7 @@
<ProjectReference Include="..\ClassLibraryMvc21\ClassLibraryMvc21.csproj" />
<ProjectReference Include="..\AppWithP2PReference\AppWithP2PReference.csproj" />
<ProjectReference Include="..\AppWithPackageAndP2PReferenceAndRID\AppWithPackageAndP2PReferenceAndRID.csproj" />
<ProjectReference Include="..\ClassLibrary\ClassLibrary.csproj" />
<ProjectReference Include="..\ClassLibrary2\ClassLibrary2.csproj" />
<ProjectReference Include="..\ClassLibraryMvc21\ClassLibraryMvc21.csproj" />