Browse Source

Moved InternalsVisibleTo

BaronGreenback 4 năm trước cách đây
mục cha
commit
49e3b70722

+ 0 - 2
Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs

@@ -43,8 +43,6 @@ using Microsoft.OpenApi.Models;
 using Swashbuckle.AspNetCore.SwaggerGen;
 using Swashbuckle.AspNetCore.SwaggerGen;
 using AuthenticationSchemes = Jellyfin.Api.Constants.AuthenticationSchemes;
 using AuthenticationSchemes = Jellyfin.Api.Constants.AuthenticationSchemes;
 
 
-[assembly: InternalsVisibleTo("Jellyfin.Api.Tests")]
-
 namespace Jellyfin.Server.Extensions
 namespace Jellyfin.Server.Extensions
 {
 {
     /// <summary>
     /// <summary>

+ 0 - 6
Jellyfin.Server/Jellyfin.Server.csproj

@@ -73,10 +73,4 @@
     </None>
     </None>
   </ItemGroup>
   </ItemGroup>
 
 
-  <ItemGroup>
-    <AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
-      <_Parameter1>Jellyfin.Api.Tests</_Parameter1>
-    </AssemblyAttribute>
-  </ItemGroup>
-  
 </Project>
 </Project>

+ 3 - 0
Jellyfin.Server/Properties/AssemblyInfo.cs

@@ -1,5 +1,6 @@
 using System.Reflection;
 using System.Reflection;
 using System.Resources;
 using System.Resources;
+using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 using System.Runtime.InteropServices;
 
 
 // General Information about an assembly is controlled through the following
 // General Information about an assembly is controlled through the following
@@ -19,3 +20,5 @@ using System.Runtime.InteropServices;
 // to COM components.  If you need to access a type in this assembly from
 // to COM components.  If you need to access a type in this assembly from
 // COM, set the ComVisible attribute to true on that type.
 // COM, set the ComVisible attribute to true on that type.
 [assembly: ComVisible(false)]
 [assembly: ComVisible(false)]
+
+[assembly: InternalsVisibleTo("Jellyfin.Api.Tests")]