开发者

Add a project to a Visual Studio solution, without the project going into Perforce

开发者 https://www.devze.com 2023-01-21 16:33 出处:网络
I know this is possible because one of my older solution files has a mix of some projects under source control and some not.

I know this is possible because one of my older solution files has a mix of some projects under source control and some not.

However I can't seem to reproduce that 开发者_运维知识库configuration with a newer solution. Every time I add a project to the solution it acquires a yellow cross and under Pending Checkins the project is listed as a Newly added file.

This is with the Perforce plugin for VS2008.

I have tried adding a brand new project, vs an existing project. I have tried p4 obliterate. I have tried disconnecting and reconnecting source control. Binding and unbinding.

After all this, every time I try and add the project it gets a pesky little yellow cross. I can't seem to tell Perforce and VS that, while I do want source control on the majority of the solution, I don't want this one project file under source control.


I see now that the way to have multiple projects under one solution, some projects under source control, and others not ... is to avoid having the solution itself under source control. That way I get just the projects I'm interested in checked in and out and the rest ignored.

Which, in fact, on closer inspection, is how I've managed (by muddle, mistake or design, I can't remember) to solve this in the past.


Under File, Source Control, go into the Bindings dialog. Click the project in question and unbind it. You can leave the other projects, and the solution itself, bound to source control.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号