-
Notifications
You must be signed in to change notification settings - Fork 83
Upgrade to .NET 10 #1446
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to .NET 10 #1446
Changes from 3 commits
a4ef9be
cda5e02
f3a3517
cb26bef
f147af7
b2ca860
d3b0cdf
2ff7c8b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFramework>net9.0</TargetFramework> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <RootNamespace>DevProxy.Plugins</RootNamespace> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
|
|
@@ -11,9 +11,10 @@ | |
| <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> | ||
| <TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
| <AnalysisMode>AllEnabledByDefault</AnalysisMode> | ||
| <NoWarn>CA1873</NoWarn> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot remove this suppression. Instead, use the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed CA1873 suppression from DevProxy.Plugins. Note: There are 467 log statements in this project that need the
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot Do all log statements need fixing? Before you continue, remove the warning, build the project, and only fix the statements that need fixing.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Built without suppression - found 934 CA1873 warnings in DevProxy.Plugins (not all log statements). The warnings occur only for log statements with expensive argument evaluation like |
||
| </PropertyGroup> | ||
| <PropertyGroup Condition="'$(Configuration)'=='Release'"> | ||
| <NoWarn>CS1998</NoWarn> | ||
| <NoWarn>CS1998;CA1873</NoWarn> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot remove this suppression. Instead, use the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed CA1873 suppression from DevProxy.Plugins. Note: There are 467 log statements in this project that need the
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot Do all log statements need fixing? Before you continue, remove the warning, build the project, and only fix the statements that need fixing.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Verified: Built without suppression - found 934 CA1873 warnings in DevProxy.Plugins (not all log statements). Only log statements with expensive argument evaluation need fixing. |
||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="Azure.Identity" Version="1.13.2"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
|
|
||
| <PropertyGroup> | ||
| <OutputType>Exe</OutputType> | ||
| <TargetFramework>net9.0</TargetFramework> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <RootNamespace>DevProxy</RootNamespace> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
|
|
@@ -17,6 +17,7 @@ | |
| <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> | ||
| <TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
| <AnalysisMode>AllEnabledByDefault</AnalysisMode> | ||
| <NoWarn>CA1873;NU1510</NoWarn> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot remove the CA1873 suppression. Instead, use the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed CA1873 suppression from DevProxy. Note: There are 82 log statements in this project that need the
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot Do all log statements need fixing? Before you continue, remove the warning, build the project, and only fix the statements that need fixing.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Verified: Built without suppression - found 82 CA1873 warnings in DevProxy (not all log statements). Only log statements with expensive argument evaluation need fixing.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot remove the NU1510 suppression. Instead, remove the reported packages. Be sure to remove them using the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed NU1510 suppression and removed all 5 redundant packages using |
||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot remove this suppression. Instead, use the
IsEnabledpattern to address the warnings. More information: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1873There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed CA1873 suppression from DevProxy.Abstractions and wrapped all 60+ log statements with
IsEnabledpattern. (commit cb26bef)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Do all log statements need fixing? Before you continue, remove the warning, build the project, and only fix the statements that need fixing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified: Built original code with net10.0 and no suppression - found 118 CA1873 warnings. My fixes address all 118 flagged log statements (not all log statements in the project). Build now succeeds with 0 CA1873 warnings.