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

Adopt consistent approach for defining InternalsVisibleTo in the repo #45748

Merged
merged 9 commits into from
Dec 28, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@
<NuspecProperty Include="OutputSymbol=$(OutputPath)$(AssemblyName).pdb" />
</ItemGroup>

<ItemGroup>
<InternalVisibleTo Include="Microsoft.AspNetCore.Analyzers.Test" />
</ItemGroup>
</Project>
6 changes: 0 additions & 6 deletions src/Analyzers/Analyzers/src/Properties/AssemblyInfo.cs

This file was deleted.

4 changes: 4 additions & 0 deletions src/Antiforgery/src/Microsoft.AspNetCore.Antiforgery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@
<Reference Include="Microsoft.Extensions.ObjectPool" />
</ItemGroup>

<ItemGroup>
<InternalVisibleTo Include="DynamicProxyGenAssembly2" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Antiforgery.Test" />
</ItemGroup>
</Project>
7 changes: 0 additions & 7 deletions src/Antiforgery/src/Properties/AssemblyInfo.cs

This file was deleted.

6 changes: 0 additions & 6 deletions src/Azure/AzureAppServices.HostingStartup/src/AssemblyInfo.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@
<Reference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" />
</ItemGroup>

<ItemGroup>
<InternalVisibleTo Include="Microsoft.AspNetCore.AzureAppServicesIntegration.Tests" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
<Reference Include="Microsoft.Extensions.Logging.AzureAppServices" />
</ItemGroup>

<ItemGroup>
<InternalVisibleTo Include="Microsoft.AspNetCore.Hosting.Azure.AppServices.Tests" />
</ItemGroup>
</Project>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@
<None Include="buildTransitive/netstandard2.0/*" Pack="true" PackagePath="buildTransitive/netstandard2.0" />
</ItemGroup>

<ItemGroup>
<InternalVisibleTo Include="Microsoft.AspNetCore.Components.Analyzers.Tests" />
</ItemGroup>
</Project>
6 changes: 0 additions & 6 deletions src/Components/Analyzers/src/Properties/AssemblyInfo.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,17 @@
<NuspecProperty Include="PackageThirdPartyNoticesFile=$(PackageThirdPartyNoticesFile)" />
</ItemGroup>

<ItemGroup>
<InternalVisibleTo Include="Microsoft.AspNetCore.Components.Web" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Blazor.Build.Tests" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Components.Authorization.Tests" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Components.Forms.Tests" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Components.Performance" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Components.Server.Tests" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Components.Tests" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Components.Web.Tests" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Components.ProtectedBrowserStorage.Tests" />
<InternalVisibleTo Include="Components.TestServer" />
<InternalVisibleTo Include="DynamicProxyGenAssembly2" />
</ItemGroup>
</Project>
18 changes: 0 additions & 18 deletions src/Components/Components/src/Properties/AssemblyInfo.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,10 @@
<EmbeddedResource Include="$(BlazorServerJSFile).map" LogicalName="_framework/$(BlazorServerJSFilename).map" Condition="Exists('$(BlazorServerJSFile).map')" />
</ItemGroup>
</Target>

<ItemGroup>
<InternalVisibleTo Include="Microsoft.AspNetCore.Blazor.DevServer" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Components.Server.Tests" />
<InternalVisibleTo Include="DynamicProxyGenAssembly2" />
</ItemGroup>
</Project>
9 changes: 0 additions & 9 deletions src/Components/Server/src/Properties/AssemblyInfo.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@
<Reference Include="System.IO.Pipelines" />
</ItemGroup>

<ItemGroup>
<InternalVisibleTo Include="Microsoft.AspNetCore.Components.Server.Tests" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Components.Web.Tests" />
</ItemGroup>
</Project>
7 changes: 0 additions & 7 deletions src/Components/Web/src/Properties/AssemblyInfo.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,7 @@

<Import Project="Sdk.targets" Sdk="Yarn.MSBuild" Condition=" '$(DotNetBuildFromSource)' != 'true'" />

<ItemGroup>
<InternalVisibleTo Include="Microsoft.AspNetCore.Blazor.Tests" />
</ItemGroup>
</Project>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,8 @@
<Target Name="_CheckBlazorServerJSPath" BeforeTargets="GenerateNuspec" DependsOnTargets="ResolveProjectReferences" Condition=" '$(IsPackable)' == 'true' ">
<Error Text="'$(BlazorWebAssemblyJSFile)' does not exist. Enable NodeJS to pack this project." Condition=" !EXISTS('$(BlazorWebAssemblyJSFile)') " />
</Target>

<ItemGroup>
<InternalVisibleTo Include="DynamicProxyGenAssembly2" />
</ItemGroup>
</Project>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>ASP.NET Core data protection abstractions.
Expand All @@ -20,4 +20,7 @@ Microsoft.AspNetCore.DataProtection.IDataProtector</Description>
Condition="'$(TargetFramework)' != '$(DefaultNetCoreTargetFramework)'" />
</ItemGroup>

<ItemGroup>
<InternalVisibleTo Include="Microsoft.AspNetCore.DataProtection.Abstractions.Tests" />
</ItemGroup>
</Project>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@
<IsTrimmable>true</IsTrimmable>
</PropertyGroup>

<ItemGroup>
<InternalVisibleTo Include="Microsoft.AspNetCore.Cryptography.Internal.Tests" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Cryptography.KeyDerivation" />
<InternalVisibleTo Include="Microsoft.AspNetCore.Cryptography.KeyDerivation.Tests" />
<InternalVisibleTo Include="Microsoft.AspNetCore.DataProtection" />
<InternalVisibleTo Include="Microsoft.AspNetCore.DataProtection.Abstractions.Tests" />
<InternalVisibleTo Include="Microsoft.AspNetCore.DataProtection.Extensions.Tests" />
<InternalVisibleTo Include="Microsoft.AspNetCore.DataProtection.Tests" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,3 @@
// we only ever p/invoke into DLLs known to be in the System32 folder
[assembly: DefaultDllImportSearchPaths(DllImportSearchPath.System32)]

[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Cryptography.Internal.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Cryptography.KeyDerivation, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Cryptography.KeyDerivation.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.DataProtection, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.DataProtection.Abstractions.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.DataProtection.Extensions.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.DataProtection.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
Loading