Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
workflow_dispatch:
push:
pull_request:

jobs:
windows:
runs-on: windows-latest
name: Build
steps:
- name: 🛒 Checkout
uses: actions/checkout@v3
- name: 🐢 Setup MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: ✨ Setup .NET 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.x"
- name: 🛠️ Build and Pack
run: dotnet build --configuration Release
6 changes: 5 additions & 1 deletion FTD2XX_NET.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@
using System.Text;
using System.Runtime.InteropServices;
using System.Threading;
//using System.Windows.Forms;
using System.IO;

// This project cannot build in debug mode because it requires
// System.Windows.Forms which is not supported in .NET Standard.
#if DEBUG
#error This package can only be built in Release mode
#endif

namespace FTD2XX_NET
{
Expand Down
43 changes: 20 additions & 23 deletions FTDI2XX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,33 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net45;netstandard2.0</TargetFrameworks>
<UserSecretsId>547d0f7c-cebb-4747-94a0-6d15cec0d0fb</UserSecretsId>
<PackageId>FTD2XX.Net</PackageId>
<Version>1.2.1</Version>
<Description>FTDI have provided a managed .NET wrapper class for the FTD2XX DLL on the Windows platform. The managed wrapper DLL (FTD2XX_NET.DLL) is provided as a free download with Intellisense documentation provided in the FTD2XX_NET.XML file - this is viewable in the Visual Studio Object Browser and also provides hints as the code is written.

v1.21
I have recompiled the v1.2.0 code to add the following framework options:
- .Net Standard 2.0
- .Net Standard 2.1
- .Net Framework 4.5</Description>
<PackageProjectUrl>https://ftdichip.com/software-examples/code-examples/csharp-examples/</PackageProjectUrl>
<RepositoryUrl>https://ftdichip.com/wp-content/uploads/2021/06/FTD2XX_NET_SRC_v1.2.0.zip</RepositoryUrl>
<Version>1.2.2</Version>
<Description>A .NET wrapper for FTDI's FTD2XX series USB interface chips</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/OldNo7/FTDI2XX.NET</PackageProjectUrl>
<RepositoryUrl>https://github.com/OldNo7/FTDI2XX.NET.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseFile>License.txt</PackageLicenseFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.1|AnyCPU'">
<DocumentationFile>D:\projects\FTDI\FTDI2XX\FTDI2XX.xml</DocumentationFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<None Remove="FTDI2XX.xml" />
<None Include="License.txt">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="License.txt" Pack="true" PackagePath="\" />
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<Content Include="FTDI2XX.xml" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

</Project>
</Project>
Loading