Force File Reload Before Build
Posted
by Byron Ross
on Stack Overflow
See other posts from Stack Overflow
or by Byron Ross
Published on 2010-03-30T04:26:49Z
Indexed on
2010/03/30
4:33 UTC
Read the original article
Hit count: 426
We have a tool that generates some code (.cs) files that are used to build the project.
The tool is run during the pre-build step, but the files are updated in the solution only after the build, which means the build needs to be performed twice to clear the errors after a change to the input.
Example:
- Modify Tool Input File
- Run Build
- Tool Runs and changes source file
- Build Fails
- Run Build
- Tool Runs and changes source file (but it doesn's actually change, because the input remains the same)
- Build Succeeds
Any ideas how we can do away with the double build, and still let our tool be run from VS?
Thanks guys!
© Stack Overflow or respective owner