Skip to content

Multiple BCL0015 errors from Microsoft.DotNet.CodeAnalysis in libraries #33286

@ViktorHofer

Description

@ViktorHofer

I believe that the Microsoft.DotNet.CodeAnalysis analyzer wasn't running for some projects. Noticed this while working on #33242.

C:\git\runtime4\src\libraries\Common\src\Interop\Windows\User32\Interop.GetKeyState.cs(11,9): error BCL0015: user32.dll!GetKeyState is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Console\src\System.Console.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\Shell32\Interop.ShellExecuteExW.cs(54,9): error BCL0015: shell32.dll!ShellExecuteExW is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\User32\Interop.EnumWindows.cs(14,9): error BCL0015: user32.dll!EnumWindows is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\User32\Interop.GetWindow.cs(12,9): error BCL0015: user32.dll!GetWindow is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\User32\Interop.GetWindowLong.cs(12,9): error BCL0015: user32.dll!GetWindowLongW is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\User32\Interop.GetWindowTextLengthW.cs(12,9): error BCL0015: user32.dll!GetWindowTextLengthW is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\User32\Interop.GetWindowTextW.cs(13,9): error BCL0015: user32.dll!GetWindowTextW is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\User32\Interop.GetWindowThreadProcessId.cs(12,9): error BCL0015: user32.dll!GetWindowThreadProcessId is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\User32\Interop.GetWindowThreadProcessId.cs(15,9): error BCL0015: user32.dll!GetWindowThreadProcessId is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\User32\Interop.PostMessage.cs(12,9): error BCL0015: user32.dll!PostMessageW is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\User32\Interop.PostMessage.cs(15,9): error BCL0015: user32.dll!PostMessageW is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\User32\Interop.IsWindowVisible.cs(12,9): error BCL0015: user32.dll!IsWindowVisible is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\User32\Interop.WaitForInputIdle.cs(13,9): error BCL0015: user32.dll!WaitForInputIdle is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Diagnostics.Process\src\System.Diagnostics.Process.csproj]
C:\git\runtime4\src\libraries\Common\src\System\Net\Http\aspnetcore\Quic\Interop\Interop.MsQuic.cs(13,9): error BCL0015: msquic.dll!MsQuicOpen is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Net.Http\src\System.Net.Http.csproj]
C:\git\runtime4\src\libraries\Common\src\Interop\Windows\Advapi32\Interop.LsaNtStatusToWinError.cs(12,9): error BCL0015: advapi32.dll!LsaNtStatusToWinError is not supported on one\more targeted platforms. [C:\git\runtime4\src\libraries\System.Security.Principal.Windows\src\System.Security.Principal.Windows.csproj]
C:\git\runtime4\src\libraries\Common\src\System\Diagnostics\TraceListenerHelpers.Windows.cs(28,38): error CS0103: The name 'Process' does not exist in the current context [C:\git\runtime4\src\libraries\System.Diagnostics.TraceSource\src\System.Diagnostics.TraceSource.csproj]

@stephentoub if you have time, can you please help and spot check?

cc @ericstj @safern

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions