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
6 changes: 5 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
<PropertyGroup>
<!-- Properties related to build/pack -->
<IsPackable>false</IsPackable>
<Version>10.0.4</Version>
<Version>10.0.5</Version>
<MapsterPluginsTFMs>netstandard2.0;net10.0;net9.0;net8.0</MapsterPluginsTFMs>
<MapsterTFMs>netstandard2.0;net10.0;net9.0;net8.0</MapsterTFMs>
<MapsterEFCoreTFMs>net10.0;net9.0;net8.0</MapsterEFCoreTFMs>
<MapsterToolTFMs>net10.0;net9.0;net8.0</MapsterToolTFMs>
</PropertyGroup>
<PropertyGroup>
<!-- Metadata -->
Expand Down
2 changes: 1 addition & 1 deletion src/Mapster.Async/Mapster.Async.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net10.0;net9.0;net8.0</TargetFrameworks>
<TargetFrameworks>$(MapsterPluginsTFMs)</TargetFrameworks>
<Description>Async supports for Mapster</Description>
<IsPackable>true</IsPackable>
<PackageTags>Mapster;Async</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net10.0;net9.0;net8.0</TargetFrameworks>
<TargetFrameworks>$(MapsterPluginsTFMs)</TargetFrameworks>
<Description>Dependency Injection supports for Mapster</Description>
<IsPackable>true</IsPackable>
<PackageTags>Mapster;DependencyInjection</PackageTags>
Expand Down
2 changes: 1 addition & 1 deletion src/Mapster.EFCore/Mapster.EFCore.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net10.0;net9.0;net8.0;</TargetFrameworks>
<TargetFrameworks>$(MapsterEFCoreTFMs)</TargetFrameworks>
<Description>EFCore plugin for Mapster</Description>
<IsPackable>true</IsPackable>
<PackageTags>Mapster;EFCore</PackageTags>
Expand Down
2 changes: 1 addition & 1 deletion src/Mapster.Immutable/Mapster.Immutable.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net10.0;net9.0;net8.0</TargetFrameworks>
<TargetFrameworks>$(MapsterPluginsTFMs)</TargetFrameworks>
<Description>Immutable collection supports for Mapster</Description>
<IsPackable>true</IsPackable>
<PackageTags>Mapster;Immutable</PackageTags>
Expand Down
2 changes: 1 addition & 1 deletion src/Mapster.JsonNet/Mapster.JsonNet.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net10.0;net9.0;net8.0</TargetFrameworks>
<TargetFrameworks>$(MapsterPluginsTFMs)</TargetFrameworks>
<Description>Json.net conversion supports for Mapster</Description>
<IsPackable>true</IsPackable>
<PackageTags>Mapster;Json.net</PackageTags>
Expand Down
2 changes: 1 addition & 1 deletion src/Mapster.Tool/Mapster.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net10.0;net9.0;net8.0;</TargetFrameworks>
<TargetFrameworks>$(MapsterToolTFMs)</TargetFrameworks>
<IsPackable>true</IsPackable>
<PackAsTool>true</PackAsTool>
<ToolCommandName>dotnet-mapster</ToolCommandName>
Expand Down
2 changes: 1 addition & 1 deletion src/Mapster/Mapster.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net10.0;net9.0;net8.0</TargetFrameworks>
<TargetFrameworks>$(MapsterTFMs)</TargetFrameworks>
<AssemblyName>Mapster</AssemblyName>
<Description>A fast, fun and stimulating object to object mapper. Kind of like AutoMapper, just simpler and way, way faster.</Description>
<PackageId>Mapster</PackageId>
Expand Down
4 changes: 2 additions & 2 deletions src/Mapster/Utils/CodeAnalysisAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
namespace System.Diagnostics.CodeAnalysis
{
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
public sealed class NotNullWhenAttribute : Attribute
internal sealed class NotNullWhenAttribute : Attribute
{
public NotNullWhenAttribute(bool returnValue) => ReturnValue = returnValue;
public bool ReturnValue { get; }
}

[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.ReturnValue, Inherited = false)]
public sealed class NotNullIfNotNullAttribute : Attribute
internal sealed class NotNullIfNotNullAttribute : Attribute
{
public NotNullIfNotNullAttribute(string parameterName) => ParameterName = parameterName;
public string ParameterName { get; }
Expand Down
2 changes: 1 addition & 1 deletion src/Mapster/Utils/CoreExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static void LockRemove<T>(this List<T> list, T item)
}
}

#if !NET6_0_OR_GREATER
#if NETSTANDARD2_0
public static HashSet<T> ToHashSet<T>(this IEnumerable<T> source)
{
return new HashSet<T>(source);
Expand Down
Loading