The HttpClientToCurl is a NuGet package for generating curl script of HttpClient in .NET ( C# | CSharp | Dotnet ) supported features: Post, Get, Put, and Delete. content types: application/json, text/xml, application/x-www-form-urlencoded
It's better to use the readme file content in nuget description.
To achieve this we should create a HttpClientToCurlGenerator.nuspec file in the project like this:
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<!-- Required elements-->
<id>HttpClientToCurlGenerator</id>
<version>2.0.3</version>
<description>An extension for generating Curl script of HttpClient</description>
<authors>Amin</authors>
<summary>
This extension will help you to see whatever is set in HttpClient in the form of a curl script.
</summary>
<releaseNotes>
...
</releaseNotes>
<projectUrl>https://github.com/amingolmahalle/HttpClientToCurlGenerator</projectUrl>
<repository type="git" url="https://github.com/amingolmahalle/HttpClientToCurlGenerator.git" branch="main" />
<license type="expression">MIT</license>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>csharp HTTP httpclient curl</tags>
<icon>icon.png</icon>
<readme>README.md</readme>
</metadata>
<!-- Optional 'files' node -->
<files>
<file src="README.md" />
</files>
</package>
It's better to use the readme file content in nuget description. To achieve this we should create a
HttpClientToCurlGenerator.nuspec
file in the project like this: