Excluding generated files from source control, include in Visual Studio
Auto generated files you typically don’t want to have under source control. I had this problem when building an Wix installer project, where I gather all files I want to include in my installer via the HeatDirectory task. This generates a file, called for example myfiles.wxs, which I need in my Visual Studio project to compile a valid Microsoft installer. Since the rest of my project depends on this wxs-file I want to include it in my projectfile, but exclude it from source control.
To fix this, I used the following way of working:
Posted in DevOps at July 14th, 2017. No Comments.