Fix up tests for 5.0

Commit migrated from https://github.com/dotnet/core-setup/commit/3b8cebc9528342972f0229314aa375f9b09d0038
This commit is contained in:
Davis Goodin committed 2019-07-19 12:10:47 -05:00
1 parent 2adccb473f
commit 2b9deb2de4
10 files changed
+24 -8

No files matched your search

+9
View File
@@ -3,4 +3,13 @@
This file is imported by the test projects from the artifacts dir or the src/tests dir. It
provides basic info needed for restore and build with the vanilla SDK.
-->
<PropertyGroup>
<!--
Define this here (not just in Versions.props) because the SDK resets it
unconditionally in Microsoft.NETCoreSdk.BundledVersions.props.
-->
<NETCoreAppMaximumVersion>$(MajorVersion).$(MinorVersion)</NETCoreAppMaximumVersion>
</PropertyGroup>
</Project>
@@ -13,10 +13,14 @@
<ItemGroup Condition="'$(UseMicrosoftNETCoreAppInternalWorkaround)' == 'true'">
<PackageReference Include="Microsoft.NETCore.App.Internal" Version="$(MNAVersion)" />
<!-- Provide a framework to put in the runtimeconfig. -->
<RuntimeFramework Include="Microsoft.NETCore.App" Version="$(MNAVersion)" />
</ItemGroup>
<PropertyGroup>
<PropertyGroup Condition="'$(UseMicrosoftNETCoreAppInternalWorkaround)' == 'true'">
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<DisableImplicitNETCorePlatformsReference>true</DisableImplicitNETCorePlatformsReference>
<UseAppHostFromAssetsFile>true</UseAppHostFromAssetsFile>
</PropertyGroup>
</Project>
@@ -2,7 +2,7 @@
<PropertyGroup>
<Description>Apphost Bundle Tests</Description>
<TargetFramework>$(NETCoreAppFramework)</TargetFramework>
<TargetFramework>$(TestInfraTargetFramework)</TargetFramework>
<AssemblyName>AppHost.Bundle.Tests</AssemblyName>
<PackageId>AppHost.Bundle.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
@@ -2,7 +2,7 @@
<PropertyGroup>
<Description>Bundle Test Helpers</Description>
<TargetFramework>$(NETCoreAppFramework)</TargetFramework>
<TargetFramework>$(TestInfraTargetFramework)</TargetFramework>
<AssemblyName>BundleHelper</AssemblyName>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
</PropertyGroup>
@@ -2,7 +2,7 @@
<PropertyGroup>
<Description>Microsoft.NET.HostModel.Bundle Tests</Description>
<TargetFramework>$(NETCoreAppFramework)</TargetFramework>
<TargetFramework>$(TestInfraTargetFramework)</TargetFramework>
<AssemblyName>Microsoft.NET.HostModel.Bundle.Tests</AssemblyName>
<PackageId>Microsoft.NET.HostModel.Bundle.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
+1
View File
@@ -6,6 +6,7 @@
<TestAssetsDir>$(TestDir)Assets\</TestAssetsDir>
<TestRestorePackagesPath>$(ObjDir)TestPackageCache\</TestRestorePackagesPath>
<TestArchitectures>$(TargetArchitecture)</TestArchitectures>
<TestInfraTargetFramework>netcoreapp3.0</TestInfraTargetFramework>
</PropertyGroup>
</Project>
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(NETCoreAppFramework)</TargetFramework>
<TargetFramework>$(TestInfraTargetFramework)</TargetFramework>
<AssemblyName>HostActivation.Tests</AssemblyName>
<PackageId>HostActivation.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(NETCoreAppFramework)</TargetFramework>
<TargetFramework>$(TestInfraTargetFramework)</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
@@ -2,7 +2,7 @@
<PropertyGroup>
<Description>Microsoft.DotNet.Tools.Tests.Utilities Class Library</Description>
<TargetFramework>$(NETCoreAppFramework)</TargetFramework>
<TargetFramework>$(TestInfraTargetFramework)</TargetFramework>
<AssemblyName>Microsoft.Extensions.DependencyModel.Tests</AssemblyName>
<StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId>
<SignAssembly>true</SignAssembly>
@@ -17,6 +17,8 @@
<PackageReference Include="Moq" Version="4.7.142" />
<PackageReference Include="NuGet.Versioning" Version="4.0.0" />
<PackageReference Include="Microsoft.DotNet.ProjectModel" Version="1.0.0-rc2-002702" />
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonVersion)" />
<PackageReference Include="System.Text.Encodings.Web" Version="$(SystemTextEncodingsWebVersion)" />
<ProjectReference Include="..\..\managed\Microsoft.DotNet.PlatformAbstractions\Microsoft.DotNet.PlatformAbstractions.csproj" />
<ProjectReference Include="..\..\managed\Microsoft.Extensions.DependencyModel\Microsoft.Extensions.DependencyModel.csproj" />
</ItemGroup>
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(NETCoreAppFramework)</TargetFramework>
<TargetFramework>$(TestInfraTargetFramework)</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyName>TestUtils</AssemblyName>
<PackageId>TestUtils</PackageId>