Please confirm if reload project ignores other changes being made to project file?
I think so, the SCC will deny the adding queries if the file conflicts with the existing one. We need to have our mechanism to re-adding the new item, and call it in OnLoadComplete method if the project supports IVsAsynchOpenFromSccProjectEvents. Such as:
l Saving the adding item in a container.
l Empty the container in IVsTrackProjectDocumentsEvents2.OnQueryAddFiles.
l In IVsAsynchOpenFromSccProjectEvents.OnLoadComplete method, if the container has items, re-adding them.
Sincerely,
Wesley
Please mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.