Skip to content

Commit b624d6b

Browse files
author
John Luo
authored
Remove ref project from Microsoft.AspNetCore.Testing (#2817)
1 parent fde2846 commit b624d6b

9 files changed

+3
-759
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-
<Reference Include="Microsoft.AspNetCore.Testing" />
58+
<ProjectReference Include="$(MSBuildThisFileDirectory)src\TestingUtils\Microsoft.AspNetCore.Testing\src\Microsoft.AspNetCore.Testing.csproj" />
5959
<Reference Include="Moq" />
6060
</ItemGroup>
6161

eng/ProjectReferences.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
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" />
6059
<ProjectReferenceProvider Include="Microsoft.Extensions.WebEncoders" ProjectPath="$(RepoRoot)src\WebEncoders\src\Microsoft.Extensions.WebEncoders.csproj" RefProjectPath="$(RepoRoot)src\WebEncoders\ref\Microsoft.Extensions.WebEncoders.csproj" />
6160
</ItemGroup>
6261
</Project>

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

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

1717
<ItemGroup>
18-
<Reference Include="Microsoft.AspNetCore.Testing" />
1918
<Reference Include="Microsoft.Extensions.Hosting.Abstractions" />
2019
<Reference Include="Microsoft.Extensions.FileProviders.Embedded" />
2120
<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-
<Reference Include="Microsoft.AspNetCore.Testing" />
21+
<ProjectReference Include="..\..\..\TestingUtils\Microsoft.AspNetCore.Testing\src\Microsoft.AspNetCore.Testing.csproj" />
2222
<Reference Include="Microsoft.Extensions.DependencyInjection" />
2323
<Reference Include="Microsoft.Extensions.Logging.Console" />
2424
<Reference Include="Microsoft.Extensions.Logging" />

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

Lines changed: 0 additions & 32 deletions
This file was deleted.

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

Lines changed: 0 additions & 360 deletions
This file was deleted.

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

Lines changed: 0 additions & 360 deletions
This file was deleted.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
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>
1412
<!-- This package is internal, so we don't generate a package baseline. Always build against the latest dependencies. -->
1513
<UseLatestPackageReferences>true</UseLatestPackageReferences>
14+
<IsProjectReferenceProvider>false</IsProjectReferenceProvider>
1615
</PropertyGroup>
1716

1817
<ItemGroup>

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

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

1616
<ItemGroup>
17-
<Reference Include="Microsoft.AspNetCore.Testing" />
1817
<Reference Include="System.Runtime.InteropServices.RuntimeInformation" />
1918
</ItemGroup>
2019

0 commit comments

Comments
 (0)