diff --git a/README.md b/README.md index 3cdccd6..f2613f4 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ For more detailed information about Primitively, check out [primitively.net][pri To get started, first add the [Primitively](https://www.nuget.org/packages/Primitively/) NuGet package to your project by running the following command: ```sh -dotnet add package Primitively --prerelease +dotnet add package Primitively ``` Open your csproj file and edit the package reference, setting `PrivateAssets="All"`. The file will look something like this afterwards: @@ -57,7 +57,7 @@ Open your csproj file and edit the package reference, setting `PrivateAssets="Al - + @@ -105,19 +105,19 @@ Here's some source generation in action using each of the above attributes: - If you want to use your Primitively types in an ASP.NET core web project. Add the [Primitively.AspNetCore.Mvc](https://www.nuget.org/packages/Primitively.AspNetCore.Mvc/) NuGet package to your project by running the following command. It contains model binding support for your Primitively types, which means you can use your Primitively types in request parameters. ```sh -dotnet add package Primitively.AspNetCore.Mvc --prerelease +dotnet add package Primitively.AspNetCore.Mvc ``` If you are also generating **swagger** documentation for a web API. Add the [Primitively.AspNetCore.SwaggerGen](https://www.nuget.org/packages/Primitively.AspNetCore.SwaggerGen/) NuGet package to your project by running the following command. ```sh -dotnet add package Primitively.AspNetCore.SwaggerGen --prerelease +dotnet add package Primitively.AspNetCore.SwaggerGen ``` When using `FluentValidation` to validate your web requests. Add the [Primitively.FluentValidation](https://www.nuget.org/packages/Primitively.FluentValidation/) NuGet package to your project by running the following command. It contains two extension methods which validate any Primitively type with zero DI configuration. ```sh -dotnet add package Primitively.FluentValidation --prerelease +dotnet add package Primitively.FluentValidation ``` ### Dependency injection @@ -152,7 +152,7 @@ builder.Services.AddPrimitively(options => If you want to store your Primitively types in MongoDB they will need a BSON serializer. Add the [Primitively.MongoDB.Bson](https://www.nuget.org/packages/Primitively.MongoDB.Bson/) NuGet package to your project by running the following command. It contains highly configurable BSON serialization support for your Primitively types. ```sh -dotnet add package Primitively.MongoDB.Bson --prerelease +dotnet add package Primitively.MongoDB.Bson ``` ### Dependency injection diff --git a/src/Directory.Build.props b/src/Directory.Build.props index ebdec12..181d868 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -25,7 +25,7 @@ $(MSBuildThisFileDirectory)..\artifacts - 1.4.17 + 1.4.19 diff --git a/src/Primitively/Structs.cs b/src/Primitively/Structs.cs index 95cf9cf..39af36e 100644 --- a/src/Primitively/Structs.cs +++ b/src/Primitively/Structs.cs @@ -209,7 +209,7 @@ private static void GenerateRepositoryFile(SourceProductionContext context, List if (!dataTypes.Any()) { - yieldStatements.Add($"{Padding}return global::System.Linq.Enumerable.Empty();"); + yieldStatements.Add($"{Padding}return global::System.Linq.Enumerable.Empty();"); } else {