Moved debug engine registration to a separate pkgdef.

This commit is contained in:
José Pedro 2017-12-24 14:34:29 +00:00
parent cf4b84306e
commit 5b64efb53f
No known key found for this signature in database
GPG key ID: B8247B9301707B83
7 changed files with 76 additions and 92 deletions

View file

@ -0,0 +1,19 @@
[$RootKey$\AD7Metrics\Engine\{fa1da3a6-66ff-4c65-b077-e65f7164ef83}]
@="Cosmos Debug Engine"
; "AddressBP"=dword:00000001
"AlwaysLoadLocal"=dword:00000001
"AlwaysLoadProgramProviderLocal"=dword:00000001
; "CallStackBP"=dword:00000001
; "ConditionalBP"=dword:00000001
"DataBP"=dword:00000001
"Disassembly"=dword:00000001
"EnginePriority"=dword:00000050
"Exceptions"=dword:00000001
; "FunctionBP"=dword:00000001
; "HitCountBP"=dword:00000001
; "JustMyCodeStepping"=dword:00000001
"Name"="Cosmos Debug"
"SetNextStatement"=dword:00000001
; "SuspendThread"=dword:00000001
"CLSID"="{dc8503ab-7ee6-456c-a209-66c690d9f6f4}"
"GlobalVisualizersDirectory"="$PackageFolder$"

View file

@ -29,6 +29,7 @@
<RootNamespace>Cosmos.VS.DebugEngine</RootNamespace>
<AssemblyName>Cosmos.VS.DebugEngine</AssemblyName>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<GeneratePkgDefFile>true</GeneratePkgDefFile>
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>
<IncludeDebugSymbolsInVSIXContainer>true</IncludeDebugSymbolsInVSIXContainer>
<IncludeDebugSymbolsInLocalVSIXDeployment>true</IncludeDebugSymbolsInLocalVSIXDeployment>
@ -114,9 +115,8 @@
</None>
</ItemGroup>
<ItemGroup>
<Content Include="Cosmos.VS.DebugEngine.pkgdef">
<Content Include="Cosmos.DebugEngine.pkgdef">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="Resources\Cosmos.ico">
<IncludeInVSIX>true</IncludeInVSIX>

View file

@ -1,39 +0,0 @@
[$RootKey$\InstalledProducts\CosmosDebugEnginePackage]
@="#110"
"Package"="{a82b45e9-2a89-43bd-925d-c7f0edd212aa}"
"PID"="1.0"
"ProductDetails"="#112"
"LogoID"="#400"
[$RootKey$\Packages\{a82b45e9-2a89-43bd-925d-c7f0edd212aa}]
@="CosmosDebugEnginePackage"
"InprocServer32"="$WinDir$\SYSTEM32\MSCOREE.DLL"
"Class"="Cosmos.VS.DebugEngine.CosmosDebugEnginePackage"
"CodeBase"="$PackageFolder$\Cosmos.VS.DebugEngine.dll"
[$RootKey$\Menus]
"{a82b45e9-2a89-43bd-925d-c7f0edd212aa}"=", Menus.ctmenu, 1"
[$RootKey$\AD7Metrics\Engine\{fa1da3a6-66ff-4c65-b077-e65f7164ef83}]
@="Cosmos Debug Engine"
; "AddressBP"=dword:00000001
"AlwaysLoadLocal"=dword:00000001
"AlwaysLoadProgramProviderLocal"=dword:00000001
; "CallStackBP"=dword:00000001
; "ConditionalBP"=dword:00000001
"DataBP"=dword:00000001
"Disassembly"=dword:00000001
"EnginePriority"=dword:00000050
"Exceptions"=dword:00000001
; "FunctionBP"=dword:00000001
; "HitCountBP"=dword:00000001
; "JustMyCodeStepping"=dword:00000001
"Name"="Cosmos Debug"
"SetNextStatement"=dword:00000001
; "SuspendThread"=dword:00000001
"CLSID"="{dc8503ab-7ee6-456c-a209-66c690d9f6f4}"
"GlobalVisualizersDirectory"="$PackageFolder$"
[$RootKey$\CLSID\{dc8503ab-7ee6-456c-a209-66c690d9f6f4}]
"Assembly"="Cosmos.VS.DebugEngine"
"Class"="Cosmos.VS.DebugEngine.AD7.Impl.AD7Engine"
"InprocServer32"="$WinDir$\SYSTEM32\MSCOREE.DLL"
"CodeBase"="$PackageFolder$\Cosmos.VS.DebugEngine.dll"

View file

@ -3,14 +3,16 @@ using System.Runtime.InteropServices;
using Microsoft.VisualStudio.OLE.Interop;
using Microsoft.VisualStudio.Shell;
using Cosmos.VS.DebugEngine.AD7.Impl;
using Cosmos.VS.DebugEngine.Commands;
namespace Cosmos.VS.DebugEngine
{
[Guid(Guids.guidPackageString)]
[PackageRegistration(UseManagedResourcesOnly = true)]
[InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[Guid(Guids.guidPackageString)]
[ProvideObject(typeof(AD7Engine))]
public sealed class CosmosDebugEnginePackage : Package, IOleCommandTarget
{
private IOleCommandTarget packageCommandTarget;
@ -52,4 +54,4 @@ namespace Cosmos.VS.DebugEngine
return packageCommandTarget.QueryStatus(ref cmdGroup, cCmds, prgCmds, pCmdText);
}
}
}
}

View file

@ -33,9 +33,9 @@
</Commands>
<Symbols>
<GuidSymbol name="guidDebugPackage" value="{A82B45E9-2A89-43BD-925D-C7F0EDD212AA}" />
<GuidSymbol name="guidDebugPackage" value="{a82b45e9-2a89-43bd-925d-c7f0edd212aa}" />
<GuidSymbol name="guidDebugPackageCmdSet" value="{94EBFC49-EC0F-4BD3-B3FF-D3AADB8DAC9F}">
<GuidSymbol name="guidDebugPackageCmdSet" value="{94ebfc49-ec0f-4bd3-b3ff-d3aadb8dac9f}">
<IDSymbol name="cmdidLaunchDebug" value="0x0100" />
<IDSymbol name="cmdidDebugExec" value="0x0101" />
<IDSymbol name="cmdidDebugLog" value="0x0102" />

View file

@ -1,22 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="Cosmos.VS.DebugEngine" Version="1.0" Language="en-US" Publisher="Cosmos" />
<DisplayName>Cosmos Visual Studio Debug Engine</DisplayName>
<Description xml:space="preserve">Visual Studio Debug Engine for Cosmos</Description>
<Icon>Resources\Cosmos.ico</Icon>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0]" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
<Dependency Id="Microsoft.VisualStudio.MPF.15.0" DisplayName="Visual Studio MPF 15.0" d:Source="Installed" Version="[15.0]" />
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
<Metadata>
<Identity Id="Cosmos.VS.DebugEngine" Version="1.0" Language="en-US" Publisher="Cosmos" />
<DisplayName>Cosmos Visual Studio Debug Engine</DisplayName>
<Description xml:space="preserve">Visual Studio Debug Engine for Cosmos</Description>
<Icon>Resources\Cosmos.ico</Icon>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0]" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
<Dependency Id="Microsoft.VisualStudio.MPF.15.0" DisplayName="Visual Studio MPF 15.0" d:Source="Installed" Version="[15.0]" />
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="File" Path="Cosmos.DebugEngine.pkgdef" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
</PackageManifest>

View file

@ -1,31 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="Cosmos.VS.ProjectSystem" Version="1.0" Language="en-US" Publisher="Cosmos" />
<DisplayName>Cosmos Visual Studio Project System</DisplayName>
<Description xml:space="preserve">The Visual Studio project system for the Cosmos Operating System.</Description>
<Icon>Resources\Cosmos.ico</Icon>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0]" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
<Dependency Id="Microsoft.VisualStudio.MPF.15.0" DisplayName="Visual Studio MPF 15.0" d:Source="Installed" Version="[15.0,16.0)" />
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
<Prerequisite Id="Microsoft.NetCore.ComponentGroup.Web" Version="[15.0,16.0)" DisplayName=".NET Core 1.0 - 1.1 development tools" />
<Prerequisite Id="Microsoft.Component.NetFX.Core.Runtime" Version="[15.0,16.0)" DisplayName=".NET Core runtime" />
<Prerequisite Id="Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites" Version="[15.0,16.0)" DisplayName=".NET desktop development tools" />
<Prerequisite Id="Microsoft.VisualStudio.Component.VSSDK" Version="[15.0,16.0)" DisplayName="Visual Studio SDK" />
<Prerequisite Id="Microsoft.VisualStudio.Component.NuGet" Version="[15.0,16.0)" DisplayName="NuGet package manager" />
</Prerequisites>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
<Asset Type="Microsoft.VisualStudio.ProjectTemplate" d:Source="Project" d:ProjectName="%CurrentProject%" d:TargetPath="|%CurrentProject%;TemplateProjectOutputGroup|" Path="ProjectTemplates" d:VsixSubPath="ProjectTemplates" />
<Asset Type="Microsoft.VisualStudio.Assembly" d:Source="Project" d:ProjectName="Cosmos.VS.Wizards" Path="|Cosmos.VS.Wizards|" AssemblyName="|Cosmos.VS.Wizards;AssemblyName|" />
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="Cosmos.VS.DebugEngine" Path="|Cosmos.VS.DebugEngine;PkgdefProjectOutputGroup|" />
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="Cosmos.VS.Windows" Path="|Cosmos.VS.Windows;PkgdefProjectOutputGroup|" />
</Assets>
<Metadata>
<Identity Id="Cosmos.VS.ProjectSystem" Version="1.0" Language="en-US" Publisher="Cosmos" />
<DisplayName>Cosmos Visual Studio Project System</DisplayName>
<Description xml:space="preserve">The Visual Studio project system for the Cosmos Operating System.</Description>
<Icon>Resources\Cosmos.ico</Icon>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0]" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
<Dependency Id="Microsoft.VisualStudio.MPF.15.0" DisplayName="Visual Studio MPF 15.0" d:Source="Installed" Version="[15.0,16.0)" />
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
<Prerequisite Id="Microsoft.NetCore.ComponentGroup.Web" Version="[15.0,16.0)" DisplayName=".NET Core 1.0 - 1.1 development tools" />
<Prerequisite Id="Microsoft.Component.NetFX.Core.Runtime" Version="[15.0,16.0)" DisplayName=".NET Core runtime" />
<Prerequisite Id="Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites" Version="[15.0,16.0)" DisplayName=".NET desktop development tools" />
<Prerequisite Id="Microsoft.VisualStudio.Component.VSSDK" Version="[15.0,16.0)" DisplayName="Visual Studio SDK" />
<Prerequisite Id="Microsoft.VisualStudio.Component.NuGet" Version="[15.0,16.0)" DisplayName="NuGet package manager" />
</Prerequisites>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
<Asset Type="Microsoft.VisualStudio.ProjectTemplate" d:Source="Project" d:ProjectName="%CurrentProject%" d:TargetPath="|%CurrentProject%;TemplateProjectOutputGroup|" Path="ProjectTemplates" d:VsixSubPath="ProjectTemplates" />
<Asset Type="Microsoft.VisualStudio.Assembly" d:Source="Project" d:ProjectName="Cosmos.VS.Wizards" Path="|Cosmos.VS.Wizards|" AssemblyName="|Cosmos.VS.Wizards;AssemblyName|" />
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="Cosmos.VS.DebugEngine" Path="|Cosmos.VS.DebugEngine;PkgdefProjectOutputGroup|" />
<Asset Type="Microsoft.VisualStudio.VsPackage" Path="Cosmos.DebugEngine.pkgdef" />
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="Cosmos.VS.Windows" Path="|Cosmos.VS.Windows;PkgdefProjectOutputGroup|" />
</Assets>
</PackageManifest>