-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Open
Milestone
Description
Version Used:
.NET SDK 9.0.200
Repro:
using System.Runtime.InteropServices;
namespace ConsoleApp1;
public static class InfoBox
{
[DllImport("user32.dll", CharSet = CharSet.Unicode)]
static extern int InfoBoxA(nint hWnd,
string lpText,
string lpCaption,
uint uType);
}
Steps to Reproduce:
- Create a project with the above repro in Visual Studio 2022.
- SYSLIB1054: Respond to the Quick Action tip (Yellow light bulb) on the method by accepting the suggestion.
- Recognise the new error CS8796
2025-03-05.Accepting.the.suggestion.from.Quick.Action.tip.results.in.compiler.error.CS8796.mp4
Diagnostic Id:
CS8796
Expected Behavior:
No error if Quick Action suggestion is accepted
Actual Behavior:
Accepting the suggestion from Quick Action tip results in compiler error CS8796
Metadata
Metadata
Assignees
Type
Projects
Status
No status