Category: .NET Core

  • FileExtension–part 6 – CI/CD

    So now how to make visible all those coding ? For tests –CodeCov,  https://app.codecov.io/gh/ignatandrei/FileExtension hosts for free to see the coverage For documentation – ReadTheDocs,  https://fileextension.readthedocs.io/en/latest/ hosts for free. For packaging  – NuGEt https://www.nuget.org/packages/FileExtension/ For more detailed analysis Sonar https://sonarcloud.io/summary/overall?id=ignatandrei_FileExtension can show code smells and bugs and more GitHub actions https://github.com/ignatandrei/FileExtension/actions allows me to run all those…

  • FileExtension–Tests–part 5

    The tests are the easy part. I have put some files on a folder( https://github.com/ignatandrei/FileExtension/tree/master/src/TestFileExtensions/TestFiles ) and test if the extension matches the recognizer. As NuGet packages I used FluentAssertions xunit LightBDD.XUnit2 FluentAssertion allows me to write more readable tests,like  AllExtensions.Should().HaveCountGreaterThanOrEqualTo(number); LightBDD allows me to write tests in a more “business “ way : await…

  • FileExtension – GUI–part 4

    Now I must do something for the people that just want to use the software. The most usual,for me,it is a .NET Core WebAPI site ( with swagger ) and an Angular frontend. You can find the sources at https://github.com/ignatandrei/FileExtension/tree/master/src . Some thoughts: For .NET Core ( see https://github.com/ignatandrei/FileExtension/tree/master/src/RecognizeFileExtWebAPI ) I use the following NuGET…

  • FileExtension–plugins–part 3

    What I have more in mind is that the people can add easy their code for extensions. That means: Have an easy class to add the magic number in the header for an extension Have other people add their own implementations,not just the header Have an easy way to add the project with their code…

  • FileExtension– export data from CSV–part 2

    First,is how to export data from table (https://en.wikipedia.org/wiki/List_of_file_signatures) into classes . First,the table must be transformed into a more programmatic recognizable way – like a CSV  – see https://github.com/ignatandrei/FileExtension/blob/master/src/RSCG_GCK/offset0.txt Then a solution is to have into the dll ( as embedded resource or as a file) . The second solution,more complicated,is to use Roslyn Source…

  • RSCG Example–TimeBombComment–part 27

        name RSCG_TimeBombComment nuget https://www.nuget.org/packages/RSCG_TimeBombComment/ link http://msprogrammer.serviciipeweb.ro/category/roslyn/ author Andrei Ignat This will generate an error from the comment after a certain date   The code that you start with is The code that you will use is   The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/TimeBombComment

  • RSCG Example – Tiny Types – Part 23

        name BaseTypes nuget https://www.nuget.org/packages/AndreasDorfer.BaseTypes/ link https://github.com/Andreas-Dorfer/base-types author Andreas Dorfer Generated tiny types from any value type   The code that you start with is The code that you will use is   The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/TinyTypes

  • AMA.NET 2

    In fiecare joi,la ora 21,o sa tin o sesiune de AMANET – intrebati-ma orice despre .NET .  De preferinta,.NET Core – dar merge si .NET Framework,arhitectura,backend,Razor,MVC,orice care are legatura cu C# . Linkul  pentru video este  https://meet.google.com/idm-gcxj-enb  si cel de la google https://calendar.google.com/event?action=TEMPLATE&tmeid=MTdhZTVnOWZvdTk3ZTJzMjVzMW41bnI5c2FfMjAyMTA4MDVUMTgwMDAwWiBpZ25hdC5hbmRyZWlAbQ&tmsrc=ignat.andrei%40gmail.com&scp=ALL . Va astept !

  • AMA.NET

    In fiecare joi,la ora 21,o sa tin o sesiune de AMANET – intrebati-ma orice despre .NET .  De preferinta,.NET Core – dar merge si .NET Framework,arhitectura,backend,Razor,MVC,orice care are legatura cu C# . Linkul  pentru video este  https://meet.google.com/idm-gcxj-enb  si cel de la google https://calendar.google.com/event?action=TEMPLATE&tmeid=MTdhZTVnOWZvdTk3ZTJzMjVzMW41bnI5c2FfMjAyMTA4MDVUMTgwMDAwWiBpZ25hdC5hbmRyZWlAbQ&tmsrc=ignat.andrei%40gmail.com&scp=ALL . Va astept !

  • RSCG-Integrating with CI Only – part 10

    The integration with CI providers is enough straightforward – just see what environments variable those providers have. GitLab and Github has enough documentation – at https://docs.gitlab.com/ee/ci/variables/ and https://docs.github.com/en/actions/reference/environment-variables  What I have forgot is that there are also CI providers without having necessary source control. For example AzureDevOps can execute code taken from GitHub More than…