Core
Core
Explore posts from servers
CC#
Created by Core on 2/21/2025 in #help
✅ Error when targeting .net-android
$close
9 replies
CC#
Created by Core on 2/21/2025 in #help
✅ Error when targeting .net-android
thanks
9 replies
CC#
Created by Core on 2/21/2025 in #help
✅ Error when targeting .net-android
Okay, figured it out
9 replies
CC#
Created by Core on 2/21/2025 in #help
✅ Error when targeting .net-android
dotnet build --configuration Release -p:BuildGroup=android
/home/nandor/Documents/Personal/qr-code-service/tests/QrCode.Generator.Tests/QrCode.Generator.Tests.csproj : error NU1201:
Project QrCode.Generator is not compatible with net9.0 (.NETCoreApp,Version=v9.0). Project QrCode.Generator supports:
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
- net9.0-android35.0 (.NETCoreApp,Version=v9.0)
/home/nandor/Documents/Personal/qr-code-service/src/QrCode.Console/QrCode.Console.csproj : error NU1201:
Project QrCode.Generator is not compatible with net9.0 (.NETCoreApp,Version=v9.0). Project QrCode.Generator supports:
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
- net9.0-android35.0 (.NETCoreApp,Version=v9.0)
/home/nandor/Documents/Personal/qr-code-service/tests/QrCode.Generator.Tests/QrCode.Generator.Tests.csproj : error NU1201:
Project QrCode.Generator is not compatible with net9.0 (.NETCoreApp,Version=v9.0). Project QrCode.Generator supports:
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
- net9.0-android35.0 (.NETCoreApp,Version=v9.0)
/home/nandor/Documents/Personal/qr-code-service/src/QrCode.Console/QrCode.Console.csproj : error NU1201:
Project QrCode.Generator is not compatible with net9.0 (.NETCoreApp,Version=v9.0). Project QrCode.Generator supports:
- net8.0-android34.0 (.NETCoreApp,Version=v8.0)
- net9.0-android35.0 (.NETCoreApp,Version=v9.0)
9 replies
CC#
Created by Core on 2/21/2025 in #help
✅ Error when targeting .net-android
getting closer
9 replies
CC#
Created by Core on 2/21/2025 in #help
✅ Error when targeting .net-android
:when:
9 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
$close
19 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
Anyway, Thank you
19 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
I will close this because I still want my sanity
19 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
dogshit what it is
19 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
Yup, changed it to only read the file: System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/runner/work/qr-code-generator/qr-code-generator/tests/QrCode.Generator.Tests/bin/Release/net9.0/TestImages/Png/marker_3.png'.
19 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
referenceBitmap is null when the last line is reached: generatedBitmap.Bytes.SequenceEqual(referenceBitmap.Bytes);
19 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
SkiaSharp decodes the images, from the file
19 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
c#
private static bool AreImagesIdentical(byte[] generatedImage, string referenceImagePath)
{
using var generatedBitmap = SKBitmap.Decode(generatedImage);
using var referenceBitmap = SKBitmap.Decode(referenceImagePath);
return generatedBitmap.Bytes.SequenceEqual(referenceBitmap.Bytes);
}
c#
private static bool AreImagesIdentical(byte[] generatedImage, string referenceImagePath)
{
using var generatedBitmap = SKBitmap.Decode(generatedImage);
using var referenceBitmap = SKBitmap.Decode(referenceImagePath);
return generatedBitmap.Bytes.SequenceEqual(referenceBitmap.Bytes);
}
19 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
From the same path which was copied on build
19 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
Reading a file
19 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
This is the error:
Run dotnet test --configuration Release --no-build

Run tests: '/home/runner/work/qr-code-generator/qr-code-generator/tests/QrCode.Generator.Tests/bin/Release/net9.0/QrCode.Generator.Tests.dll' [net9.0|x64]
failed Generate_WithMarkerStyle_ShouldReturnPng(QrCodeMarkerStyle { Id = 2, MarkerStyle = SharpTopLeft }) (407ms)
System.NullReferenceException: Object reference not set to an instance of an object.
at QrCode.Generator.Core.QrCodeGeneratorTests.AreImagesIdentical(Byte[] generatedImage, String referenceImagePath) in /home/runner/work/qr-code-generator/qr-code-generator/tests/QrCode.Generator.Tests/Core/QrCodeGeneratorTests.cs:115****
Run dotnet test --configuration Release --no-build

Run tests: '/home/runner/work/qr-code-generator/qr-code-generator/tests/QrCode.Generator.Tests/bin/Release/net9.0/QrCode.Generator.Tests.dll' [net9.0|x64]
failed Generate_WithMarkerStyle_ShouldReturnPng(QrCodeMarkerStyle { Id = 2, MarkerStyle = SharpTopLeft }) (407ms)
System.NullReferenceException: Object reference not set to an instance of an object.
at QrCode.Generator.Core.QrCodeGeneratorTests.AreImagesIdentical(Byte[] generatedImage, String referenceImagePath) in /home/runner/work/qr-code-generator/qr-code-generator/tests/QrCode.Generator.Tests/Core/QrCodeGeneratorTests.cs:115****
19 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
The naming looks fine
19 replies
CC#
Created by Core on 2/20/2025 in #help
✅ Github action fails, but running it locally via `act` succeeds
- name: List Files in Test Output Directory
run: ls -R ./tests/QrCode.Generator.Tests/bin/Release/net9.0/
- name: List Files in Test Output Directory
run: ls -R ./tests/QrCode.Generator.Tests/bin/Release/net9.0/
This was added, and the output was:
./tests/QrCode.Generator.Tests/bin/Release/net9.0/TestImages/Webp:
marker_1.webp
marker_10.webp
./tests/QrCode.Generator.Tests/bin/Release/net9.0/TestImages/Webp:
marker_1.webp
marker_10.webp
19 replies
CC#
Created by St3v3 on 2/18/2025 in #help
sum of the even numbers in the fibonacci sequence
This should be illegal
10 replies