I'm attempting to set up a Continuous Integration process for a legacy VB.Net ASP.Net Forms application, using Visual Studio 2015 and an on premises TFS 2013 server. However, I'm struggling to get a Build Definition to successfully build my application.
The build fails with the following errors.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets (182): Could not copy the file "appSettings.config" because it was not found.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets (182): Could not copy the file "connectionStrings.config" because it was not found.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets (182): Could not copy the file "globalization.config" because it was not found.
The three files mentioned appSettings.config, connectionStrings.config and globalization.config are all configSource config files (external config files that web.config references) that I don't want to use as part of my CI MSBuild (I'm hoping to use a transform on the CI system web.config to swap in the necessary settings).
Their properties are marked as Build Action: Content and Copy to output directory: Do not copy. Are these file properties correct to tell MSBuild to ignore them? I tried switching to Build Action: None with no success.
Do I need to add extra configuration to my project file or MSBuild settings to get it to just ignore them?