<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <PlatformTarget>x86</PlatformTarget>
    <Platforms>x86</Platforms>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Serilog" Version="3.1.1" />
    <PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\GeViScopeBridge\GeViScopeBridge.csproj" />
  </ItemGroup>

  <ItemGroup>
    <Reference Include="GeViProcAPINET_4_0">
      <HintPath>C:\GEVISOFT\GeViProcAPINET_4_0.dll</HintPath>
    </Reference>
  </ItemGroup>

  <Target Name="CopyGeViSoftDLLs" AfterTargets="Build">
    <ItemGroup>
      <GeViSoftFiles Include="C:\GEVISOFT\*.dll" />
    </ItemGroup>
    <Copy SourceFiles="@(GeViSoftFiles)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="true" />
    <Message Text="Copied GeViSoft DLLs to output directory" Importance="high" />
  </Target>

</Project>
