Загрузка данных


<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net48</TargetFramework>
    <UseWPF>true</UseWPF>
    <LangVersion>latest</LangVersion>
    <Nullable>disable</Nullable>
    <PlatformTarget>x64</PlatformTarget>
    <Platforms>x64</Platforms>
    <Prefer32Bit>false</Prefer32Bit>
    <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
  </PropertyGroup>

  <!-- Keep the xBIM 5 WPF stack together; do not reference xBIM 6 packages. -->
  <ItemGroup>
    <PackageReference Include="Xbim.WindowsUI" Version="5.1.228" />
    <PackageReference Include="Xbim.Geometry.Engine.Interop" Version="5.1.820" />
  </ItemGroup>

  <!-- xBIM 5 native geometry engine is shipped in the NuGet package's build/net472 folder. -->
  <PropertyGroup>
    <_XbimNuGetRoot Condition="'$(NuGetPackageRoot)' != ''">$(NuGetPackageRoot)</_XbimNuGetRoot>
    <_XbimNuGetRoot Condition="'$(_XbimNuGetRoot)' == ''">$(UserProfile)\.nuget\packages\</_XbimNuGetRoot>
    <_XbimNativeDll>$(_XbimNuGetRoot)xbim.geometry.engine.interop\5.1.820\build\net472\Xbim.Geometry.Engine64.dll</_XbimNativeDll>
  </PropertyGroup>
  <Target Name="CopyXbimNativeGeometryEngine" AfterTargets="Build">
    <Error Condition="!Exists('$(_XbimNativeDll)')"
           Text="Xbim.Geometry.Engine64.dll not found at '$(_XbimNativeDll)'. Restore NuGet packages and check the package version." />
    <Copy SourceFiles="$(_XbimNativeDll)" DestinationFolder="$(TargetDir)" SkipUnchangedFiles="true" />
  </Target>
</Project>