Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade packages #1279

Merged
merged 1 commit into from Dec 29, 2023
Merged

Upgrade packages #1279

merged 1 commit into from Dec 29, 2023

Conversation

Rob-Hague
Copy link
Collaborator

I did not upgrade Meziantou.Analyzer because the release notes show some new analyzers so it probably needs more attention there.

@@ -34,9 +34,8 @@
Use fixed version of analyzers.
-->
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0-preview1.23165.1" PrivateAssets="all" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove reference to Microsoft.CodeAnalysis.NetAnalyzers (use the stable version by default)

You should not remove this package because of .NET Framework do not have analyzers by default, should you?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to https://www.nuget.org/packages/Microsoft.CodeAnalysis.NetAnalyzers, it is included by virtue of <EnableNETAnalyzers>true</EnableNETAnalyzers> on line 21

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I think you still need to install Nuget. Can you check it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The packages README says

You do not need to manually install this NuGet package to your project if you are using .NET5 SDK or later

We are using .NET8 SDK. An example of a CA analyzer on net462 target:

image

@WojciechNagorski WojciechNagorski merged commit 4c2dcd5 into sshnet:develop Dec 29, 2023
1 check passed
@Rob-Hague Rob-Hague deleted the packages branch December 29, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants