How to suppress this warning?

  • Thread starter Thread starter Richard.Haggard
  • Start date Start date
R

Richard.Haggard

Guest
How can this build time warning be fixed/suppressed?

At build time, the following warning is generated:

A custom tool 'TextTemplatingFileGenerator' is associated with file 'Models\SecurityKey.tt', but the output of the custom tool was not found in the project. You may try re-running the custom tool by right-clicking on the file in the Solution Explorer and choosing Run Custom Tool.

This warning is the result of a prebuild event command line which generates a temporary file that exists just long enough to be included in the build of a project and then it is deleted. Since the file exists neither before nor after a build it cannot be added to the project and thus it is unclear how to get rid of the reason that the warning is generated. Is there some way to suppress the error? The normal method, a #pragma, won't work in this case because no warning number is issued in association with the warning itself.




Richard Lewis Haggard

Continue reading...
 
Back
Top