-
Notifications
You must be signed in to change notification settings - Fork 43
Update to 4.14 version #228
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
Open
Sicos1977
wants to merge
12
commits into
ashmind:main
Choose a base branch
from
Sicos1977:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
The project has been updated to target .NET 8.0, replacing .NET Core 3.1 and .NET Framework 4.6.x across multiple project files. Dependencies in `packages.lock.json` have been updated to their latest versions, including changes to `contentHash` values. The `MirrorSharp.AspNetCore` and `MirrorSharp.Owin` projects have had their dependencies streamlined, with some removed and others added, such as `Microsoft.IO.Redist` and `System.Diagnostics.EventLog`. Additionally, `System.Security.Cryptography` packages have been updated, and `System.IO.Pipelines` has been upgraded to version 9.0.0. The `System.Buffers` and `System.Memory` packages have also been updated to newer versions, ensuring compatibility with the updated target framework.
Introduces the `MirrorSharp.Internal.Roslyn414` namespace to support version 4.14 of internal Roslyn components. Updates assembly loading logic in `RoslynInternals.cs` and adds a new project file `Internal.Roslyn414.csproj` with dependencies on Microsoft.CodeAnalysis 4.14.0. New classes for code actions, diagnostics, and signature help have been added, enhancing functionality. The `packages.lock.json` and solution file `MirrorSharp.sln` have been updated to include the new project and its dependencies, improving overall maintainability.
Corrected the variable name `SingatureHelpProviderResolver` to `SignatureHelpProviderResolver` in the `RoslynInternals` class. This change was applied in the constructor, property declaration, and usage in the `RoslynLanguageBase` class to ensure consistency and maintainability.
This commit changes the target framework from `net8.0` to `net6.0` across multiple files, including `packages.lock.json` and `AspNetCore.csproj`. New dependencies have been added, such as `MirrorSharp.Common` with a version constraint of `[3.0.10, )`, while several existing dependencies, including `System.Text.Json` and `System.IO.Pipelines`, have been downgraded from `9.0.5` to `9.0.2`. Additionally, the `Tests.csproj` file has been updated to target `net48`, and nullable reference types have been enabled in the `PublicAPI.Shipped.txt` file. Comments in `SignatureHelpProviderWrapper.cs` have been clarified without changing functionality. These changes aim to improve compatibility and address issues with newer library versions.
Upgraded key dependencies, including `System.Text.Json` (9.0.0 → 10.0.0), `Newtonsoft.Json` (13.0.3 → 13.0.4), and `xUnit` (2.4.1 → 2.9.3). Addressed vulnerabilities in older versions and ensured compatibility with the latest .NET ecosystem. Refactored several classes to use C# primary constructors, reducing boilerplate and improving readability. Updated `packages.lock.json` to reflect dependency changes and added `Microsoft.TestPlatform.ObjectModel` as a transitive dependency. Simplified dependency injection patterns, improved resource management, and modernized syntax with features like `readonly struct` and expression-bodied members. Enhanced testing infrastructure and added `coverlet.collector` for code coverage. Aligned project files with updated dependencies, added metadata for scoped assets, and ensured consistency across the solution. Addressed potential security vulnerabilities and improved maintainability.
Refactored code for better readability and maintainability: - Introduced `#region` directives to group related code. - Standardized formatting and added braces for consistency. - Simplified property initialization and method expressions. Enhanced exception handling and fallback logic: - Improved `LoadInternalsAssemblyWithDependenciesSlowUncached` to handle older Roslyn versions gracefully. Updated `SignatureHelpProviderWrapper`: - Used `MemberDisplayOptions.Default` for initialization. - Refactored `SignatureHelpItemsData` construction with named parameters. - Simplified `IsRetriggerCharacter` and `IsTriggerCharacter`. Streamlined namespaces and dependencies: - Added `System.Runtime.Loader` and updated `using` directives. Performed general cleanup: - Removed redundant comments and unused code. - Ensured consistency across `Roslyn414` and `Roslyn50` namespaces.
Refactored RoslynInternals.cs by removing deprecated fallback logic and commenting out unused methods. Updated assembly name resolution with modern C# pattern matching for clarity. Enhanced exception messages for unsupported Roslyn versions. Reformatted MirrorSharpDiagnosticAnalyzerService.cs for consistent brace placement, improving readability without functional changes. Refactored SignatureHelpProviderWrapperResolver.cs to make dependency injection explicit with `[ImportingConstructor]` and moved field initialization to the constructor body. Added ReSharper directives in WorkspaceAnalyzerOptionsInternals.cs to suppress unused member warnings. General improvements include better readability, maintainability, and debugging context.
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.
Updated to the final 4.12 version