-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically add generated files to fsproj #20
Comments
This might be something we cannot get around without considerable work. If we were to also generate the includes, we'd have to either:
I think that if we mention it in the docs, it would be fine, because once you know where the migrations are created you can just add As much as I love ordered imports, this is one of the problems that I ran into a few times while generating F# code for other projects. Is this a must have, or can we do without it? :) |
Can we just update Bricelam.EntityFrameworkCore.FSharp.targets with this:? <ItemGroup>
<CompileAfter Include="$(MSBuildProjectDirectory)Migrations\**\*.fs" />
</ItemGroup> |
Well, probalby with some hooks for those who deviate from the defaults... <PropertyGroup>
<EFCoreMigrationsDir Condition="'$(EFCoreMigrationsDir)' == ''">
$(MSBuildProjectDirectory)Migrations\
</EFCoreMigrationsDir>
</PropertyGroup>
<ItemGroup>
<CompileAfter Include="$(EFCoreMigrationsDir)**\*.fs" />
</ItemGroup> |
We may even be able to
|
Closing as duplicate of #43 |
Both scaffolding and creating migrations results in new files being added to the project
Unlike C# the compilation order of F# is important so we will need to add them to the fsproj in the appropriate place within the project
Currently any generated files have to be added to the fsproj file manually
The text was updated successfully, but these errors were encountered: