MichelZ / MSBuild.EntityFrameworkCore.RemoveDesignerCompilation

Makes sure that only the last N .Designer.cs files from Entity Framework Core Migrations are compiled.
MIT License
5 stars 0 forks source link

RDC_DesignerFileCountToKeep param not working #4

Open strigefleur opened 11 months ago

strigefleur commented 11 months ago

Installed and used as follows

    <ItemGroup>
        <PackageReference Include="MSBuild.EntityFrameworkCore.RemoveDesignerCompilation" Version="0.1.0-alpha6" />
    </ItemGroup>

    <PropertyGroup>
        <RDC_Enabled>true</RDC_Enabled>
        <RDC_DesignerFileCountToKeep>5</RDC_DesignerFileCountToKeep>
    </PropertyGroup>

On build it removes all designer files, so the count property gets ignored somehow.

.net deps @ 7.0.13

babriSakaiTech commented 10 months ago

Same. It removes all the designer files despite passing it RDC_DesignerFileCountToKeep with some value.

freddiescott commented 9 months ago

It is doing the same for me too.