Skip to content

Commit

Permalink
Switch from MSBuild friend assembly to AssemblyInfo friend
Browse files Browse the repository at this point in the history
This is for consistent with other projects
  • Loading branch information
joelverhagen committed Aug 3, 2024
1 parent e1e4b64 commit 04a00d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/NuGetGallery.Services/NuGetGallery.Services.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@
<Description>Services library for NuGet Gallery Frontend and Backend</Description>
</PropertyGroup>

<ItemGroup Condition="!$(DefineConstants.Contains('SIGNED_BUILD'))">
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>NuGetGallery.Facts</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

<ItemGroup Condition="$(DefineConstants.Contains('SIGNED_BUILD'))">
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>NuGetGallery.Facts, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
<Compile Remove="AccountManagement\*.cs" />
<Compile Remove="Authentication\**\*.cs" />
Expand Down
10 changes: 10 additions & 0 deletions src/NuGetGallery.Services/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System.Runtime.CompilerServices;

#if SIGNED_BUILD
[assembly: InternalsVisibleTo("NuGetGallery.Facts, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]
#else
[assembly: InternalsVisibleTo("NuGetGallery.Facts")]
#endif

0 comments on commit 04a00d5

Please sign in to comment.