<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<!-- <RestoreSources>.inDebug</RestoreSources> -->
</PropertyGroup>
<ItemGroup>
<Reference Include="OSGeo.GDAL">
<HintPath>D:ProjectCSharpTestGDALEncoderingdalconst_wrap.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Include="OSGeo.GDAL">
<HintPath>D:ProjectCSharpTestGDALEncoderingdalconst_csharp.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Include="OSGeo.OSR">
<HintPath>D:ProjectCSharpTestGDALEncoderinosr_wrap.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Include="OSGeo.OSR">
<HintPath>D:ProjectCSharpTestGDALEncoderinosr_csharp.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Include="OSGeo.OGR">
<HintPath>D:ProjectCSharpTestGDALEncoderinogr_wrap.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Include="OSGeo.OGR">
<HintPath>D:ProjectCSharpTestGDALEncoderinogr_csharp.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Include="OSGeo.GDAL">
<HintPath>D:ProjectCSharpTestGDALEncoderingdal_wrap.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Include="OSGeo.GDAL">
<HintPath>D:ProjectCSharpTestGDALEncoderingdal_csharp.dll</HintPath>
</Reference>
</ItemGroup>
</Project>
然后将所有的gdal的dll复制到binDebug etcoreapp2.1目录下