Monday, November 19, 2007
Posted on Monday, November 19, 2007 8:03:02 PM (Mountain Standard Time, UTC-07:00)  Comments [1] | 
Categories: .NET | ArcDeveloper | Visual Studio 2005

In the last post, I said I'd post shortly so - here's the skinny on the code that's currently in the ArcDeveloper Assembla repository.

The VSTemplates Project

Back in September I posted about using MSBuild to package up Visual Studio Item templates. I've uploaded this code into the repository, and it's ready to roll. The templates are setup for ArcDeveloper projects (i.e. an MIT license, "ArcDeveloper" etc.), but you can easily modify this and re-run the MSBuild script to create a set customized for your company / team.

At this time, there are just 3 templates - class, interface and non-COM class - with both C# and VB.NET flavors. I've got ideas for others, and will be adding more as they come up in my development.

Running MSBuild

If you have edited the templates, you'll want to run the ArcDeveloper.Templates.Build file. Here's how you do that:

  1. Edit the .build file so the SolutionDir and BuildFolder are correct for your machine.
  2. Open a Visual Studio Command Prompt
  3. cd to the folder with the .build file
  4. run msbuild arcdeveloper.templates.build

The build script will zip up the templates (as required by Visual Studio) and drop them into the BuildFolder. In order to have Visual Studio pick these up, you need to tell it where your Item Templates are. Go to Tools --> Options and select the Projects and Solutions item. Set the User Item Template location.

vs-settings

Now when you add an item to Visual Studio, you'll have some additional options

vs-items

Get It!

If you just want the templates, you can download them from here: http://www.assembla.com/spaces/files/arcdeveloper

If you want to be able to build the templates, grab the code from Subversion: http://svn2.assembla.com/svn/arcdeveloper

Sunday, November 25, 2007 11:38:45 PM (Mountain Standard Time, UTC-07:00)
I gave this activity to my students. Right now, each of them is building their template. It’s just too bad that I’m not so certain how to rate their templates.
Comments are closed.