Skip to content

Commit 1286a6f

Browse files
authored
Revert "Remove ref project from Microsoft.AspNetCore.Testing (#2817)" (#2882)
This reverts commit b624d6b.
1 parent 28c68e2 commit 1286a6f

9 files changed

+759
-3
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
</PropertyGroup>
5656

5757
<ItemGroup Condition=" '$(IsUnitTestProject)' == 'true' ">
58-
<ProjectReference Include="$(MSBuildThisFileDirectory)src\TestingUtils\Microsoft.AspNetCore.Testing\src\Microsoft.AspNetCore.Testing.csproj" />
58+
<Reference Include="Microsoft.AspNetCore.Testing" />
5959
<Reference Include="Moq" />
6060
</ItemGroup>
6161

eng/ProjectReferences.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<ProjectReferenceProvider Include="Microsoft.Extensions.Options.DataAnnotations" ProjectPath="$(RepoRoot)src\Options\DataAnnotations\src\Microsoft.Extensions.Options.DataAnnotations.csproj" RefProjectPath="$(RepoRoot)src\Options\DataAnnotations\ref\Microsoft.Extensions.Options.DataAnnotations.csproj" />
5757
<ProjectReferenceProvider Include="Microsoft.Extensions.Options" ProjectPath="$(RepoRoot)src\Options\Options\src\Microsoft.Extensions.Options.csproj" RefProjectPath="$(RepoRoot)src\Options\Options\ref\Microsoft.Extensions.Options.csproj" />
5858
<ProjectReferenceProvider Include="Microsoft.Extensions.Primitives" ProjectPath="$(RepoRoot)src\Primitives\src\Microsoft.Extensions.Primitives.csproj" RefProjectPath="$(RepoRoot)src\Primitives\ref\Microsoft.Extensions.Primitives.csproj" />
59+
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Testing" ProjectPath="$(RepoRoot)src\TestingUtils\Microsoft.AspNetCore.Testing\src\Microsoft.AspNetCore.Testing.csproj" RefProjectPath="$(RepoRoot)src\TestingUtils\Microsoft.AspNetCore.Testing\ref\Microsoft.AspNetCore.Testing.csproj" />
5960
<ProjectReferenceProvider Include="Microsoft.Extensions.WebEncoders" ProjectPath="$(RepoRoot)src\WebEncoders\src\Microsoft.Extensions.WebEncoders.csproj" RefProjectPath="$(RepoRoot)src\WebEncoders\ref\Microsoft.Extensions.WebEncoders.csproj" />
6061
</ItemGroup>
6162
</Project>

src/Hosting/IntegrationTesting/src/Microsoft.Extensions.Hosting.IntegrationTesting.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18+
<Reference Include="Microsoft.AspNetCore.Testing" />
1819
<Reference Include="Microsoft.Extensions.Hosting.Abstractions" />
1920
<Reference Include="Microsoft.Extensions.FileProviders.Embedded" />
2021
<Reference Include="Microsoft.Extensions.Logging" />

src/Logging/Logging.Testing/src/Microsoft.Extensions.Logging.Testing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<ProjectReference Include="..\..\..\TestingUtils\Microsoft.AspNetCore.Testing\src\Microsoft.AspNetCore.Testing.csproj" />
21+
<Reference Include="Microsoft.AspNetCore.Testing" />
2222
<Reference Include="Microsoft.Extensions.DependencyInjection" />
2323
<Reference Include="Microsoft.Extensions.Logging.Console" />
2424
<Reference Include="Microsoft.Extensions.Logging" />
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!-- This file is automatically generated. -->
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
<PropertyGroup>
4+
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
5+
</PropertyGroup>
6+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
7+
<Compile Include="Microsoft.AspNetCore.Testing.netstandard2.0.cs" />
8+
<Reference Include="Microsoft.Win32.Registry" />
9+
<Reference Include="System.ValueTuple" />
10+
<Reference Include="xunit.assert" />
11+
<Reference Include="xunit.extensibility.execution" />
12+
</ItemGroup>
13+
<ItemGroup Condition="'$(TargetFramework)' == 'net46'">
14+
<Compile Include="Microsoft.AspNetCore.Testing.net46.cs" />
15+
<Reference Include="Microsoft.Win32.Registry" />
16+
<Reference Include="System.ValueTuple" />
17+
<Reference Include="xunit.assert" />
18+
<Reference Include="xunit.extensibility.execution" />
19+
<Reference Include="System.Net.Http" />
20+
<Reference Include="System.Runtime.InteropServices.RuntimeInformation" />
21+
<Reference Include="System" />
22+
<Reference Include="System.Data" />
23+
<Reference Include="System.Drawing" />
24+
<Reference Include="System.Xml" />
25+
<Reference Include="System.Core" />
26+
<Reference Include="System.Runtime.Serialization" />
27+
<Reference Include="System.Xml.Linq" />
28+
<Reference Include="System.Numerics" />
29+
<Reference Include="System.IO.Compression.FileSystem" />
30+
<Reference Include="mscorlib" />
31+
</ItemGroup>
32+
</Project>

src/TestingUtils/Microsoft.AspNetCore.Testing/ref/Microsoft.AspNetCore.Testing.net46.cs

Lines changed: 360 additions & 0 deletions
Large diffs are not rendered by default.

src/TestingUtils/Microsoft.AspNetCore.Testing/ref/Microsoft.AspNetCore.Testing.netstandard2.0.cs

Lines changed: 360 additions & 0 deletions
Large diffs are not rendered by default.

src/TestingUtils/Microsoft.AspNetCore.Testing/src/Microsoft.AspNetCore.Testing.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
<!-- This is actually a library for test projects, not a test project. -->
1010
<IsUnitTestProject>false</IsUnitTestProject>
1111
<IsPackable>true</IsPackable>
12+
<HasReferenceAssembly>true</HasReferenceAssembly>
13+
<GenerateFrameworkReferenceAssembly>true</GenerateFrameworkReferenceAssembly>
1214
<!-- This package is internal, so we don't generate a package baseline. Always build against the latest dependencies. -->
1315
<UseLatestPackageReferences>true</UseLatestPackageReferences>
14-
<IsProjectReferenceProvider>false</IsProjectReferenceProvider>
1516
</PropertyGroup>
1617

1718
<ItemGroup>

src/TestingUtils/Microsoft.AspNetCore.Testing/test/Microsoft.AspNetCore.Testing.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17+
<Reference Include="Microsoft.AspNetCore.Testing" />
1718
<Reference Include="System.Runtime.InteropServices.RuntimeInformation" />
1819
</ItemGroup>
1920

0 commit comments

Comments
 (0)