Skip to content

Commit

Permalink
Maintenance: SupportedOSPlatform attribute
Browse files Browse the repository at this point in the history
Added the `SupportedOSPlatform` attribute to suppress build warning
CA1416.
  • Loading branch information
uxmal committed Aug 9, 2024
1 parent 9d8339d commit 50762a2
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/Arch/M68k.Design/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Reko;
using Reko;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
Expand All @@ -14,6 +15,7 @@
[assembly: AssemblyCopyright(AssemblyMetadata.Copyright)]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: SupportedOSPlatform("windows")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
Expand Down
2 changes: 2 additions & 0 deletions src/Arch/MicrochipPIC.Design/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
Expand All @@ -36,6 +37,7 @@
[assembly: AssemblyCopyright("Copyright © 2017-2024 Christian Hostelet - based on work from John Källén")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: SupportedOSPlatform("windows")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
Expand Down
2 changes: 2 additions & 0 deletions src/Arch/PowerPC.Design/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;

[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]

Expand All @@ -16,6 +17,7 @@
[assembly: AssemblyCopyright(AssemblyMetadata.Copyright)]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: SupportedOSPlatform("windows")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
Expand Down
2 changes: 2 additions & 0 deletions src/Arch/X86.Design/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
Expand All @@ -14,6 +15,7 @@
[assembly: AssemblyCopyright(AssemblyMetadata.Copyright)]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: SupportedOSPlatform("windows")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
Expand Down
4 changes: 3 additions & 1 deletion src/UiPrototype/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
Expand All @@ -13,6 +14,7 @@
[assembly: AssemblyCopyright(Reko.AssemblyMetadata.Copyright)]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: SupportedOSPlatform("windows")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ namespace Reko.UserInterfaces.WindowsForms.Controls
/// <summary>
/// Displays an image map graphically.
/// </summary>
[SupportedOSPlatform("windows")]
public class ImageMapControl : Control
{
private SegmentMap map;
Expand Down
1 change: 0 additions & 1 deletion src/UserInterfaces/WindowsForms/Controls/MemoryControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,6 @@ private void vscroller_Scroll(object sender, ScrollEventArgs e)
}
}

[SupportedOSPlatform("windows")]
public class MemoryControlPainter
{
private MemoryControl ctrl;
Expand Down
2 changes: 2 additions & 0 deletions src/UserInterfaces/WindowsForms/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;

[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("windows")]

Expand All @@ -16,6 +17,7 @@
[assembly: AssemblyCopyright(AssemblyMetadata.Copyright)]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: SupportedOSPlatform("windows")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,9 @@
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Versioning;
using System.Text;

namespace Reko.UserInterfaces.WindowsForms
{
[SupportedOSPlatform("windows")]
public class WindowsFormsRegistryService : IRegistryService
{
private RegistryKey hkcu;
Expand Down

0 comments on commit 50762a2

Please sign in to comment.