NetCoreUsefullEndpoints-4 Nuget package
or NugetPackages there is a simple .NET Pack CLI command and many configurations
However, it is not so simple . See https://docs.microsoft.com/en-us/nuget/create-packages/package-authoring-best-practices .
In practice, I have a readme.md file ( for showing on nuget.org ) and a readme.txt file( for the programmer to show help after installing the package) THis is what I have in the csproj:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net6.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <FrameworkReference Include="Microsoft.AspNetCore.App" /> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" /> <PackageReference Include="RSCG_Static" Version="2021.12.18.2037" PrivateAssets="all" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> <None Include="../../../README.md" Pack="true" PackagePath="\" /> <None Include="../../../docs/nuget.png" Pack="true" PackagePath="\" /> <None Include="../readme.txt" Pack="true" PackagePath="\" /> </ItemGroup> <PropertyGroup> <Version>6.2022.722.712</Version> <Authors>Andrei Ignat</Authors> <Description>Some usefull extensions: error, environment, user</Description> <Title>NetCoreUsefullEndpoints</Title> <PackageId>NetCoreUsefullEndpoints</PackageId> <PackageTags>C#;.NET;ASP.NET Core;</PackageTags> <PackageReadmeFile>README.md</PackageReadmeFile> <RepositoryUrl>https://github.com/ignatandrei/NetCoreUsefullEndpoints</RepositoryUrl> <PackageProjectUrl>https://github.com/ignatandrei/NetCoreUsefullEndpoints</PackageProjectUrl> <RepositoryType>GIT</RepositoryType> <Copyright>MIT</Copyright> <PackageLicenseExpression>MIT</PackageLicenseExpression> <IncludeSymbols>true</IncludeSymbols> <PublishRepositoryUrl>true</PublishRepositoryUrl> <EmbedUntrackedSources>true</EmbedUntrackedSources> <Deterministic>true</Deterministic> <DebugType>embedded</DebugType> </PropertyGroup> <PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'"> <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> </PropertyGroup> <PropertyGroup> <TreatWarningsAsErrors>False</TreatWarningsAsErrors> <PackageIcon>nuget.png</PackageIcon> </PropertyGroup> </Project>
Also, the versioning will be a mixture of patron major version + calendar version FOr example there are 2 versions of https://www.nuget.org/packages/NetCoreUsefullEndpoints : 6.2022.722.712 – means for ASP.NET Core 6, on year 2022, month 7, day 22, hour 7, min 12 6.2022.721.1154 – means for ASP.NET Core 6, on year 2022, month 7, day 21, hour 11, min 54
You can see
-
as Swagger at https://netcoreusefullendpoints.azurewebsites.net/swagger
-
As BlocklyAutomation at https://netcoreusefullendpoints.azurewebsites.net/BlocklyAutomation
-
As package at https://www.nuget.org/packages/NetCoreUsefullEndpoints