bkaradzic / GENie

GENie - Project generator tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add flag for DisableFastUpToDateCheck in VS builds

noct opened this issue · comments

VS by default does it's own check for up-to-date builds which prevents the pre-build step from running. It's desirable to disable this if the pre-build step does code generation which affects the build.

Happy to provide a PR for this (with some advice on what to name the flag).

Is this per file flag?

So all prebuild steps will be done before dependency check?

Also how you plan to support this with Make?

It seems it could be set per file:
https://stackoverflow.com/a/49639051

<PropertyGroup>
    <PostBuildEvent>...
    <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>

I'm a dev on the VS project system team and came across this issue while searching for places where people use DisableFastUpToDateCheck.

It's desirable to disable this if the pre-build step does code generation which affects the build.

The fast up-to-date check can save you a lot of time during build, so it's generally a bad idea to turn it off.

If you have generation that is not running during build because the project is considered up-to-date then the best fix is to expose the source files to that generation as UpToDateCheckInput items. In that way, the project system can detect when those inputs change and schedule builds correctly.

I know this is an old discussion, but it ranks highly on search results for this feature so even if it doesn't apply to this project, this comment may help others.