Hi,
I am having a strange issue where the output is rebuilt even if the source is not modified. This happens only for projects with vsct file as part of the project.
I have created some vspackages in my solution.
1) When the project(vspackage) is built for the first time, it builds/rebuilds and creates an output. Modified Time of dll is 12:57:03
2) Now, without making any changes issued a build command (Build -> Build Project), the output is not built as there are no changes in the source. Modified time of the dll is 12:57:03
3) Now, again without making any changes, build command(Build -> Build Project) has been issued, this time the output is recomputed(though the source files haven't been changed). Note: It doesn't compile the cs file instead, it links the *,obj files and create a new dll, I can see this from the modified time of the dll. Modified Time of the dll is 12:57:49
If I remove the vsct file from the project, this issue is not reproducible. Irrespective of any number of builds the modified time of dll is same if the source is not modified.
How did I find vsct is the culprit?
I was comparing the build output of the step 2 and step 3, that's where I found that the dll is rebuilt if there is any change in *.cto file (created in the intermediate build directory), in turn the cto file is built when there is any change in the vsct, resource, etc.,
Note: In all the above experiments vsct file was not changed/modified in-between different builds.
Any help on this would be appreciated...
Thanks,
Deena