Skip to content

Commit d69f2e3

Browse files
committed
Add AutoGenerateBindingRedirect
1 parent a9ff771 commit d69f2e3

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

Examples/WinFormSamples/WinFormSamples.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<OutputType>WinExe</OutputType>
1515
<StartupObject>WinFormSamples.Program</StartupObject>
1616
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
17+
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
1718
</PropertyGroup>
1819

1920
<ItemGroup>

SharpMap.UI/SharpMap.UI.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<PackageTags>sharpmap winforms</PackageTags>
1212
<Description>This package contains UI Compontents for System.Windows.Forms.</Description>
1313
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
14+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1415
</PropertyGroup>
1516

1617
<ItemGroup>

SharpMap/SharpMap.csproj

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<Copyright>Copyright 2006 Morten Nielsen, Copyright 2008-$([System.DateTime]::UtcNow.Year) SharpMap - Team</Copyright>
99
<PackageTags>SharpMap GIS Map GeoSpatial</PackageTags>
1010
<Description>This package contains the core components of SharpMap.</Description>
11+
<!--<EnableApiCompat>true</EnableApiCompat>-->
1112
</PropertyGroup>
1213

1314
<ItemGroup>
@@ -17,9 +18,6 @@
1718
<ItemGroup>
1819
<EmbeddedResource Include="Styles\DefaultSymbol.png" />
1920
</ItemGroup>
20-
<ItemGroup>
21-
<ResolvedMatchingContract Include=".\LastMajorVersionBinary\$(AssemblyName).dll" />
22-
</ItemGroup>
2321

2422
<ItemGroup>
2523
<PackageReference Include="Common.Logging" Version="3.4.1" />
@@ -29,13 +27,16 @@
2927
<PackageReference Include="System.Drawing.Common" Version="4.6.0" />
3028
<PackageReference Include="System.Data.SqlClient" Version="4.7.0" />
3129
<PackageReference Include="System.Drawing.Primitives" Version="4.3.0" />
32-
<PackageReference Include="Microsoft.DotNet.ApiCompat" Version="5.0.0-beta.19557.20" PrivateAssets="All" />
3330
</ItemGroup>
3431

35-
<ItemGroup>
36-
<Folder Include="LastMajorVersionBinary\" />
32+
<ItemGroup Condition=" '$(EnableApiCompat)' == 'true' ">
33+
<PackageReference Include="Microsoft.DotNet.ApiCompat" Version="5.0.0-beta.20162.3" PrivateAssets="All" />
34+
<PackageDownload Include="SharpMap" Version="[1.1.0]" PrivateAssets="All" />
35+
36+
<ResolvedMatchingContract Include="$(NugetPackageRoot)sharpmap\1.1.0\lib\net40-client\SharpMap.dll" />
3737
</ItemGroup>
3838

39+
3940
<PropertyGroup>
4041
<DriveSeperator>$(SolutionDir.SubString(1,1))</DriveSeperator>
4142
</PropertyGroup>

0 commit comments

Comments
 (0)