Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set InternalsVisibleTo for all projects #1987

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading