fix: Moves codegen to its own repo (#918)

- [X] Replace serialization generator with nuget
- [X] Replace schema migration with dotnet bool
- [X] Add ability to run migrations in VS/Rider using a project build
This commit is contained in:
Kamron Batman 2022-02-12 17:58:42 -08:00 • committed by GitHub
parent 01a41732f1
commit 48f1fe3384
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 48 additions and 4727 deletions

View file

@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<RootNamespace>Schema_Migrations</RootNamespace>
</PropertyGroup>
<Target Name="Compile" />
<Target Name="Build" />
<Target Name="SchemaMigration" BeforeTargets="BeforeBuild">
<Message Importance="High" Text="Installing schema generator tool" />
<Exec Command="dotnet tool restore" />
<Message Importance="High" Text="Generating migration schemas..." />
<Exec Command="dotnet tool run ModernUOSchemaGenerator '$(ProjectDir)..\..\ModernUO.sln'" />
</Target>
</Project>