[p4] .NET & Perforce

Scott Hunter paraquat at gmail.com
Mon Mar 14 10:24:57 PST 2005

We took the plunge about a month ago and converted our large web
application to "Web projects without Web Projects" using the guide
linked below.  Overall, I'd say it was a positive improvement. 
However, our change was not directly motivated by SCC integration, but
instead to get rid of the asinine dependence on Virtual Directories in
IIS that would prevent you from even opening the solution if your
environment was not exactly correct.

Afterward, opening the solution is indeed faster, and everything still
works the same, including SCC, with a few caveats:

1. You'll need to modify your visual studio installation slightly to
allow creating web pages in a non-web project.  This is easy, and
details are accurately described on the wiki page below.
2. The context menu under Add when you right click a folder will not
list the web file types.  You need to go to the Add New Item dialog. 
Not a big deal.
3. It is much easier to convert an existing web project to a library
project than it is to create a library project from scratch that acts
like a web project.  To convert a web project, you only need to change
2 or 3 places.  Figuring out all the magical settings and paths in
order to get a library project to act like a web project is more work.

Hope this helps, and good luck!

Scott Hunter
Ternary Software

On Mon, 14 Mar 2005 11:25:02 -0500, Tom Duffy <tomd at dbsoft.com> wrote:
> Great tip about using library projects vs. web projects.  I have a large
> app underway that contains several web projects - does anyone have
> experience using lib. Project vs. web projects in the way described?
> Any 'gotchas' I should know about before I have all web project become
> library projects?
> -----Original Message-----
> From: perforce-user-admin at perforce.com
> [mailto:perforce-user-admin at perforce.com] On Behalf Of Ben Lowery
> Sent: Wednesday, December 08, 2004 7:53 AM
> To: perforce-user at perforce.com
> Subject: Re: [p4] .NET & Perforce
> Hi Jim,
> We're a large shop with a small .NET division and we too ran into that
> problem.  We've never really solved it directly, but we have worked
> around it to a large degree.  After much gnashing of teeth, we've come
> to realize that the SCC plugin for Perforce just doesn't work well, so
> we went our own route.  We hook up external commands in VS.NET to the
> relevant p4 commands we use (p4 add, p4 edit, p4 delete, etc) and then
> map those to keyboard shortcuts (ctrl-p ctrl-a for add for example).
> Along with using an appropriate P4CONFIG configuration file to specify
> the appropriate client per project, this works quite well.
> If you're really sold on the SCC plugin, another route to check out is
> this: don't use Web Projects.  You can use a Library project instead
> along with some neat little hacks to the VS.  It works quite well, and
> in my opinion, is far superior to using Web Projects for team-based
> projects.  You can find details @
> http://pluralsight.com/wiki/default.aspx/Fritz.AspNetWithoutWebProjects
> -b
> On Tue, 23 Nov 2004 13:31:46 -0600, Jim Wilson
> <jim.wilson at fhlbtopeka.com> wrote:
> >
> > We recently purchased Perforce and we are a .NET shop and the problem
> > is hooking up the web projects to Perforce. According to their website
> > this isn't supported, I am wondering if anyone has had any luck in
> > getting web solutions up and running. Thanks for any guidance.
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
> _______________________________________________
> Come to the 2005 Perforce User Conference, April 14 & 15 in Las Vegas.
> Learn more: http://www.perforce.com/conf
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user

More information about the perforce-user mailing list