From fadfd0b78388274d75a49e5036ffb2110f47b4df Mon Sep 17 00:00:00 2001 From: Guilherme Branco Stracini Date: Mon, 2 Sep 2024 16:34:27 +0100 Subject: [PATCH] Enhance support for .NET 6.0 and .NET 8.0 with documentation updates (#155) * Update ViaCep.IntegrationTests.csproj * Update ViaCep.Tests.csproj * Update ViaCep.csproj * Delete techstack.yml * Delete techstack.md * Update appveyor.yml * Update LICENSE * Update README.md --- LICENSE | 2 +- README.md | 7 +- Src/ViaCep/ViaCep.csproj | 4 +- .../ViaCep.IntegrationTests.csproj | 2 +- Tests/ViaCep.Tests/ViaCep.Tests.csproj | 2 +- appveyor.yml | 2 +- techstack.md | 169 ---------------- techstack.yml | 182 ------------------ 8 files changed, 10 insertions(+), 360 deletions(-) delete mode 100644 techstack.md delete mode 100644 techstack.yml diff --git a/LICENSE b/LICENSE index 47e149c..10a8568 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Guilherme Branco Stracini +Copyright (c) 2024 Guilherme Branco Stracini Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index cc8b8d8..bda2fa4 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ The package has two classes: * [ViaCepClient](https://github.com/guibranco/ViaCEP/blob/main/ViaCEP/ViaCepClient.cs): The main class (methods). * [ViaCepResult](https://github.com/guibranco/ViaCEP/blob/main/ViaCEP/ViaCepResult.cs): The result class (data). -This package is fully compatible with Dependency Injection. Use the interface *IViaCepClient* and the constructor with HttpClient parameter with a IHttpClientFactory instance. +This package is fully compatible with Dependency Injection. Use the interface *IViaCepClient* and the constructor with an HttpClient parameter and an IHttpClientFactory instance. ```cs //your DI container @@ -74,7 +74,7 @@ var viaCepClient = container.GetService(); var result = await viaCepClient.SearchAsync("01001000", cancellationToken); ``` -You can search using the zip code/postal code (AKA CEP) or using the address data (state initials - UF, city name and location name - street, avenue, park, square). Both methods support async and sync! +You can search using the zip code/postal code (AKA CEP) or the address data (state initials - UF, city name, and location name - street, avenue, park, square). Both methods support async and sync! ### Querying by zip code / postal code (single result) @@ -99,7 +99,8 @@ foreach(var result in results){ ## Changelog +* 2024-09-02: Add explicitly support to .NET 6.0 and .NET 8.0 [#154](https://github.com/guibranco/ViaCEP/issues/154) by [@guibranco](https://github.com/guibranco) * 2023-07-28: Add integration tests [#71](https://github.com/guibranco/ViaCEP/issues/71) by [@Riju-bak](https://github.com/Riju-bak) * 2023-03-03: Update dependencies, change branch name, update logo. [@guibranco](https://github.com/guibranco) * 2021-06-21: Update dependencies version. [@guibranco](https://github.com/guibranco) -* 2020-10-23: Add support to .NET Standard 2.0 and .NET Framework v4.6.1 and above. [@guibranco](https://github.com/guibranco) +* 2020-10-23: Support .NET Standard 2.0 and .NET Framework v4.6.1 and above. [@guibranco](https://github.com/guibranco) diff --git a/Src/ViaCep/ViaCep.csproj b/Src/ViaCep/ViaCep.csproj index 92e8e02..03d5bf5 100644 --- a/Src/ViaCep/ViaCep.csproj +++ b/Src/ViaCep/ViaCep.csproj @@ -2,12 +2,12 @@ A251D320-410E-48F1-889D-9F59EB8CFEB9 - netstandard2.0;netstandard2.1 + netstandard2.0;netstandard2.1;net6.0;net8.0 true latest Guilherme Branco Stracini Guilherme Branco Stracini - © 2023 Guilherme Branco Stracini. All rights reserved. + © 2024 Guilherme Branco Stracini. All rights reserved. The ViaCep API/WebService client for .NET projects (both .NET Core and .NET Framework) LICENSE https://guibranco.github.io/ViaCEP/ diff --git a/Tests/ViaCep.IntegrationTests/ViaCep.IntegrationTests.csproj b/Tests/ViaCep.IntegrationTests/ViaCep.IntegrationTests.csproj index 9ae018b..56dbf53 100644 --- a/Tests/ViaCep.IntegrationTests/ViaCep.IntegrationTests.csproj +++ b/Tests/ViaCep.IntegrationTests/ViaCep.IntegrationTests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable enable diff --git a/Tests/ViaCep.Tests/ViaCep.Tests.csproj b/Tests/ViaCep.Tests/ViaCep.Tests.csproj index e5745a6..0b20fd2 100644 --- a/Tests/ViaCep.Tests/ViaCep.Tests.csproj +++ b/Tests/ViaCep.Tests/ViaCep.Tests.csproj @@ -2,7 +2,7 @@ 2F57B9CD-5505-4456-B9FE-F91DCB4476D6 - net7.0 + net8.0 false diff --git a/appveyor.yml b/appveyor.yml index 1e86218..dbdf105 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 4.1.{build} +version: 4.2.{build} skip_tags: true image: Visual Studio 2022 configuration: Release diff --git a/techstack.md b/techstack.md deleted file mode 100644 index 2b8768e..0000000 --- a/techstack.md +++ /dev/null @@ -1,169 +0,0 @@ - -
- -# Tech Stack File -![](https://img.stackshare.io/repo.svg "repo") [guibranco/ViaCEP](https://github.com/guibranco/ViaCEP)![](https://img.stackshare.io/public_badge.svg "public") -

-|14
Tools used|12/14/23
Report generated| -|------|------| -
- -## Languages (1) - - - - -
- C# -
- C# -
- -
- -## Frameworks (3) - - - - - - - - -
- .NET -
- .NET -
- -
- .NET Core -
- .NET Core -
- v7.0 -
- ASP.NET Core -
- ASP.NET Core -
- v7.0 -
- -## DevOps (6) - - - - - - - - - - - - - - -
- Git -
- Git -
- -
- GitHub Actions -
- GitHub Actions -
- -
- Moq -
- Moq -
- -
- NuGet -
- NuGet -
- -
- Visual Studio -
- Visual Studio -
- -
- xUnit -
- xUnit -
- v2.6.3 -
- -## Other (1) - - - - -
- Shell -
- Shell -
- -
- - -## Open source packages (3) - -## NuGet (3) - -|NAME|VERSION|LAST UPDATED|LAST UPDATED BY|LICENSE|VULNERABILITIES| -|:------|:------|:------|:------|:------|:------| -|[Microsoft.AspNet.WebApi.Client](https://www.nuget.org/Microsoft.AspNet.WebApi.Client)|v6.0.0|10/30/23|snyk-bot |Apache-2.0|N/A| -|[Newtonsoft.Json](https://www.nuget.org/Newtonsoft.Json)|v13.0.3|10/30/23|snyk-bot |MIT|N/A| -|[xunit.runner.visualstudio](https://www.nuget.org/xunit.runner.visualstudio)|v2.5.5|12/12/23|dependabot[bot] |Other|N/A| - -
-
- -Generated via [Stack File](https://github.com/marketplace/stack-file) diff --git a/techstack.yml b/techstack.yml deleted file mode 100644 index 60dff10..0000000 --- a/techstack.yml +++ /dev/null @@ -1,182 +0,0 @@ -repo_name: guibranco/ViaCEP -report_id: 7b6381e731b9dd2debfb4f40b437d831 -repo_type: Public -timestamp: '2023-12-14T09:38:10+00:00' -requested_by: dependabot[bot] -provider: github -branch: main -detected_tools_count: 14 -tools: -- name: C# - description: Simple, general-purpose, object-oriented programming language for the - .NET platform - website_url: http://csharp.net - open_source: true - hosted_saas: false - category: Languages & Frameworks - sub_category: Languages - image_url: https://img.stackshare.io/service/1015/1200px-C_Sharp_wordmark.svg.png - detection_source: Repo Metadata -- name: ".NET" - description: A free, cross-platform, open source developer platform for building - many different types of applications - website_url: http://www.microsoft.com/net/ - license: MIT - open_source: true - hosted_saas: false - category: Languages & Frameworks - sub_category: Frameworks (Full Stack) - image_url: https://img.stackshare.io/service/1014/IoPy1dce_400x400.png - detection_source: Tests/ViaCep.Tests/ViaCep.Tests.csproj - last_updated_by: dependabot[bot] - last_updated_on: 2023-11-13 21:05:30.000000000 Z -- name: ".NET Core" - description: An Open Source, General-Purpose Development Platform Maintained by - Microsoft and the .NET Community - website_url: https://docs.microsoft.com/en-us/dotnet/core/ - version: '7.0' - license: MIT - open_source: true - hosted_saas: false - category: Languages & Frameworks - sub_category: Frameworks (Full Stack) - image_url: https://img.stackshare.io/service/6403/default_91fc1f0ee315262794273aa1387eaf8fed8436e6.png - detection_source_url: https://github.com/guibranco/ViaCEP/blob/main/Tests/ViaCep.IntegrationTests/ViaCep.IntegrationTests.csproj - detection_source: Tests/ViaCep.IntegrationTests/ViaCep.IntegrationTests.csproj - last_updated_by: dependabot[bot] - last_updated_on: 2023-11-13 21:05:30.000000000 Z -- name: ASP.NET Core - description: A cross-platform .NET framework for building modern cloud-based web - applications on Windows, Mac, or Linux - website_url: docs.microsoft.com/en-us/aspnet/core/ - version: '7.0' - license: MIT - open_source: true - hosted_saas: false - category: Languages & Frameworks - sub_category: Frameworks (Full Stack) - image_url: https://img.stackshare.io/service/11331/asp.net-core.png - detection_source_url: https://github.com/guibranco/ViaCEP/blob/main/Tests/ViaCep.IntegrationTests/ViaCep.IntegrationTests.csproj - detection_source: Tests/ViaCep.IntegrationTests/ViaCep.IntegrationTests.csproj - last_updated_by: dependabot[bot] - last_updated_on: 2023-11-13 21:05:30.000000000 Z -- name: Git - description: Fast, scalable, distributed revision control system - website_url: http://git-scm.com/ - open_source: true - hosted_saas: false - category: Build, Test, Deploy - sub_category: Version Control System - image_url: https://img.stackshare.io/service/1046/git.png - detection_source: Repo Metadata -- name: GitHub Actions - description: Automate your workflow from idea to production - website_url: https://github.com/features/actions - open_source: false - hosted_saas: true - category: Build, Test, Deploy - sub_category: Continuous Integration - image_url: https://img.stackshare.io/service/11563/actions.png - detection_source: ".github/workflows/deep-source.yml" - last_updated_by: dependabot[bot] - last_updated_on: 2023-12-04 20:38:46.000000000 Z -- name: Moq - description: The most popular and friendly mocking framework for .NET - website_url: https://github.com/Moq/moq4 - open_source: true - hosted_saas: false - category: Build, Test, Deploy - sub_category: Testing Frameworks - image_url: https://img.stackshare.io/service/1628/1434934.png - detection_source: Tests/ViaCep.Tests/ViaCep.Tests.csproj - last_updated_by: Guilherme Branco Stracini - last_updated_on: 2023-01-14 13:13:39.000000000 Z -- name: NuGet - description: The package manager for .NET - website_url: https://www.nuget.org/ - open_source: false - hosted_saas: false - category: Build, Test, Deploy - sub_category: Package Managers - image_url: https://img.stackshare.io/service/2637/6I3oEOP4_400x400.jpg - detection_source: Tests/ViaCep.Tests/ViaCep.Tests.csproj - last_updated_by: Guilherme Branco Stracini - last_updated_on: 2023-01-14 13:13:39.000000000 Z -- name: Visual Studio - description: State-of-the-art tools and services that you can use to create great - apps for devices, the cloud, and everything in between. - website_url: http://msdn.microsoft.com/en-us/vstudio/aa718325.aspx - open_source: false - hosted_saas: false - category: Build, Test, Deploy - sub_category: Integrated Development Environment - image_url: https://img.stackshare.io/service/1451/SR2hUhQN.png - detection_source: ViaCep.sln - last_updated_by: Guilherme Branco Stracini - last_updated_on: 2020-03-28 07:52:09.000000000 Z -- name: xUnit - description: An open source, community-focused unit testing tool - website_url: http://xunit.github.io/ - version: 2.6.3 - open_source: true - hosted_saas: false - category: Build, Test, Deploy - sub_category: Testing Frameworks - image_url: https://img.stackshare.io/service/3077/ca5a327feb49ddfe1f4b11548907e5a1_400x400.png - detection_source_url: https://github.com/guibranco/ViaCEP/blob/main/Tests/ViaCep.IntegrationTests/ViaCep.IntegrationTests.csproj - detection_source: Tests/ViaCep.IntegrationTests/ViaCep.IntegrationTests.csproj - last_updated_by: Riju-bak - last_updated_on: 2023-07-25 22:31:28.000000000 Z -- name: Shell - description: A shell is a text-based terminal, used for manipulating programs and - files. Shell scripts typically manage program execution. - website_url: https://en.wikipedia.org/wiki/Shell_script - open_source: false - hosted_saas: false - category: Languages & Frameworks - sub_category: Languages - image_url: https://img.stackshare.io/service/4631/default_c2062d40130562bdc836c13dbca02d318205a962.png - detection_source: Repo Metadata -- name: Microsoft.AspNet.WebApi.Client - description: This package adds support for formatting and content negotiation to - System.Net.Http - package_url: https://www.nuget.org/Microsoft.AspNet.WebApi.Client - version: 6.0.0 - license: Apache-2.0 - open_source: true - hosted_saas: false - category: Libraries - sub_category: NuGet Packages - image_url: https://img.stackshare.io/package/12870/default_3ee9e3bfd65cbae9db28ab78b712a58bcd81af27.png - detection_source_url: https://github.com/guibranco/ViaCEP/blob/main/Src/ViaCep/ViaCep.csproj - detection_source: Src/ViaCep/ViaCep.csproj - last_updated_by: snyk-bot - last_updated_on: 2023-10-30 14:26:50.000000000 Z -- name: Newtonsoft.Json - description: Json.NET is a popular high-performance JSON framework for .NET - package_url: https://www.nuget.org/Newtonsoft.Json - version: 13.0.3 - license: MIT - open_source: true - hosted_saas: false - category: Libraries - sub_category: NuGet Packages - image_url: https://img.stackshare.io/package/nuget/image.png - detection_source_url: https://github.com/guibranco/ViaCEP/blob/main/Src/ViaCep/ViaCep.csproj - detection_source: Src/ViaCep/ViaCep.csproj - last_updated_by: snyk-bot - last_updated_on: 2023-10-30 14:26:50.000000000 Z -- name: xunit.runner.visualstudio - description: Visual Studio 2012+ Test Explorer runner for the xUnit.net framework - package_url: https://www.nuget.org/xunit.runner.visualstudio - version: 2.5.5 - license: Other - open_source: true - hosted_saas: false - category: Libraries - sub_category: NuGet Packages - image_url: https://img.stackshare.io/package/13260/default_d2db5a200c4fe2d08cbdb2174cc230708973870b.png - detection_source_url: https://github.com/guibranco/ViaCEP/blob/main/Tests/ViaCep.IntegrationTests/ViaCep.IntegrationTests.csproj - detection_source: Tests/ViaCep.IntegrationTests/ViaCep.IntegrationTests.csproj - last_updated_by: dependabot[bot] - last_updated_on: 2023-12-12 11:45:19.000000000 Z