Partilhar via


VS automation samples

I've been asked for suggestions for a list of VS automation samples that would help solve tricky tasks that I've observed users working on during usability studies. Just wanted to check if anybody has such a list of samples that they would like us to provide.

One example from a recent study that I can think of would be a sample to show how to automate migrating or copying a bunch of project settings from one project to a collection of other projects.

Any other suggestions?

Comments

  • Anonymous
    July 14, 2004
    CVS integration similar to http://ankhsvn.com/ would be a wonderful sample.
  • Anonymous
    July 14, 2004
    Copying VS options from one machine to another (ie, environmental options, debugger options, source control options, edit options, etc). This way when a new machine is built we don't have to spend the next couple days ensuring we've got the options right, which we invariably miss.
  • Anonymous
    July 14, 2004
    The comment has been removed
  • Anonymous
    July 15, 2004
    Frank Hileman,

    Is there a way that little program could be shared? I am actually in the process to develop our own program that can do this but only to update the AssemblyFileVersionAttribute.
  • Anonymous
    July 15, 2004
    Frank - I sent your question to Craig Skibo (http://blogs.msdn.com/CraigSkibo). Here's his reply:

    You could write code to select the setup project within the solution explorer. When the setup project is selected you can goto the property grid and get/set the version #. You select the item in the solution explorer by getting the UIHierarchy object with code such as this:

    dim uihier as UIHierarchy = DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer).Object
    uihier.GetItem("Setup1Setup1").Select(vsUISelectionTypeSelect) 'Setup1Setup1 is SolutionNameProjectName

    Then you call off to DTE.SelectedItems.SelectionContainer.Item(1), which returns to you the IDispatch/System.Object of the item in the properties window.
  • Anonymous
    July 25, 2004
    Alphabetize the using statements! PLEASE!