Skip to content

Commit

Permalink
Enhance support for .NET 6.0 and .NET 8.0 with documentation updates (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
guibranco authored Sep 2, 2024
1 parent eebbda3 commit fadfd0b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 360 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -74,7 +74,7 @@ var viaCepClient = container.GetService<IViaCepClient>();
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)

Expand All @@ -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)
4 changes: 2 additions & 2 deletions Src/ViaCep/ViaCep.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

<PropertyGroup>
<ProjectGuid>A251D320-410E-48F1-889D-9F59EB8CFEB9</ProjectGuid>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net8.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<LangVersion>latest</LangVersion>
<Company>Guilherme Branco Stracini</Company>
<Authors>Guilherme Branco Stracini</Authors>
<Copyright2023 Guilherme Branco Stracini. All rights reserved.</Copyright>
<Copyright2024 Guilherme Branco Stracini. All rights reserved.</Copyright>
<Description>The ViaCep API/WebService client for .NET projects (both .NET Core and .NET Framework)</Description>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageProjectUrl>https://guibranco.github.io/ViaCEP/</PackageProjectUrl>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand Down
2 changes: 1 addition & 1 deletion Tests/ViaCep.Tests/ViaCep.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<ProjectGuid>2F57B9CD-5505-4456-B9FE-F91DCB4476D6</ProjectGuid>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 4.1.{build}
version: 4.2.{build}
skip_tags: true
image: Visual Studio 2022
configuration: Release
Expand Down
169 changes: 0 additions & 169 deletions techstack.md

This file was deleted.

Loading

0 comments on commit fadfd0b

Please sign in to comment.