Skip to content

Commit 348eadf

Browse files
committed
Add direct dependencies to work around CS1705 errors
- add direct references to some test and sample projects to make intent clear i.e. address CS1705 root cause - these projects must use implementation assemblies for those direct references - requirement also applies to anything depending on them e.g. functional tests - for simplicity, use `$(CompileUsingReferenceAssemblies)` instead of targeted `@(Reference)` metadata - leads to ~40 projects that do not themselves add ref/ metadata - this is _not_ transitive i.e. it applies only to projects that override `$(CompileUsingReferenceAssemblies)`
1 parent 1ca2483 commit 348eadf

File tree

40 files changed

+144
-1
lines changed

40 files changed

+144
-1
lines changed

src/Components/Blazor/Blazor/test/Microsoft.AspNetCore.Blazor.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
6+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
57
</PropertyGroup>
68

79
<ItemGroup>
810
<Reference Include="Microsoft.AspNetCore.Blazor" />
11+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
12+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
913
</ItemGroup>
1014

1115
</Project>

src/Components/test/E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
<GenerateLoggingTestingAssemblyAttributes>false</GenerateLoggingTestingAssemblyAttributes>
2222

23+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
24+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
2325
</PropertyGroup>
2426

2527
<ItemGroup>

src/Components/test/Ignitor.Test/Ignitor.Test.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
6+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
57
</PropertyGroup>
68

79
<ItemGroup>

src/Components/test/testassets/Ignitor/Ignitor.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>netcoreapp3.0</TargetFramework>
6+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
7+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
68
</PropertyGroup>
79

810
<ItemGroup>
911
<Reference Include="Microsoft.AspNetCore.SignalR.Client" />
1012
<Reference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" />
1113
<Reference Include="Microsoft.Extensions.Logging.Console" />
1214
<Reference Include="Microsoft.AspNetCore.Components.Server" />
15+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
16+
<Reference Include="Microsoft.AspNetCore.SignalR.Common" />
1317
</ItemGroup>
1418

1519
</Project>

src/DataProtection/AzureKeyVault/test/Microsoft.AspNetCore.DataProtection.AzureKeyVault.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
6+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
7+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
68
</PropertyGroup>
79

810
<ItemGroup>
911
<Reference Include="Microsoft.AspNetCore.DataProtection" />
1012
<Reference Include="Microsoft.AspNetCore.DataProtection.AzureKeyVault" />
1113
<Reference Include="Microsoft.Extensions.DependencyInjection" />
14+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
15+
<Reference Include="Microsoft.AspNetCore.DataProtection" />
1216
</ItemGroup>
1317

1418
</Project>

src/DataProtection/AzureStorage/test/Microsoft.AspNetCore.DataProtection.AzureStorage.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<UseLatestPackageReferences>true</UseLatestPackageReferences>
7+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
8+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
79
</PropertyGroup>
810

911
<ItemGroup>
@@ -12,6 +14,8 @@
1214
<Reference Include="Microsoft.Extensions.DependencyInjection" />
1315
<Reference Include="Microsoft.Data.OData"/>
1416
<Reference Include="Microsoft.Data.Services.Client"/>
17+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
18+
<Reference Include="Microsoft.AspNetCore.DataProtection" />
1519
</ItemGroup>
1620

1721
</Project>

src/DataProtection/EntityFrameworkCore/test/Microsoft.AspNetCore.DataProtection.EntityFrameworkCore.Test.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
6+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
57
</PropertyGroup>
68

79
<ItemGroup>
810
<Reference Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" />
911
<Reference Include="Microsoft.EntityFrameworkCore.InMemory" />
12+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
13+
<Reference Include="Microsoft.AspNetCore.DataProtection" />
1014
</ItemGroup>
1115

1216
</Project>

src/DataProtection/StackExchangeRedis/test/Microsoft.AspNetCore.DataProtection.StackExchangeRedis.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
6+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
57
</PropertyGroup>
68

79
<ItemGroup>
@@ -16,6 +18,8 @@
1618
<Reference Include="Microsoft.Extensions.Configuration.Json" />
1719
<Reference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" />
1820
<Reference Include="Microsoft.Extensions.DependencyInjection" />
21+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
22+
<Reference Include="Microsoft.AspNetCore.DataProtection" />
1923
</ItemGroup>
2024

2125
</Project>

src/DataProtection/samples/AzureBlob/AzureBlob.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<OutputType>exe</OutputType>
6+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
7+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
68
</PropertyGroup>
79

810
<ItemGroup>
@@ -11,6 +13,8 @@
1113
<Reference Include="Microsoft.Extensions.DependencyInjection" />
1214
<Reference Include="Microsoft.Extensions.Logging" />
1315
<Reference Include="Microsoft.Extensions.Logging.Console" />
16+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
17+
<Reference Include="Microsoft.AspNetCore.DataProtection" />
1418
</ItemGroup>
1519

1620
</Project>

src/DataProtection/samples/AzureKeyVault/AzureKeyVault.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<OutputType>exe</OutputType>
6+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
7+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
68
</PropertyGroup>
79

810
<ItemGroup>
@@ -12,6 +14,8 @@
1214
<Reference Include="Microsoft.Extensions.DependencyInjection" />
1315
<Reference Include="Microsoft.Extensions.Logging" />
1416
<Reference Include="Microsoft.Extensions.Logging.Console" />
17+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
18+
<Reference Include="Microsoft.AspNetCore.DataProtection" />
1519
</ItemGroup>
1620

1721
</Project>

src/DataProtection/samples/EntityFrameworkCoreSample/EntityFrameworkCoreSample.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<PropertyGroup>
44
<OutputType>exe</OutputType>
55
<TargetFramework>netcoreapp3.0</TargetFramework>
6+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
7+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
68
</PropertyGroup>
79

810
<ItemGroup>
@@ -11,6 +13,8 @@
1113
<Reference Include="Microsoft.EntityFrameworkCore.SqlServer" />
1214
<Reference Include="Microsoft.Extensions.DependencyInjection" />
1315
<Reference Include="Microsoft.Extensions.Logging.Console" />
16+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
17+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
1418
</ItemGroup>
1519

1620
</Project>

src/DataProtection/samples/Redis/Redis.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<OutputType>exe</OutputType>
6+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
7+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
68
</PropertyGroup>
79

810
<ItemGroup>
911
<Reference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" />
1012
<Reference Include="Microsoft.Extensions.DependencyInjection" />
1113
<Reference Include="Microsoft.Extensions.Logging" />
1214
<Reference Include="Microsoft.Extensions.Logging.Console" />
15+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
16+
<Reference Include="Microsoft.AspNetCore.DataProtection" />
1317
</ItemGroup>
1418

1519
</Project>

src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/ApiAuthSample.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<!-- We are a package that depends on the shared framework, this allows us to
77
avoid errors during restore -->
88
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
9+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
10+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
911
</PropertyGroup>
1012

1113
<ItemGroup>
@@ -35,6 +37,8 @@
3537
<Reference Include="Microsoft.Extensions.Logging.Configuration" />
3638
<Reference Include="Microsoft.Extensions.Logging.Console" />
3739
<Reference Include="Microsoft.Extensions.Logging.Debug" />
40+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
41+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
3842
</ItemGroup>
3943

4044
</Project>

src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
6+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
57
</PropertyGroup>
68

79
<ItemGroup>
@@ -15,6 +17,8 @@
1517
<Reference Include="Microsoft.AspNetCore.Hosting" />
1618
<Reference Include="Microsoft.AspNetCore.Http" />
1719
<Reference Include="Microsoft.EntityFrameworkCore.Sqlite" />
20+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
21+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
1822
</ItemGroup>
1923

2024
</Project>

src/Identity/EntityFrameworkCore/test/EF.Test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
6+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
57
</PropertyGroup>
68

79
<ItemGroup>
@@ -20,6 +22,8 @@
2022
<Reference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" />
2123
<Reference Include="Microsoft.Extensions.Configuration.FileExtensions" />
2224
<Reference Include="Microsoft.Extensions.Configuration.Json" />
25+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
26+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
2327
</ItemGroup>
2428

2529
</Project>

src/Identity/samples/IdentitySample.DefaultUI/IdentitySample.DefaultUI.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<TargetFramework>netcoreapp3.0</TargetFramework>
66
<UserSecretsId>aspnetcore-2ff9bc27-5e8c-4484-90ca-e3aace89b72a</UserSecretsId>
77
<IdentityUIFrameworkVersion>Bootstrap4</IdentityUIFrameworkVersion>
8+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
9+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
810
</PropertyGroup>
911

1012
<ItemGroup>
@@ -31,6 +33,8 @@
3133
<Reference Include="Microsoft.Extensions.Hosting" />
3234
<Reference Include="Microsoft.Extensions.Logging.Console" />
3335
<Reference Include="Microsoft.Extensions.Logging.Debug" />
36+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
37+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
3438
</ItemGroup>
3539

3640
<ItemGroup>

src/Identity/samples/IdentitySample.Mvc/IdentitySample.Mvc.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<Description>Identity sample MVC application on ASP.NET Core</Description>
55
<TargetFramework>netcoreapp3.0</TargetFramework>
66
<UserSecretsId>aspnetcore-b3d20cbe-418e-4bf2-a0f4-57f91d067e07</UserSecretsId>
7+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
8+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
79
</PropertyGroup>
810

911
<ItemGroup>
@@ -27,5 +29,7 @@
2729
<Reference Include="Microsoft.Extensions.Configuration.UserSecrets" />
2830
<Reference Include="Microsoft.Extensions.Logging.Console" />
2931
<Reference Include="Microsoft.Extensions.Logging.Debug" />
32+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
33+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
3034
</ItemGroup>
3135
</Project>

src/Identity/test/Identity.FunctionalTests/Microsoft.AspNetCore.Identity.FunctionalTests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<!-- Test asset publishing not working on arm64 https://github.com/aspnet/AspNetCore/issues/11205 -->
66
<SkipHelixArm>true</SkipHelixArm>
7+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
8+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
79
</PropertyGroup>
810

911
<ItemGroup>

src/Identity/testassets/Identity.DefaultUI.WebSite/Identity.DefaultUI.WebSite.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<UserSecretsId>aspnet-Identity.DefaultUI.WebSite-80C658D8-CED7-467F-9B47-75DA3BC1A16D</UserSecretsId>
66
<IdentityDefaultUIFramework>Bootstrap3</IdentityDefaultUIFramework>
7+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
8+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
79
</PropertyGroup>
810

911
<ItemGroup>
@@ -42,6 +44,8 @@
4244
<Reference Include="Microsoft.Extensions.Logging.Configuration" />
4345
<Reference Include="Microsoft.Extensions.Logging.Console" />
4446
<Reference Include="Microsoft.Extensions.Logging.Debug" />
47+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
48+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
4549
</ItemGroup>
4650

4751
<PropertyGroup>

src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Diagnostics.EFCore.FunctionalTests.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<!-- Mitigation for long path issues -->
66
<AssemblyName>Diagnostics.EFCore.FunctionalTests</AssemblyName>
7+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
8+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
79
</PropertyGroup>
810

911
<ItemGroup>
1012
<Reference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" />
1113
<Reference Include="Microsoft.AspNetCore.TestHost" />
1214
<Reference Include="Microsoft.EntityFrameworkCore.Sqlite" />
15+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
16+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
17+
<Reference Include="Microsoft.Extensions.Logging.Abstractions" />
1318
</ItemGroup>
1419

1520
</Project>

src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
6+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
57
</PropertyGroup>
68

79
<ItemGroup>
810
<Reference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" />
911
<Reference Include="Microsoft.EntityFrameworkCore.InMemory" />
12+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
13+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
1014
</ItemGroup>
1115

1216

src/Middleware/Diagnostics/test/testassets/DatabaseErrorPageSample/DatabaseErrorPageSample.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
6+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
57
</PropertyGroup>
68

79
<ItemGroup>
@@ -13,6 +15,8 @@
1315
<Reference Include="Microsoft.AspNetCore.Server.IISIntegration" />
1416
<Reference Include="Microsoft.AspNetCore.Server.Kestrel" />
1517
<Reference Include="Microsoft.EntityFrameworkCore.Sqlite" />
18+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
19+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
1620
</ItemGroup>
1721

1822
</Project>

src/Middleware/HealthChecks.EntityFrameworkCore/test/Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore.Tests.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@
33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<RootNamespace>Microsoft.AspNetCore.Diagnostics.HealthChecks</RootNamespace>
6+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
7+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
68
</PropertyGroup>
79

810
<ItemGroup>
911
<Reference Include="Microsoft.EntityFrameworkCore.InMemory" />
1012
<Reference Include="Microsoft.Extensions.DependencyInjection" />
1113
<Reference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" />
14+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
15+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
16+
<Reference Include="Microsoft.Extensions.Diagnostics.HealthChecks" />
17+
<Reference Include="Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions" />
1218
</ItemGroup>
1319

1420
</Project>

src/Middleware/HealthChecks/test/testassets/HealthChecksSample/HealthChecksSample.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
6+
<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
57
</PropertyGroup>
68

79
<ItemGroup>
@@ -15,6 +17,10 @@
1517
<Reference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" />
1618
<Reference Include="Microsoft.Extensions.Logging.Console" />
1719
<Reference Include="Newtonsoft.Json" />
20+
<!-- Avoid CS1705 errors due to mix of assemblies brought in transitively. -->
21+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
22+
<Reference Include="Microsoft.Extensions.Diagnostics.HealthChecks" />
23+
<Reference Include="Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions" />
1824
</ItemGroup>
1925

2026
</Project>

0 commit comments

Comments
 (0)