v0.13
v0.13.1
Bugfixes
- Post build target for generating code was incorrect in
.targets
file, fixed
v0.13.0
.NET Upgrade
Baked now supports .NET 9! Below you can find a task list to upgrade your projects.
- [ ] Upgrade .NET and C# versions
- [ ] in projects
- [ ] in docker files
- [ ] in GitHub workflows
- [ ] Upgrade Baked version
- [ ] You can use `GeneratedRegex`es in properties instead of methods
- [ ] If `Base64` encoded information is carried in the url, use `Base64Url`
- [ ] `params` arguments should be converted from arrays to `IEnumerable`
- [ ] Use the new linQ extensions(`CountBy`, `AggregateBy`,
`Index<TSource>(IEnumerable<TSource>))`.
- [ ] Use new `TimeSpan.From*` overloads
- `FromDays`
- `FromHours`
- `FromMinutes`
- `FromSeconds`
- `FromMilliseconds`
- `FromMicroseconds`
- [ ] Use Keyed Services in Middlewares.
- [ ] Use semicolon instead of curly braces for empty class declarations
Upgrade .NET and C# versions
- Upgrade the project's
C#
language to13
. - Framework version upgrade to
net9.0
in the projects. - Framework and sdk version upgrade to
9
inDockerfile
. - Upgrade dotnet version
9
in Github actions.
Features
Application
now proviesGenerate
andStart
modes which can be run both together or individually with distinctApplicationContext
's.RunFlags
is introduced for configuring application mode
LayerBase
now proviesGetGeneratePhases()
method to enable registering specific phases to run atGenerate
modeService
andData Source
recipies now triggersGenerate
mode run at post buildDomain
layer'sAddDomainTypes
andBuildDomainModel
phases now only runs inGenerate
modeCodeGeneration
layer'sGenerateCode
andCompile
phases now only runs inGenerate
modeCodeGeneration
layer now introducesIGeneratedFileCollection
which enables generating data files inGenerate
modeCodeGeneration
layer now introducesGeneratedContext
atBuildConfiguration
phase which provides access to generated assemblies and files inStart
modeDomain
layer now provides aDomainServicesCollection
configuration target inGenerate
mode which will then be used to generateIServiceAdder
implementation
Improvements
CodeGeneration
layer now compiles and saves generated assemblies and files to entry assembly location withASPNETCORE_ENVIRONMENT
subfolderDomainAssemblies
feature now generatesICasterConfigurer
implementations andTagDescriptor
RequestResponseExample
json files inGenerate
mode
AutoMapOrm
feature now generatesIServiceAdder
implementations fromDomainModel
inGenerate
modeGiveMe.PropertyOf<T>
helper is renamed toThePropertyOf<T>
GiveMe.MethodOf<T>
helper is renamed toTheMethodOf<T>
- Following features now use
DomainServicesModel
target to register services inGenerate
modeTransient
Scoped
Singleton
GiveMe.PropertyOf<T>
helper is renamed toThePropertyOf<T>
GiveMe.MethodOf<T>
helper is renamed toTheMethodOf<T>
- Removed namespaces from
SchemaId
created in Swagger. ProblemDetails
feature now no longer searches domain assemblies andIExceptionHandler
implementations are required to be added inConfigurationOverrider
featureLayerConfigurator
now providesUse<T>
helper to use phase artifacts and no longer provides access to application context
Library Upgrades
Package | Old Version | New Version |
---|---|---|
coverlet.collector | 6.0.2 | 6.0.4 |
Microsoft.AspNetCore.Mvc.NewtonsoftJson | 8.0.8 | 9.0.1 |
Microsoft.AspNetCore.Mvc.Testing | 8.0.10 | 9.0.1 |
Microsoft.AspNetCore.Authorization | 8.0.8 | removed |
Microsoft.CodeAnalysis.CSharp | 4.11.0 | 4.12.0 |
Microsoft.CodeAnalysis.Analyzers | 3.3.4 | removed |
Microsoft.Extensions.Caching.Abstraction | 8.0.0 | 9.0.1 |
Microsoft.Extensions.Configuration.Abstractions | 8.0.0 | 9.0.1 |
Microsoft.Extensions.Configuration.Binder | 8.0.2 | 9.0.1 |
Microsoft.Extensions.FileProviders.Abstractions | 8.0.0 | 9.0.1 |
Microsoft.Extensions.Logging.Abstractions | 8.0.2 | 9.0.1 |
Microsoft.Extensions.TimeProvider.Testing | 8.10.0 | 9.1.0 |
Microsoft.NET.Test.Sdk | 17.11.1 | 17.12.0 |
MySql.Data | 9.1.0 | 9.2.0 |
NHibernate.Extensions.Sqlite | 8.0.14 | 9.0.0 |
NUnit | 4.2.2 | 4.3.2 |
Npgsql | 8.0.5 | 9.0.2 |
Oracle.ManagedDataAccess.Core | 23.6.0 | 23.7.0 |
Shouldly | 4.2.1 | 4.3.0 |
Swashbuckle.AspNetCore | 6.9.0 | 7.2.0 |
Swashbuckle.AspNetCore.Annotations | 6.9.0 | 7.2.0 |