diff --git a/.github/workflows/project-regular-checks.yml b/.github/workflows/project-regular-checks.yml index 11282ce..b61ad89 100644 --- a/.github/workflows/project-regular-checks.yml +++ b/.github/workflows/project-regular-checks.yml @@ -11,11 +11,11 @@ jobs: name: Build & Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Setup .NET - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: - dotnet-version: 9 + dotnet-version: 10 - name: Restore Dependencies run: dotnet restore - name: Format Solution diff --git a/dotnet-10-research-notes.md b/dotnet-10-research-notes.md deleted file mode 100644 index 1495b3e..0000000 --- a/dotnet-10-research-notes.md +++ /dev/null @@ -1,46 +0,0 @@ - -# .NET 10 Research Notes - -### Support for Microsoft Testing Platform in dotnet test - -dotnet test natively supports Microsoft.Testing.Platform. To enable this -feature, add the following configuration to your global.json file: - -```csharp -{ - "test": { - "runner": "Microsoft.Testing.Platform" - } -} -``` - -[MTP](https://learn.microsoft.com/en-us/dotnet/core/testing/microsoft-testing-platform-intro) - -### Validation support in Minimal APIs - -`AddValidation` ile response model'de eklenen attributes'lar ile validasyon yapılabiliyor - -```csharp -app.MapPost("/products", - ([EvenNumber(ErrorMessage = "Product ID must be even")] int productId, [Required] string name) - => TypedResults.Ok(productId)) - .DisableValidation(); -//****** -public record Product( - [Required] string Name, - [Range(1, 1000)] int Quantity); -``` - -### `IProblemDetailsService` - -bir örnek yap -Defines a type that provide functionality to create a ProblemDetails response. - -Bu 7'den sonra da varmış. Kullanmamışız. Ben yinede ekliyim belki şimdi bazı şeyleri kolaylayabilir. - -https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iproblemdetailsservice?view=aspnetcore-10.0 - -### Validation APIs moved to `Microsoft.Extensions.Validation` - -The validation APIs have moved to the `Microsoft.Extensions.Validation` -namespace and NuGet package.