diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
new file mode 100644
index 0000000..63520c4
--- /dev/null
+++ b/.github/workflows/dotnet.yml
@@ -0,0 +1,44 @@
+name: .NET Build
+
+on:
+ push:
+ branches: [ "master" ]
+ pull_request:
+ branches: [ "master" ]
+
+jobs:
+ build:
+ runs-on: windows-latest
+ timeout-minutes: 15
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: 8.0.x
+
+ - name: Build
+ run: dotnet build -c Release
+
+ - name: Pack
+ run: dotnet pack -c Release --no-build -o nupkg
+
+ - name: Publish
+ run: dotnet publish -p:PublishSingleFile=true -r win-x64 -f net8.0-windows -c Release --self-contained false ImageViewer\ImageViewer.csproj -o dist
+
+ - name: Upload
+ uses: actions/upload-artifact@v4
+ with:
+ name: All NuGet packages
+ path: nupkg
+
+ - name: Upload
+ uses: actions/upload-artifact@v4
+ with:
+ name: All app executables
+ path: dist
diff --git a/ImageFormats/FitsReader.cs b/ImageFormats/FitsReader.cs
index 43f27ab..1ac619a 100644
--- a/ImageFormats/FitsReader.cs
+++ b/ImageFormats/FitsReader.cs
@@ -83,7 +83,7 @@ public static Image Load(Stream stream)
else if (headerSeq > 0 && !itemStr.StartsWith("XTENSION")) { return bmp; }
}
- if (!itemStr.Contains('=')) { continue; }
+ if (!itemStr.Contains('=' + "")) { continue; }
string[] parts = itemStr.Split('=');
if (parts.Length < 2) { continue; }
diff --git a/ImageFormats/ImageFormats.csproj b/ImageFormats/ImageFormats.csproj
index 427e9a7..014d7d8 100644
--- a/ImageFormats/ImageFormats.csproj
+++ b/ImageFormats/ImageFormats.csproj
@@ -1,20 +1,39 @@
- net6.0
+ net8.0;net6.0;netstandard2.0
+ latest
+
DmitryBrant.ImageFormats
ImageFormats
- false
+
+
+
+ DmitryBrant.ImageFormats
+ 1.0.1
ImageFormats
Dmitry Brant
Copyright © Dmitry Brant, 2021-
https://dmitrybrant.com
+ git
https://github.com/dbrant/imageformats
Library for decoding old and obscure image formats.
+ true
+ Apache-2.0
+ README.md
+ decoding;graphics;images;library;targa;tga;ras;sun;zsoft;pcx;netpbm;ppm;pgm;pbm;pnm;sgi;dicom
-
+
+
+
+
+
+
+
+
+
diff --git a/ImageViewer/ImageViewer.csproj b/ImageViewer/ImageViewer.csproj
index 9e3f490..337b772 100644
--- a/ImageViewer/ImageViewer.csproj
+++ b/ImageViewer/ImageViewer.csproj
@@ -2,7 +2,7 @@
WinExe
- net6.0-windows
+ net8.0-windows;net6.0-windows
true
Properties
ImageViewer
@@ -12,6 +12,7 @@
Dmitry Brant
Copyright © Dmitry Brant, 2020
+ false