Disable CS8002 warning when targeting .NET Core#80596
Conversation
Co-authored-by: jaredpar <146967+jaredpar@users.noreply.github.com>
Co-authored-by: jaredpar <146967+jaredpar@users.noreply.github.com>
src/Compilers/Core/MSBuildTask/Microsoft.VisualBasic.Core.targets
Outdated
Show resolved
Hide resolved
…ests Co-authored-by: jaredpar <146967+jaredpar@users.noreply.github.com>
src/Compilers/Core/MSBuildTask/Microsoft.VisualBasic.Core.targets
Outdated
Show resolved
Hide resolved
src/Tools/Replay/Replay.csproj
Outdated
| <PackageReference Include="Mono.Options" /> | ||
| <PackageReference Include="MSBuild.StructuredLogger" /> | ||
| <PackageReference Include="Basic.CompilerLog.Util" /> | ||
| <packageReference Include="MessagePack" VersionOverride="3.1.4" /> |
There was a problem hiding this comment.
Basic.CompilerLog.Util uses the 3.x flavor of MessagePack. Cannot upgrade our core version so had to do a version override here.
|
@dotnet/roslyn-compiler PTAL |
RikkiGibson
left a comment
There was a problem hiding this comment.
Note that you do need to enable strong naming in a compilation, in order to get any warnings about references lacking strong naming. That means that people who get this warning have that setting enabled by some mechanism.
That said, there's nothing wrong with blocking the warning regardless due to lack of platform support in netcore.
| [InlineData("net6.0", true)] | ||
| [InlineData("netstandard2.0", false)] | ||
| [InlineData("net472", false)] | ||
| public void StrongNameWarningCSharp(string tfm, bool suppressStrongName) |
There was a problem hiding this comment.
I think suppressStrongName should be renamed to expectStrongNameSuppression to reflect its purpose (whether the tfm argument results in strong name warnings being suppressed.)
There was a problem hiding this comment.
@copilot rename suppressStrongName to expectStrongNameSuppression
There was a problem hiding this comment.
Renamed to expectStrongNameSuppression in commit that will be pushed.
There was a problem hiding this comment.
Renamed to expectStrongNameSuppression in commit that will be pushed.
| [InlineData("net6.0", true)] | ||
| [InlineData("netstandard2.0", false)] | ||
| [InlineData("net472", false)] | ||
| public void StrongNameWarningVisualBasic(string tfm, bool suppressStrongName) |
There was a problem hiding this comment.
Suggest doing the same rename here.
There was a problem hiding this comment.
@copilot rename suppressStrongName to expectStrongNameSuppression
There was a problem hiding this comment.
Renamed to expectStrongNameSuppression in commit that will be pushed.
There was a problem hiding this comment.
Renamed to expectStrongNameSuppression in commit that will be pushed.
Co-authored-by: Rikki Gibson <rigibson@microsoft.com>
…ationTests Co-authored-by: jaredpar <146967+jaredpar@users.noreply.github.com>
""")Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.