[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: RE: Visual Studio.Net and Subversion?

From: Joseph Anderson <JosephA_at_HECB.WA.GOV>
Date: 2004-03-04 19:38:31 CET

I'm using a modification of this approach. I'm using standard class
library projects
instead of web projects in Visual Studio 2003, but instead of manually
creating the
virtual directory in IIS, I use NAnt called from a post-build event in
VS to create
the virtual directory.

        http://nant.sourceforge.net/
        http://nantcontrib.sourceforge.net/ - for the mkiisdir task

This approach has several benefits: First, when a new project is added,
other developers
on the team don't have to worry about setting up the virtual
directories. Second, all
developers have the exact same virtual directory structure. Third,
since the virtual
directories are created after each and every build, I can have multiple
working copies
on my machine, and the virtual directory will point to whichever one I'm
currently
working on.

The post-build event I'm using creates a virtual directory with the same
name as the
project:

    nant -buildfile:"$(SolutionDir)ConfigIISDir.xml"
-D:VDIRNAME="$(ProjectName)" -D:VDIRPATH="$(ProjectDir)."

and the NAnt buildfile (located at the solution root, and named
ConfigIISDir.xml) looks
like this:

<?xml version="1.0" ?>
<project name="Configure IIS vdir" default="configiis" basedir=".">
        <description>This NAnt build file configures a IIS virtual
directory.</description>
        <property name="debug" value="true" />
        <target name="configiis" description="sets up virtual directory
for this project">
                <mkiisdir dirpath="${VDIRPATH}" vdirname="${VDIRNAME}"
/>
        </target>
</project>

- Joseph

--
Joseph Anderson
Computer Programmer
Washington State Higher Education Coordinating Board
-----Original Message-----
From: Demyanovich, Craig - Apogent [mailto:cdemyanovich@apogent.com]
Sent: Thursday, March 04, 2004 7:15 AM
To: 'users@subversion.tigris.org'
Cc: 'onion@develop.com'
Subject: RE: Visual Studio.Net and Subversion?
To subversion users and Fritz Onion,
In response to a post to the subversion [1] users mailing list, I
skimmed a
page [2] about ASP.NET without web projects.  Below is my team's
approach to
doing web projects using version control (CVS currently).
1.  Create a solution folder, e.g., CorproateIntranet.
2.  Create in CorporateIntranet a folder named webapp.
3.  View the properties of the webapp folder.
4.  Click on the Web Sharing tab.
5.  Enable web sharing on the webapp folder, using the alias
CorporateIntranet.
6.  Click on the Security tab.
7.  Grant to the local ASPNET account access to the webapp folder,
accepting
the defaults.
8.  Create a new web project using the address:
http://localhost/CorporateIntranet.
Now all of your files are stored locally.  You can share this project
via
version control (we use CVS) easily.  You can deploy using whatever
technique you like.  Also, in the new ASP.NET resource kit [3],
Microsoft
includes an article on web projects and source control.
Perhaps someone could try this approach with subversion and let the
group
know how it works.  Unfortunately, I don't have the time now to do so
myself.
FYI,
Craig
[1] http://subversion.tigris.org
[2]
http://staff.develop.com/onion/Samples/aspdotnet_without_web_projects.ht
m
[3] http://msdn.microsoft.com/asp.net/asprk/
<<<<<<<<<<<<<   >>>>>>>>>>>>>
Craig Demyanovich
Software Developer
Apogent Technologies, Inc.
Tel:  269-544-7514
Fax:  269-544-7409
cdemyanovich @ apogent dot com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 4 19:37:27 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.