Disable the automatic addition of new files in Visual Studio 2015 for ASP.NET 5 projects

Is there a way to disable or refuse to automatically add new files for ASP.NET 5 in Visual Studio 2015?

Our software development store has a single user verification policy, where developers can only scan files one at a time. This causes problems with ASP.NET 5, since any generated files are automatically added to the project in Visual Studio 2015, which, in turn, causes them to be added to TFS. This forces one developer to block another, because they cannot create and generate the same output files.

For example, Typescript files are compiled and copied to folders under wwwroot. The first developer to do this forces Visual Studio 2015 to add these files to the solution, which in turn forces them to be added to TFS. The next developer then cannot build, because these files are currently being checked by another developer.

We were able to temporarily prevent this by hiding the wwwroot folder in TFS. However, we do not want every developer to remember to do this. In addition, we must cancel wwwroot, for example, to make changes to the web.config file, and then override it again. And then the developers have to fade out to get the latest version of the changes in this file, and then re-hide it.

We would prefer to explicitly add the file to the project in Visual Studio 2015, so the generated files are not automatically added to the project.

We also cannot change the TFS validation policy to allow multi-user validation. If we could set up a folder-wide user-level validation policy in Source Control Explorer in TFS 2010, this could also solve some of these problems. But TFS 2010 does not allow this.

+5
source share
1 answer

I believe that this is one of those situations when you are struggling with a tool / process, and not just "go with the flow." Either you need to reform the validation / verification process to comply with the new ASP.NET 5 methods (including the new xproj format), or you need to stick to the old technology that supports your process.

+1
source

Source: https://habr.com/ru/post/1237209/


All Articles