zoukankan      html  css  js  c++  java
  • net core中引用GDAL

    <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目录下

  • 相关阅读:
    ValidateRequest问题
    通过反射得到object[]数组的类型并且的到此类型所有的字段及字段的值
    正则表达式匹配括号中的字符,不包括括号
    C# String
    C# TYPES
    C# History and Future
    Mixing unmanaged C++ and CSharp
    [Tip: property]C#3.0 autoimplemented property
    C#: constant and readonly
    c#:Nullable Types
  • 原文地址:https://www.cnblogs.com/gispathfinder/p/11225686.html
Copyright © 2011-2022 走看看