Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/Plugin.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<!-- See https://www.nuget.org/packages/JetBrains.ReSharper.SDK -->
<!-- Keep in sync with ProductVersion in gradle.properties -->
<SdkVersion>2025.3.0.1</SdkVersion>
<SdkVersion>2025.1.9</SdkVersion>

<Title>AutoMapper.FindUsage</Title>
<Description>ReSharper plugin for easy navigation from destination properties to source properties in AutoMapper mappings.</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@ public void BuildOneWayMappingTest()
var built = cache.Build(sourceFile, isPreParent: false) as List<SerializableMapping>;

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"
}
]);
});
});
}
Expand All @@ -55,15 +54,14 @@ public void BuildReverseMappingTest()

var built = cache.Build(sourceFile, isPreParent: false) as List<SerializableMapping>;
built.Should().BeEquivalentTo([
new SerializableMapping
{
DestinationTypeClrName = "TestNamespaceReverse.Destination",
HasReverseMap = true,
IgnoredProperties = [],
SourceTypeClrName = "TestNamespaceReverse.Source"
}
]
);
new SerializableMapping
{
DestinationTypeClrName = "TestNamespaceReverse.Destination",
HasReverseMap = true,
IgnoredProperties = new List<string>(),
SourceTypeClrName = "TestNamespaceReverse.Source"
}
]);
});
});
}
Expand All @@ -82,15 +80,14 @@ public void BuildsIgnoredPropertiesMappiingTest()
var built = cache.Build(sourceFile, isPreParent: false) as List<SerializableMapping>;

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"
}
]);
});
});
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Application.Parts;
Expand Down Expand Up @@ -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]];
Expand Down
Loading