So, finally I was able to solve this after a whole day struggle. Like Digg a mountain and got a mice :).
Actually TfvcTemplate.12.xaml seems to be executing MsBuild with parallel processing enabled (/m), while in my VS Solution, Wix project was added independently i.e. in Build Order it was the last project to build, but I never set other projects as its dependencies. So MSBuild found that it has no dependency and ignored its Build Order and simply building it either on random order or as first project. So naturally installer project was unable to find its source files and so failing. I verified this phenomena by removing /m:1 argument to MSBuild and declaring all other projects as Dependencies of Wix Project: i.e. in VS, PROJECT –> Project Dependencies. This caused MsBuild to build all other projects before Wix Project and now Wix is able to find its Source files properly… Here is the screenshot for illustration: <http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/file/n7597312/TfvcTemplate_MSBuildConfig.png> -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/TFS-Wix-can-t-see-its-source-files-if-using-TfvcTemplate-12-xaml-tp7597267p7597312.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users