fix(codegen): Reverts & Disables codegen (for now) (#625)
After speaking with the C# devs, it is clear that code gen is not ready. I can get around this by doing the following: 1. Creating a library 2. Splitting out the schema writing from the source generator 3. Moving the schema loading to `AdditionalFiles` 4. Writing a new post-build application using Roslyn to write the schema files after building.
This commit is contained in:
parent
6e9108302a
commit
f2d44e0283
84 changed files with 1053 additions and 487 deletions
|
|
@ -41,32 +41,32 @@
|
|||
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
|
||||
<PackageReference Include="Zlib.Bindings" Version="1.5.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SerializationGenerator\SerializationGenerator.csproj">
|
||||
<SetTargetFramework>TargetFramework=netstandard2.0</SetTargetFramework>
|
||||
<OutputItemType>Analyzer</OutputItemType>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Target Name="AddSourceGeneratedFiles" AfterTargets="CoreCompile">
|
||||
<ItemGroup>
|
||||
<Compile Include="Generated\**" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
<Target Name="RemoveSourceGeneratedFiles" BeforeTargets="CoreCompile">
|
||||
<ItemGroup>
|
||||
<Compile Remove="Generated\**" />
|
||||
</ItemGroup>
|
||||
<RemoveDir Directories="Generated" />
|
||||
</Target>
|
||||
<ItemGroup>
|
||||
<CompilerVisibleProperty Include="SerializableMigrationPath" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Migrations" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<SerializableMigrationPath>.\Migrations\</SerializableMigrationPath>
|
||||
</PropertyGroup>
|
||||
<!-- <ItemGroup>-->
|
||||
<!-- <ProjectReference Include="..\SerializationGenerator\SerializationGenerator.csproj">-->
|
||||
<!-- <SetTargetFramework>TargetFramework=netstandard2.0</SetTargetFramework>-->
|
||||
<!-- <OutputItemType>Analyzer</OutputItemType>-->
|
||||
<!-- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>-->
|
||||
<!-- <PrivateAssets>all</PrivateAssets>-->
|
||||
<!-- </ProjectReference>-->
|
||||
<!-- </ItemGroup>-->
|
||||
<!-- <Target Name="AddSourceGeneratedFiles" AfterTargets="CoreCompile">-->
|
||||
<!-- <ItemGroup>-->
|
||||
<!-- <Compile Include="Generated\**" />-->
|
||||
<!-- </ItemGroup>-->
|
||||
<!-- </Target>-->
|
||||
<!-- <Target Name="RemoveSourceGeneratedFiles" BeforeTargets="CoreCompile">-->
|
||||
<!-- <ItemGroup>-->
|
||||
<!-- <Compile Remove="Generated\**" />-->
|
||||
<!-- </ItemGroup>-->
|
||||
<!-- <RemoveDir Directories="Generated" />-->
|
||||
<!-- </Target>-->
|
||||
<!-- <ItemGroup>-->
|
||||
<!-- <CompilerVisibleProperty Include="SerializableMigrationPath" />-->
|
||||
<!-- </ItemGroup>-->
|
||||
<!-- <ItemGroup>-->
|
||||
<!-- <Folder Include="Migrations" />-->
|
||||
<!-- </ItemGroup>-->
|
||||
<!-- <PropertyGroup>-->
|
||||
<!-- <SerializableMigrationPath>.\Migrations\</SerializableMigrationPath>-->
|
||||
<!-- </PropertyGroup>-->
|
||||
</Project>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue