From 73fe2f2505884c2a6d90cf9798c273cc9aedd563 Mon Sep 17 00:00:00 2001 From: Rogatnev Sergey Date: Mon, 20 Jul 2026 20:32:13 +0700 Subject: [PATCH] downgrade sdk version to 2025.1.9 --- CHANGELOG.md | 4 ++ gradle.properties | 4 +- src/dotnet/Plugin.props | 2 +- .../AutoMapperCacheTests.cs | 51 +++++++++---------- .../Registrations/AutoMapperCache.cs | 3 +- 5 files changed, 32 insertions(+), 32 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcdc92f..2980e90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [0.2.1] - 2026-07-20 +### Changed +- Downgraded ReSharper SDK to 2025.1.9 + ## [0.2.0] - 2026-06-30 ### Changed - **Breaking Change**: Removed support for Context Actions (`Alt+Enter`). The plugin now integrates exclusively with the standard "Find Usages" action. diff --git a/gradle.properties b/gradle.properties index b923909..bb6eaf2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ DotnetPluginId=ReSharperPlugin.AutoMapper.FindUsage DotnetSolution=ReSharperPlugin.AutoMapper.FindUsage.sln RiderPluginId=me.rogatnev.automapper.findusage -PluginVersion=0.2.0 +PluginVersion=0.2.1 BuildConfiguration=Debug @@ -17,7 +17,7 @@ PublishToken="_PLACEHOLDER_" # Release: 2020.2 # EAP: 2020.3-EAP2-SNAPSHOT # Nightly: 2020.3-SNAPSHOT -ProductVersion=2025.3 +ProductVersion=2025.1.9 # Kotlin 1.4 will bundle the stdlib dependency by default, causing problems with the version bundled with the IDE # https://blog.jetbrains.com/kotlin/2020/07/kotlin-1-4-rc-released/#stdlib-default diff --git a/src/dotnet/Plugin.props b/src/dotnet/Plugin.props index cca1a49..c3c3ae0 100644 --- a/src/dotnet/Plugin.props +++ b/src/dotnet/Plugin.props @@ -3,7 +3,7 @@ - 2025.3.0.1 + 2025.1.9 AutoMapper.FindUsage ReSharper plugin for easy navigation from destination properties to source properties in AutoMapper mappings. diff --git a/src/dotnet/ReSharperPlugin.AutoMapper.FindUsage.Tests/AutoMapperCacheTests.cs b/src/dotnet/ReSharperPlugin.AutoMapper.FindUsage.Tests/AutoMapperCacheTests.cs index c292032..932cc36 100644 --- a/src/dotnet/ReSharperPlugin.AutoMapper.FindUsage.Tests/AutoMapperCacheTests.cs +++ b/src/dotnet/ReSharperPlugin.AutoMapper.FindUsage.Tests/AutoMapperCacheTests.cs @@ -29,15 +29,14 @@ public void BuildOneWayMappingTest() var built = cache.Build(sourceFile, isPreParent: false) as List; built.Should().BeEquivalentTo([ - new SerializableMapping - { - DestinationTypeClrName = "TestNamespace.Destination", - HasReverseMap = false, - IgnoredProperties = [], - SourceTypeClrName = "TestNamespace.Source" - } - ] - ); + new SerializableMapping + { + DestinationTypeClrName = "TestNamespace.Destination", + HasReverseMap = false, + IgnoredProperties = [], + SourceTypeClrName = "TestNamespace.Source" + } + ]); }); }); } @@ -55,15 +54,14 @@ public void BuildReverseMappingTest() var built = cache.Build(sourceFile, isPreParent: false) as List; built.Should().BeEquivalentTo([ - new SerializableMapping - { - DestinationTypeClrName = "TestNamespaceReverse.Destination", - HasReverseMap = true, - IgnoredProperties = [], - SourceTypeClrName = "TestNamespaceReverse.Source" - } - ] - ); + new SerializableMapping + { + DestinationTypeClrName = "TestNamespaceReverse.Destination", + HasReverseMap = true, + IgnoredProperties = new List(), + SourceTypeClrName = "TestNamespaceReverse.Source" + } + ]); }); }); } @@ -82,15 +80,14 @@ public void BuildsIgnoredPropertiesMappiingTest() var built = cache.Build(sourceFile, isPreParent: false) as List; built.Should().BeEquivalentTo([ - new SerializableMapping - { - DestinationTypeClrName = "TestNamespaceIgnored.Destination", - HasReverseMap = false, - IgnoredProperties = ["Ignored"], - SourceTypeClrName = "TestNamespaceIgnored.Source" - } - ] - ); + new SerializableMapping + { + DestinationTypeClrName = "TestNamespaceIgnored.Destination", + HasReverseMap = false, + IgnoredProperties = ["Ignored"], + SourceTypeClrName = "TestNamespaceIgnored.Source" + } + ]); }); }); } diff --git a/src/dotnet/ReSharperPlugin.AutoMapper.FindUsage/Registrations/AutoMapperCache.cs b/src/dotnet/ReSharperPlugin.AutoMapper.FindUsage/Registrations/AutoMapperCache.cs index cd9ee84..2bc055e 100644 --- a/src/dotnet/ReSharperPlugin.AutoMapper.FindUsage/Registrations/AutoMapperCache.cs +++ b/src/dotnet/ReSharperPlugin.AutoMapper.FindUsage/Registrations/AutoMapperCache.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using JetBrains.Application.Parts; @@ -177,7 +176,7 @@ private static bool TryGetMappingTypes(ISubstitution substitution, IMethod metho if (method != null) { - if (method.TypeParametersCount >= 2) + if (method.TypeParameters.Count >= 2) { sourceType = substitution[method.TypeParameters[0]]; destinationType = substitution[method.TypeParameters[1]];