Pablo Galiano : Monday, October 09, 2006 - Posts

Subscriptions

<September 2010>
SuMoTuWeThFrSa
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

News

Subscribe to Pablo Galiano by Email

Post Categories

Monday, October 09, 2006 - Posts

Integrating DSL RTM and GAX part two

Once we have the guidance package and the DSL package living on the same visual studio hive one thing that we will need for sure is the ability to launch recipes from the DSL designer.

For that we need to find out the command bar GUID of the DSL designer.

Steps:

  • Open the DSL solution
  • Open the Constants.cs file located under the DslPackage.csproj
  • Look for:         

    internal static partial class Constants

    {

        // Menu identifier

        public const string Language1CommandSetId = "a00ac613-8df8-4537-b7c7-89d31a44651c";

    }

  • Update the HostData section of the recipe manifest

  < HostData >

    < CommandBar Guid ="a00ac613-8df8-4537-b7c7-89d31a44651c"ID="65536"/>

  </ HostData

 

      Notice that the ID for the DSL RTM version will always be 65536.

 

Pablo

posted Monday, October 09, 2006 9:39 AM by pga with 6681 Comments

Integrating DSL RTM and GAX part one

A guidance package and a DSL package are registered by default in different visual studio hives. A guidance package lives on the main hive and a DSL package lives on the Experimental one.

So the first thing that we need to do is migrate one of the packages so the live on the same hive.

I am going to migrate the DSL package to the main hive, the procedure is very simple:

A DSL solution consists of 2 projects, the Dsl.csproj and DslPackage.csproj and we need to edit both:

Dsl.csproj:

Change the line:

  <PropertyGroup>
    <StartProgram>$(DevEnvDir)\devenv.exe</StartProgram>
    <StartAction>Program</StartAction>
    <StartArguments>/rootsuffix Exp /DesignTimeRun "..\..\..\Debugging\Debugging.sln"</StartArguments>
  </PropertyGroup>

To

  <PropertyGroup>
    <StartProgram>$(DevEnvDir)\devenv.exe</StartProgram>
    <StartAction>Program</StartAction>
    <StartArguments>/DesignTimeRun "..\..\..\Debugging\Debugging.sln"</StartArguments>
  </PropertyGroup>

DslPackage.csproj:

Change the line:

  <PropertyGroup>
    <StartProgram>$(DevEnvDir)\devenv.exe</StartProgram>
    <StartAction>Program</StartAction>
    <StartArguments>/rootsuffix Exp /DesignTimeRun "..\..\..\Debugging\Debugging.sln"</StartArguments>
  </PropertyGroup>

To

  <PropertyGroup>
    <StartProgram>$(DevEnvDir)\devenv.exe</StartProgram>
    <StartAction>Program</StartAction>
    <StartArguments>/DesignTimeRun "..\..\..\Debugging\Debugging.sln"</StartArguments>
  </PropertyGroup>

And

<TargetRegistryRoot>Software\Microsoft\VisualStudio\8.0Exp</TargetRegistryRoot>

To

<TargetRegistryRoot>Software\Microsoft\VisualStudio\8.0</TargetRegistryRoot>

 

After this changes the guidance package and the DSL will live in the same visual studio hive, which means that one is going to be "visible" by the other and viceversa.

 

Pablo

posted Monday, October 09, 2006 9:17 AM by pga with 1 Comments