Repository navigation
Code cleanup - #1704
Merged
Merged
Code cleanup#1704
Conversation
- Updated `Core.csproj`, `PackageViewModel.csproj`, and `Types.csproj` to remove `netstandard2.1`, retaining only `net9.0` and `net8.0`. - Modified `FileHelper.cs` to conditionally include `System.Drawing` for Windows compatibility.
This change simplifies the code, improves readability, and reduces boilerplate code related to null argument handling. Minor formatting adjustments were also made in some files.
Updated project structure to replace embedded resources with project references to `NuGetPeGenerators`. Modified `CommonAssemblyInfo.cs` to include necessary namespaces. Removed auto-generated content from several `.Designer.cs` files, indicating a regeneration process. Introduced `NuGetPeGenerators.csproj` for a new analyzer targeting `netstandard2.0` and added `ResXCompositeFormatGenerator.cs` for improved resource handling and string interpolation.
This commit removes the inclusion of the `Resources.Designer.cs` file from the project items, indicating that it is no longer part of the compilation process.
- Added a new `<ItemGroup>` in `NuGetPackageExplorer.WinUI.csproj`. - Included a `<ProjectReference>` to `NuGetPeGenerators.csproj` as an analyzer. - Added an `<AdditionalFiles>` entry for `.resx` files in the `PackageExplorer` directory. - This change addresses a workaround for asset generation issues in the Uno platform.
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-rock-09b78921e-1704.westus2.azurestaticapps.net |
Introduce a private static readonly field for resource strings, replacing direct public static property access. This change enhances encapsulation and improves performance by caching the resource string value.
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-rock-09b78921e-1704.westus2.azurestaticapps.net |
- Removed specific version numbers from multiple `PackageReference` entries across various project files for greater flexibility in package management. - Updated copyright year in `Directory.Build.props` from 2024 to 2025. - Introduced a new `Directory.Packages.props` file to centralize package version management.
Updated method signatures in `PackageHealthContentHelper.cs` to support nullable return types for several validation methods. Removed unused `using` directives to clean up the code and improve overall robustness.
- Enable central package transitive pinning in `Directory.Packages.props`. - Update NuGet dependency version from `6.13.1` to `6.13.2`. - Add new package versions: `System.Formats.Asn1`, `System.Net.Http`, `System.Private.Uri`, `System.Security.Cryptography.Xml`, and `System.Text.RegularExpressions`. - Comment out "NuGet CI packages" source in `NuGet.config`. - Introduce `packageSourceMapping` and set aggregate source as active.
This commit adds a new package source pattern for "Microsoft.DiaSymReader.Converter" under the "dotnet-tools" package source in the NuGet.config file.
- Updated `Microsoft.DiaSymReader.Converter` to version `1.1.0-beta2-25127-02`. - Updated `Microsoft.SymbolStore` to version `8.0.0-preview.24273.2`. - Modified `NuGet.config` to include specific package patterns for `Microsoft.FileFormats`, `Microsoft.SymbolStore`, and `Microsoft.DiaSymReader.Converter` in the `dotnet-tools` source mapping.
clairernovotny
enabled auto-merge
March 5, 2025 23:47
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-rock-09b78921e-1704.westus2.azurestaticapps.net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Classification
Code cleanup and standardization of null checks across the project.
PR Summary
This pull request updates the project to improve code quality by standardizing null checks and modifying class declarations for better performance. Key changes include:
.editorconfig: Modified severity levels for several code analysis rules.AssemblyMetaDataInfo.cs,AssemblyMetadataParser.cs,AssemblyMetadataReader.cs: Updated null checks to useArgumentNullException.ThrowIfNull.CommonAssemblyInfo.cs: Added whitespace before theusingdirective.PackageExtensions.cs,PluginExtensions.cs,StreamExtensions.cs: Changed class declarations tosealed classand standardized null checks.Core.csprojandTypes.csproj: Removednetstandard2.1from target frameworks and added project references for analyzers.