Browse Source

Fix CA1416: Properly specify SupportedOSPlatform in all platform-specific assemblies.

pull/2650/head
Siegfried Pammer 3 years ago
parent
commit
9b36f33f5c
  1. 3
      ILSpy.BamlDecompiler/Properties/AssemblyInfo.cs
  2. 4
      ILSpy.ReadyToRun/Properties/AssemblyInfo.cs
  3. 2
      ILSpy.Tests/ILSpy.Tests.csproj
  4. 4
      ILSpy/Properties/AssemblyInfo.template.cs
  5. 14
      TestPlugin/Properties/AssemblyInfo.cs
  6. 1
      TestPlugin/TestPlugin.csproj

3
ILSpy.BamlDecompiler/Properties/AssemblyInfo.cs

@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
#endregion
@ -21,6 +22,8 @@ using System.Runtime.InteropServices; @@ -21,6 +22,8 @@ using System.Runtime.InteropServices;
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]
[assembly: TargetPlatform("Windows10.0")]
[assembly: SupportedOSPlatform("Windows7.0")]
[assembly: InternalsVisibleTo("ILSpy.BamlDecompiler.Tests")]

4
ILSpy.ReadyToRun/Properties/AssemblyInfo.cs

@ -3,6 +3,10 @@ using System.Reflection; @@ -3,6 +3,10 @@ using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
[assembly: TargetPlatform("Windows10.0")]
[assembly: SupportedOSPlatform("Windows7.0")]
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information

2
ILSpy.Tests/ILSpy.Tests.csproj

@ -10,8 +10,6 @@ @@ -10,8 +10,6 @@
<NoWarn>1701;1702;1705,67,169,1058,728,1720,649,168,251</NoWarn>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<EnableDefaultItems>false</EnableDefaultItems>
<RootNamespace>ICSharpCode.ILSpy.Tests</RootNamespace>

4
ILSpy/Properties/AssemblyInfo.template.cs

@ -6,6 +6,7 @@ using System.Reflection; @@ -6,6 +6,7 @@ using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
#endregion
@ -28,6 +29,9 @@ using System.Runtime.InteropServices; @@ -28,6 +29,9 @@ using System.Runtime.InteropServices;
[assembly: AssemblyInformationalVersion(RevisionClass.FullVersion + "-$INSERTSHORTCOMMITHASH$")]
[assembly: NeutralResourcesLanguage("en-US")]
[assembly: SupportedOSPlatform("Windows7.0")]
[assembly: TargetPlatform("Windows10.0")]
[assembly: InternalsVisibleTo("ILSpy.AddIn, PublicKey=0024000004800000940000000602000000240000525341310004000001000100653c4a319be4f524972c3c5bba5fd243330f8e900287d9022d7821a63fd0086fd3801e3683dbe9897f2ecc44727023e9b40adcf180730af70c81c54476b3e5ba8b0f07f5132b2c3cc54347a2c1a9d64ebaaaf3cbffc1a18c427981e2a51d53d5ab02536b7550e732f795121c38a0abfdb38596353525d034baf9e6f1fd8ac4ac")]
[assembly: InternalsVisibleTo("ILSpy.Tests, PublicKey=00240000048000009400000006020000002400005253413100040000010001004dcf3979c4e902efa4dd2163a039701ed5822e6f1134d77737296abbb97bf0803083cfb2117b4f5446a217782f5c7c634f9fe1fc60b4c11d62c5b3d33545036706296d31903ddcf750875db38a8ac379512f51620bb948c94d0831125fbc5fe63707cbb93f48c1459c4d1749eb7ac5e681a2f0d6d7c60fa527a3c0b8f92b02bf")]

14
TestPlugin/Properties/AssemblyInfo.cs

@ -8,23 +8,11 @@ using System.Runtime.InteropServices; @@ -8,23 +8,11 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TestPlugin")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TestPlugin")]
[assembly: AssemblyCopyright("Copyright 2011")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]
// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: ComVisible(false)]

1
TestPlugin/TestPlugin.csproj

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<AssemblyName>Test.Plugin</AssemblyName>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<UseWpf>true</UseWpf>
</PropertyGroup>

Loading…
Cancel
Save