dotnet add package Microsoft.AspNetCore.Mvc // deleted cuz old versions warnings dotnet add package Microsoft.AspNetCore.Authentication // deleted cuz old versions warnings dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore
dotnet add package Microsoft.EntityFrameworkCore dotnet add package Microsoft.EntityFrameworkCore.Tools dotnet add package Microsoft.EntityFrameworkCore.Design dotnet add package Microsoft.EntityFrameworkCore.Sqlite
dotnet add package Microsoft.NET.Test.Sdk dotnet add package Moq dotnet add package Microsoft.AspNetCore.Mvc.Testing
dotnet add package Serilog dotnet add package Serilog.Extensions.Logging dotnet add package Serilog.Sinks.File dotnet add package Serilog.AspNetCore
(pip install razor als je Razor language version downgrade hebt)
*note when working with the database use
dotnet ef migrations add {name} example dotnet ef migrations add TableItems
dotnet ef database update
- ASP.NET Core packages: These are needed to handle MVC or Web API functionalities, authentication, and identity management.
- Entity Framework Core packages: These are necessary for database interactions using Entity Framework Core with SQLite as the provider.
- Migration commands: Instructions for creating and applying database migrations.
- Serilog packages: These are needed to log the changes in the database.
dotnet add package xunit dotnet add package xunit.runner.visualstudio dotnet add package FluentAssertions dotnet add package NUnit dotnet add package NUnit3TestAdapter dotnet add package Microsoft.AspNetCore.Mvc.Testing
test command dotnet test --filter "FullyQualifiedName~TransfersTest" or by folder dotnet test ./Test
dotnet add package Microsoft.EntityFrameworkCore --version 8.0.10 dotnet add package Microsoft.EntityFrameworkCore.Sqlite --version 8.0.10 dotnet add package Microsoft.EntityFrameworkCore.InMemory --version 8.0.10 dotnet add package Microsoft.EntityFrameworkCore.Design --version 8.0.10 dotnet add package coverlet.collector dotnet add Test.csproj package coverlet.collector
dotnet test --configuration Release --collect:"XPlat Code Coverage" --verbosity normal --filter FullyQualifiedNameWarehousesTest
dotnet test --configuration Release --collect:"XPlat Code Coverage" --verbosity normal --filter FullyQualifiedNameLocationsTest
dotnet test --configuration Release --collect:"XPlat Code Coverage" --verbosity normal --filter FullyQualifiedNameClientsTest
dotnet test --configuration Release --collect:"XPlat Code Coverage" --verbosity normal --filter FullyQualifiedNameSuppliersTest
dotnet test --configuration Release --collect:"XPlat Code Coverage" --verbosity normal --filter FullyQualifiedNameTransfersTest
dotnet test --configuration Release --collect:"XPlat Code Coverage" --verbosity normal --filter FullyQualifiedNameItemLineTest
dotnet test --configuration Release --collect:"XPlat Code Coverage" --verbosity normal --filter FullyQualifiedNameItemGroupsTest
dotnet test --configuration Release --collect:"XPlat Code Coverage" --verbosity normal --filter FullyQualifiedNameItemTest
first: cd .\Test
then: dotnet add package Moq