Skip to content

Commit

Permalink
Cleanup (#2382)
Browse files Browse the repository at this point in the history
* Relocate CLSCompliant attribute to msbuild property

* Move Android attributes

* Relocate InternalsVisibleTo attributes to MSBuild properties

* Remove old style attributes

* Bump Polyfill library to latest

* Bump Verify library to latest
  • Loading branch information
mattjohnsonpint committed May 22, 2023
1 parent acb9de4 commit f1a07b5
Show file tree
Hide file tree
Showing 50 changed files with 173 additions and 125 deletions.
10 changes: 10 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,14 @@
<SentryCLIDirectory>$(MSBuildThisFileDirectory)tools\sentry-cli\$(SentryCLIVersion)\</SentryCLIDirectory>
</PropertyGroup>

<!-- Public key of .assets/Sentry.snk - not a secret. Used by other InternalsVisibleTo entries throughout the solution. -->
<PropertyGroup>
<SentryPublicKey>002400000480000094000000060200000024000052534131000400000100010059964a931488bcdbd14657f1ee0df32df61b57b3d14d7290c262c2cc9ddaad6ec984044f761f778e1823049d2cb996a4f58c8ea5b46c37891414cb34b4036b1c178d7b582289d2eef3c0f1e9b692c229a306831ee3d371d9e883f0eb0f74aeac6c6ab8c85fd1ec04b267e15a31532c4b4e2191f5980459db4dce0081f1050fb8</SentryPublicKey>
</PropertyGroup>

<!-- Allow NSubstitute dynamic proxies to access any internal API. Its PublicKey is not a secret. -->
<ItemGroup>
<InternalsVisibleTo Include="DynamicProxyGenAssembly2" PublicKey="0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7" />
</ItemGroup>

</Project>
7 changes: 7 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
<Compile Remove="**\Tizen\**\*.cs" />
</ItemGroup>

<!-- Allow setting CLSCompliant via property in any csproj -->
<ItemGroup>
<AssemblyAttribute Include="CLSCompliantAttribute" Condition="'$(CLSCompliant)' == 'true'">
<_Parameter1>true</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

<!-- Workaround for https://github.com/xamarin/xamarin-macios/issues/15897 -->
<Target Name="_SetPublishFolderTypeNoneOnDocFileItems"
BeforeTargets="_ComputePublishLocation"
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@
<PackageReference Remove="SIL.ReleaseTasks" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Sentry.Android.AssemblyReader.Tests" PublicKey="$(SentryPublicKey)" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion src/Sentry.AspNet/Properties/AssemblyInfo.cs

This file was deleted.

4 changes: 4 additions & 0 deletions src/Sentry.AspNet/Sentry.AspNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@
<ProjectReference Include="..\Sentry.DiagnosticSource\Sentry.DiagnosticSource.csproj" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Sentry.AspNet.Tests" PublicKey="$(SentryPublicKey)" />
</ItemGroup>

</Project>
2 changes: 0 additions & 2 deletions src/Sentry.AspNetCore.Grpc/Properties/AssemblyInfo.cs

This file was deleted.

4 changes: 4 additions & 0 deletions src/Sentry.AspNetCore.Grpc/Sentry.AspNetCore.Grpc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@
<PackageReference Include="Grpc.AspNetCore.Server" Version="2.40.0" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Sentry.AspNetCore.Grpc.Tests" PublicKey="$(SentryPublicKey)" />
</ItemGroup>

</Project>
5 changes: 0 additions & 5 deletions src/Sentry.AspNetCore/Properties/AssemblyInfo.cs

This file was deleted.

7 changes: 7 additions & 0 deletions src/Sentry.AspNetCore/Sentry.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,11 @@
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Sentry.AspNetCore.Tests" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.AspNetCore.Grpc" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Google.Cloud.Functions" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Google.Cloud.Functions.Tests" PublicKey="$(SentryPublicKey)" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Sentry.AzureFunctions.Worker.Tests" PublicKey="002400000480000094000000060200000024000052534131000400000100010059964a931488bcdbd14657f1ee0df32df61b57b3d14d7290c262c2cc9ddaad6ec984044f761f778e1823049d2cb996a4f58c8ea5b46c37891414cb34b4036b1c178d7b582289d2eef3c0f1e9b692c229a306831ee3d371d9e883f0eb0f74aeac6c6ab8c85fd1ec04b267e15a31532c4b4e2191f5980459db4dce0081f1050fb8" />
<InternalsVisibleTo Include="Sentry.AzureFunctions.Worker.Tests" PublicKey="$(SentryPublicKey)" />
</ItemGroup>

</Project>
5 changes: 0 additions & 5 deletions src/Sentry.Bindings.Android/Properties/AssemblyInfo.cs

This file was deleted.

8 changes: 8 additions & 0 deletions src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
<PackageReference Remove="SIL.ReleaseTasks" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Sentry" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Testing" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Tests" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Extensions.Logging.Tests" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Maui.Tests" PublicKey="$(SentryPublicKey)" />
</ItemGroup>

<ItemGroup>
<AndroidLibrary Include="$(SentryAndroidSdkDirectory)sentry-$(SentryAndroidSdkVersion).jar" />
<AndroidLibrary Include="$(SentryAndroidSdkDirectory)sentry-android-core-$(SentryAndroidSdkVersion).aar" />
Expand Down
5 changes: 0 additions & 5 deletions src/Sentry.Bindings.Cocoa/Properties/AssemblyInfo.cs

This file was deleted.

8 changes: 8 additions & 0 deletions src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
<Using Remove="*" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Sentry" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Testing" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Tests" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Extensions.Logging.Tests" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Maui.Tests" PublicKey="$(SentryPublicKey)" />
</ItemGroup>

<ItemGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">

<!-- Set up the binding project. -->
Expand Down
2 changes: 0 additions & 2 deletions src/Sentry.DiagnosticSource/Properties/AssemblyInfo.cs

This file was deleted.

8 changes: 8 additions & 0 deletions src/Sentry.DiagnosticSource/Sentry.DiagnosticSource.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@

<ItemGroup>
<ProjectReference Include="..\..\src\Sentry\Sentry.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="4.5.0" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Sentry.DiagnosticSource.IntegrationTests" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.DiagnosticSource.Tests" PublicKey="$(SentryPublicKey)" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion src/Sentry.EntityFramework/Properties/AssemblyInfo.cs

This file was deleted.

7 changes: 6 additions & 1 deletion src/Sentry.EntityFramework/Sentry.EntityFramework.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

<ItemGroup>
<ProjectReference Include="..\Sentry\Sentry.csproj" />
</ItemGroup>

<ItemGroup>
<Using Include="System.Data" />
<Using Include="System.Data.Common" />
<Using Include="System.Data.Entity.Infrastructure.Interception" />
Expand All @@ -17,7 +19,6 @@
<Using Include="Sentry.EntityFramework.ErrorProcessors" />
<Using Include="Sentry.Extensibility" />
<Using Include="Sentry.Integrations" />

</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
Expand All @@ -31,4 +32,8 @@
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Sentry.EntityFramework.Tests" PublicKey="$(SentryPublicKey)" />
</ItemGroup>

</Project>
11 changes: 0 additions & 11 deletions src/Sentry.Extensions.Logging/Properties/AssemblyInfo.cs

This file was deleted.

14 changes: 14 additions & 0 deletions src/Sentry.Extensions.Logging/Sentry.Extensions.Logging.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,18 @@
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Sentry.AspNetCore" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.AspNetCore.Tests" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.AspNetCore.Grpc" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.AspNetCore.Grpc.Tests" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.AzureFunctions.Worker" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.AzureFunctions.Worker.Tests" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.DiagnosticSource.IntegrationTests" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Google.Cloud.Functions" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Google.Cloud.Functions.Tests" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Extensions.Logging.EfCore.Tests" PublicKey="$(SentryPublicKey)" />
<InternalsVisibleTo Include="Sentry.Extensions.Logging.Tests" PublicKey="$(SentryPublicKey)" />
</ItemGroup>

</Project>
Loading

0 comments on commit f1a07b5

Please sign in to comment.