Skip to content

Build Details

Kristian Virtanen edited this page Oct 18, 2024 · 3 revisions

Build details:

<Project Sdk="Microsoft.NET.Sdk">
  <TargetFramework>net8.0-windows8.0</TargetFramework>
  <OutputType>Library</OutputType>
  <UseWPF>true</UseWPF>
  <UseWindowsForms>true</UseWindowsForms>
  <LangVersion>12.0</LangVersion>
  <PublishSingleFile>true</PublishSingleFile>
  <SelfContained>false</SelfContained>
  <IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
  <TrimUnusedDependencies>true</TrimUnusedDependencies>
  <SupportedOSPlatformVersion>8.0</SupportedOSPlatformVersion>
  <Nullable>enable</Nullable>

  <ItemGroup>
    <Reference Include="System.Windows.Forms">

                                <!-- Specify the exact path! -->
      <HintPath>PATH_TO "System.Windows.Forms.dll"</HintPath>
      
      <SpecificVersion>True</SpecificVersion>
    </Reference>
    <Reference Include="System.Drawing">

                                  <!-- Specify the exact path -->
      <HintPath>PATH_TO "System.Drawing.dll"</HintPath>

    </Reference>
    <!-- Add System.Net.Http for HttpClient support -->
    <PackageReference Include="System.Net.Http" Version="4.3.4" />
  </ItemGroup>
</Project>

Usings:

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.IO;
using System.Linq;
using System.Media;
using System.Net.Http;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using System.Timers;
using System.Windows.Forms;
using System.Windows.Media;

Clone this wiki locally