Closed 0xced closed 11 months ago
I can repro it as you say, when I use dotnet build
. Thank you for this report.
@sharwell do you have any guesses as to what breaking change may have occurred in Roslyn between the 4.5.0 and 4.6.0 versions?
I've started running into this as well, in a .NET 8 RC 1 project. Oddly, it only appears in VS Code, not with dotnet build
... 🤔
Actual behavior
Warning
PInvoke006
occurs when using the latest compiler toolset (i.e. Microsoft.Net.Compilers.Toolset 4.6.0).Expected behavior
No warning is produced.
Repro steps
MyProject.csproj
content: