Is there any way to disable or opt-out of the automatic addition of new files for ASP.NET 5 in Visual Studio 2015?
Our software development shop has a single user checkout policy in place, where developers can only check out files one at a time. This is causing issues with ASP.NET 5, as any generated files are automatically being added to the project in Visual Studio 2015, which in turn are causing them to be added to TFS. This causes one developer to block another, as they cannot build and generate the same output files.
For example, Typescript files are being compiled and copied to folders under wwwroot. The first developer that does this causes Visual Studio 2015 to add those files to the solution, which in turn causes them to be added to TFS. The next developer then can't build because these files are currently checked out to another developer.
We have been able to temporarily prevent this by cloaking the wwwroot folder in TFS. However, we would not want to have every developer have to remember to do this. Plus we have to decloak wwwroot to make code changes to web.config, for example, and then have to re-cloak it afterwards. And then developers have to decloak to get the latest version of the changes to this file, then re-cloak afterwards.
We would rather explicitly choose to add a file to the project in Visual Studio 2015, so generated files aren't automatically added to the project.
We also cannot change the TFS checkout policy to allow multi-user checkouts. If we could set a multi-user checkout policy at a folder level in Source Control Explorer in TFS 2010, that might solve some of these problems as well. But TFS 2010 doesn't allow this.
Error - {x} error encountered attempting to perform the add operation on x item(s) First error encountered: The item '{filename}' has been cloaked. See output tool window for information on any other errors.