0

How can I tell whether a solution needs to be built (meaning, a change was made since last build)? I use the Solution4 Interface

Tar
  • 8,529
  • 9
  • 56
  • 127

1 Answers1

1

This related question has the answer you need, with examples

How to get notification when a successful build has finished?

"to figure out when a successful build has finished, you need to use a combination of the two build events:

OnBuildProjConfigDone and OnBuildDone"

In addition, you can also use

Solution4.Saved property

to check if the solution has changed since last successful build.

You should assume that on open, a solution needs to be built.

Community
  • 1
  • 1
Thalia
  • 13,637
  • 22
  • 96
  • 190
  • Nope. `Solution4.Saved` is never `true`, have no idea why - whether I change any `*.cs` file without saving it, or change and then save it - it just doesn't change. Same thing with every `EnvDTE.Project` object in my solution: `EnvDTE.Project.Saved` is always `true`, no matter what I do, and `EnvDTE.Project.IsDirty` is always `false`, again, whatever I try. Any idea? – Tar Sep 02 '14 at 14:48