Skip to content

Commit

Permalink
Sign csharp assemblies as part of the netcore build process, verify s…
Browse files Browse the repository at this point in the history
…ignature during tests (OSGeo#1368)
  • Loading branch information
szekerest committed Dec 30, 2020
1 parent db27a4f commit 4e7bbb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gdal/swig/csharp/makefile.vc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ template.csproj:
echo ^<PropertyGroup^> >> $@
echo ^<TargetFramework^>$(NETSTANDARD)^</TargetFramework^> >> $@
echo ^<AssemblyVersion^>$(GDAL_VERSION).0^</AssemblyVersion^> >> $@
echo ^<AssemblyOriginatorKeyFile^>..\gdal.snk^</AssemblyOriginatorKeyFile^> >> $@
echo ^<SignAssembly^>true^</SignAssembly^> >> $@
echo ^<AllowUnsafeBlocks^>true^</AllowUnsafeBlocks^> >> $@
echo ^</PropertyGroup^> >> $@
echo ^</Project^> >> $@
Expand Down Expand Up @@ -299,6 +301,9 @@ test:
ogrinfo.exe Data/intersectionresult.shp
gdalwarp.exe Data/testwarp.tif "-of GTiff -t_srs EPSG:32645 -overwrite" "../../../autotest/gcore/data/byte.tif"
getcrsinfo.exe "EPSG" 20
sn -vf osr_csharp.dll
sn -vf ogr_csharp.dll
sn -vf gdal_csharp.dll
!ENDIF

clean:
Expand Down

0 comments on commit 4e7bbb4

Please sign in to comment.