Bump dotnet-sdk from 11.0.100-preview.1.26104.118 to 11.0.100-preview.2.26159.112#7522
Conversation
Bumps [dotnet-sdk](https://github.com/dotnet/sdk) from 11.0.100-preview.1.26104.118 to 11.0.100.pre.preview.2.26159.112. - [Release notes](https://github.com/dotnet/sdk/releases) - [Commits](dotnet/sdk@v11.0.100-preview.1.26104.118...v11.0.100-preview.2.26159.112) --- updated-dependencies: - dependency-name: dotnet-sdk dependency-version: 11.0.100.pre.preview.2.26159.112 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
|
We are getting now IDE0305 while we didn't set this to warning in any place that I can see. Not sure if it's a Roslyn regression between P1 and P2. I'm fine fixing the extra diagnostics though. |
|
What is a repro case? |
|
@CyrusNajmabadi I haven't worked towards getting a minimal repro. So this dependabot branch is all I got. On Preview 1 we didn't get the diagnostic (as we are not enabling it), but on Preview 2 we get a diagnostic. |
|
I have seen similar behavior on some other repos, bumping preview 1 to 2 had many IDEXXX analyzers now triggering. Maybe you "just" fixed something. |
|
Without actually spring the case, it's nearly impossible to answer:
|
|
src/Adapter/MSTestAdapter.PlatformServices/Helpers/ManagedNameParser.cs(125,48): error IDE0305: (NETCORE_ENGINEERING_TELEMETRY=Build) Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0305) If you just take the code there you have your repro |
|
That's this line: I don't see any reason to not get the analyzer suggestion there. As an example, you can now write that more simply as: Why do you think this is a regression to get this analyzer firing here? |
|
The trigger seems correct to me, I think we are more suprised to have new issues showing up by a bump of preview version |
|
I don't see where we are setting the severity of the analyzer to warning. IDExxxx should all be suggestion by default unless explicitly enabled right? That's what surprised me. In addition, there were no changes in that specific analyzer between P1 and P2. Maybe I could be wrong and there is something that sets it to warning, but I don't see it. |
|
Note that in Preview 1, I'm able to see the diagnostic in IDE as a suggestion. So the analyzer was already reporting in this case. It's just that the severity is changing to warning out of sudden. |
|
In P1, this is the globalconfig file that's used:
In P2, it's:
The full list of And the full list of Interestingly, the one in P1 is only about CAxxxx rules, and the one in P2 is only about IDExxxx rules. So it's not only about IDExxxx rules now being enabled as warning by default out of sudden (which may or may not be expected - I'll need to dig further to understand). But it seems to me like now CAxxxx rules that were enabled are warnings might no longer be enabled. The main change I can see is the bump of Adding @baronfel as well. |
|
In P2, NetAnalyzers (CAxxxx) is resolving So that's why CAxxxx are no longer enabled. Note that the generation of the globalconfig files relies on the release numbers in I haven't yet tried to dig into why IDExxxx are now enabled and whether that's expected. In the process of doing that. |
|
<ItemGroup Condition="Exists('$(_GlobalAnalyzerConfigFile_MicrosoftCodeAnalysisCSharpCodeStyle)') and
('$(AnalysisLevelStyle)' != '$(AnalysisLevel)' or '$(AnalysisModeStyle)' != '$(AnalysisMode)' or ('$(EffectiveAnalysisLevelStyle)' != '' and $([MSBuild]::VersionGreaterThanOrEquals('$(EffectiveAnalysisLevelStyle)', '11.0'))))">
<EditorConfigFiles Include="$(_GlobalAnalyzerConfigFile_MicrosoftCodeAnalysisCSharpCodeStyle)" />
</ItemGroup>I cannot make sense of most parts of the condition, but the important part, I think, is the I think there are two things here:
I opened: |
Bumps dotnet-sdk from 11.0.100-preview.1.26104.118 to 11.0.100-preview.2.26159.112.
Release notes
Sourced from dotnet-sdk's releases.
Commits
b8600c8[release/11.0.1xx-preview2] Source code updates from dotnet/dotnet (#53077)b234932Update dependencies from build 3029085f504a3Backflow from https://github.com/dotnet/dotnet / e1a0fb2 build 30290864a0291AddEnableUnsafeAnalyzerto CSC Template0ebb6a1Update dependencies from build 3023913d89b34Backflow from https://github.com/dotnet/dotnet / 1db02cb build 302391d6def13Port dotnet/dotnet#4642 (#53194)19ca57bPort dotnet/dotnet#4642e9d68d8[main] Source code updates from dotnet/dotnet (#53001)63ac37eRemove 'Target net11.0' description from web template help approvalsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)