Skip to content

Commit

Permalink
Set InternalsVisibleTo for all projects (#1987)
Browse files Browse the repository at this point in the history
  • Loading branch information
sungam3r committed Aug 8, 2023
1 parent 13cca2c commit 136d8dc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
<Compile Include="../ClientCache.cs" Link="ClientCache.cs" />
</ItemGroup>

<ItemGroup Condition="!$(MSBuildProjectName.EndsWith('.Tests'))">
<InternalsVisibleTo Include="$(MSBuildProjectName).Tests" />
</ItemGroup>

<ItemGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))">
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" Condition="'$(TargetFramework)' != 'net7.0'" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="6.0.20" Condition="'$(TargetFramework)' == 'net6.0'" />
Expand Down
1 change: 0 additions & 1 deletion src/HealthChecks.Network/HealthChecks.Network.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="7.0.9" />
<PackageReference Include="System.Buffers" Version="4.5.1" />
<Compile Include="../HealthCheckResultTask.cs" />
<InternalsVisibleTo Include="HealthChecks.Network.Tests" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,4 @@
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="7.0.9" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="HealthChecks.Publisher.ApplicationInsights.Tests" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/HealthChecks.UI/HealthChecks.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="HealthChecks.UI.Tests;HealthChecks.UI.Image" />
<InternalsVisibleTo Include="HealthChecks.UI.Image" />
</ItemGroup>

<Target Name="InstallPackages" BeforeTargets="BeforeBuild">
Expand Down

0 comments on commit 136d8dc

Please sign in to comment.