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
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<IsMac>$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::get_OSX())))</IsMac>
<IsWindows>$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::get_Windows())))</IsWindows>
</PropertyGroup>

<ItemGroup>
<Using Include="System.Reflection"/>
<Using Include="System.Diagnostics"/>
Expand Down
4 changes: 0 additions & 4 deletions src/AutoMapper/AutoMapper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
<AdditionalApiCompatOptions>--exclude-non-browsable --exclude-compiler-generated</AdditionalApiCompatOptions>
</PropertyGroup>

<PropertyGroup Condition=" '$(IsWindows)' == 'true' ">
<TargetFrameworks>$(TargetFrameworks);net462</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<ResolvedMatchingContract Include="..\LastMajorVersionBinary\AutoMapper.dll"/>
</ItemGroup>
Expand Down
5 changes: 0 additions & 5 deletions src/IntegrationTests/AutoMapper.IntegrationTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
<SignAssembly>true</SignAssembly>
</PropertyGroup>

<PropertyGroup Condition=" '$(IsWindows)' == 'true' ">
<PublicSign>true</PublicSign>
<TargetFrameworks>$(TargetFrameworks);net462</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\UnitTests\AutoMapperSpecBase.cs" Link="AutoMapperSpecBase.cs" />
<ProjectReference Include="..\AutoMapper\AutoMapper.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion src/UnitTests/ArraysAndLists.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public Expression MapExpression(IGlobalConfiguration configurationProvider, Prof
MemberMap memberMap,
Expression sourceExpression, Expression destExpression)
=> Expression.Multiply(Expression.Convert(sourceExpression, typeof(int)), Expression.Constant(1000));
#if NET481
#if NET471_OR_GREATER
public TypePair? GetAssociatedTypes(TypePair initialTypes) => null;
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion src/UnitTests/AutoMapper.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<PropertyGroup Condition=" '$(IsWindows)' == 'true' ">
<PublicSign>true</PublicSign>
<TargetFrameworks>$(TargetFrameworks);net462</TargetFrameworks>
<TargetFrameworks>$(TargetFrameworks);net471</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/UnitTests/ForPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public void Should_throw_exception()
{
var cfg = new MapperConfiguration(config =>
{
Assert.Throws<ArgumentNullException>(() =>
Assert.Throws<System.ArgumentNullException>(() =>
{
config.CreateMap<SourceModel, DestinationModel>()
.ForPath(sourceModel => sourceModel.Name, opts => opts.MapFrom<string>(null));
Expand Down
2 changes: 1 addition & 1 deletion src/UnitTests/Mappers/CustomMapperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public Expression MapExpression(IGlobalConfiguration configurationProvider, Prof

return expr.Body;
}
#if NET481
#if NET471_OR_GREATER
public TypePair? GetAssociatedTypes(TypePair initialTypes) => null;
#endif
}
Expand Down
Loading