Build native Word Companion with Windows VSTO tooling
This commit is contained in:
parent
472ab581a1
commit
2f0f5a4b74
29
Docs/WordCompanion/2026-11-04-windows-qualification.md
Normal file
29
Docs/WordCompanion/2026-11-04-windows-qualification.md
Normal file
@ -0,0 +1,29 @@
|
||||
# Native Word Companion Windows qualification
|
||||
|
||||
4 November 2026. Phase 1 baseline 472ab581. Desktop acceptance pending.
|
||||
|
||||
## Environment and build
|
||||
|
||||
- Windows 11 Home x64, build 26300. Ryzen 9 8945HS, 16 GB RAM.
|
||||
- Desktop Word x64 16.0.20527.20112. Office PIAs resolved at compile time. VSTO runtime loaders present for x64 and x86.
|
||||
- Visual Studio Community 2026 18.11.3 with Office development workload and Word VSTO template. .NET Framework 4.8 targeting pack present. .NET SDK 10.0.403, runtime 10.0.14, PowerShell 7.6.9.
|
||||
- Full managed solution built with zero warnings and errors. The developer script built the .NET Framework 4.8 add-in and its client and protocol dependencies with zero warnings and errors, emitted signed VSTO manifests, and published the framework-dependent win-x64 agent beside the add-in.
|
||||
- The developer script now selects an Office-equipped Visual Studio MSBuild. The original discovery selected SQL Server Management Studio's incomplete MSBuild. The Windows solution uses the C# project type for the flavored project and consistent platform mappings. The add-in host blueprint, designer and project metadata follow the locally installed Word template, and WordAdapter explicitly selects the protocol Message type.
|
||||
- Signing used a short-lived self-signed certificate in the current user's Personal store. No trust-store change or certificate file was required for compilation.
|
||||
|
||||
## Tests and evidence
|
||||
|
||||
- Native executable harness passed all 118 assertions on Windows. Coverage includes protocol negotiation, Windows named-pipe transport, separate document/instance sessions, position resolution, coalescing, queue limits, cancellation, stale rejection, disconnect and host restart/reconciliation. The peer-owner rejection case injects a callback, so it does not exercise the VSTO SID check.
|
||||
- A separate smoke test launched the published agent, negotiated a correlated ready response through its production endpoint, verified a duplicate process exited successfully while the first continued serving, terminated the first process, and handshook with the restarted executable. Graceful executable shutdown and five-minute idle exit remain untested.
|
||||
- The application harness stopped at CoreImportWizardOrdersScenesBeforeCharacters with “Saving chapter review should validate only structure before scene import.” That application path was outside this qualification change.
|
||||
- The fixture generator produced Discovery-190k, Reckoning-250k, Redemption-many-short and Long-paragraph-250k plus fixtures.json. Opening the files in Word without repair is pending.
|
||||
|
||||
## Desktop acceptance still required
|
||||
|
||||
A parallel IDE launch showed a legacy project-system failure during project reload. The activity log identified LegacyProjectSystemRegistrationPackage and SVsLegacyProjectSystemHelperPrivate. The user identified the existing Visual Studio instance as the correct one to use. Desktop automation was stopped before a retry there, so F5, Word load, ribbon and live Word-agent communication remain unverified.
|
||||
|
||||
Resume in the existing Visual Studio instance with the Windows solution. Reload the changed projects if prompted, select PlotDirector.WordAddIn as startup project and use the signed local developer output in a controlled profile. Begin with a blank synthetic document. Check startup, ribbon, agent connection, selection and close/reconciliation before opening large fixtures.
|
||||
|
||||
Use a separate nonprivileged Windows account to test cross-user pipe denial and server SID rejection. Collect add-in-disabled and enabled Word trials using the Windows validation checklist, including interactive typing and scrolling, save and close, multi-document switching, agent loss and recovery, per-call COM and batch timings, UI delays, queue depth and process resource use. No Word responsiveness measurements are available yet.
|
||||
|
||||
Database, migrations, stored procedures and server configuration were outside this change. No deployment was performed.
|
||||
@ -6,7 +6,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlotDirector.Companion.Prot
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlotDirector.Companion.Client", "Client\PlotDirector.Companion.Client.csproj", "{DC2B7CCF-B29B-4AAE-BAD4-3528CB2B751A}"
|
||||
EndProject
|
||||
Project("{BAA0C2D2-18E2-41B9-852F-F413020CAA33}") = "PlotDirector.WordAddIn", "Vsto\PlotDirector.WordAddIn.csproj", "{42996908-DB24-4A55-AFF1-1017A31D7206}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlotDirector.WordAddIn", "Vsto\PlotDirector.WordAddIn.csproj", "{42996908-DB24-4A55-AFF1-1017A31D7206}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -22,9 +22,9 @@ Global
|
||||
{DC2B7CCF-B29B-4AAE-BAD4-3528CB2B751A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{DC2B7CCF-B29B-4AAE-BAD4-3528CB2B751A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{DC2B7CCF-B29B-4AAE-BAD4-3528CB2B751A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{42996908-DB24-4A55-AFF1-1017A31D7206}.Debug|Any CPU.ActiveCfg = Debug|AnyCPU
|
||||
{42996908-DB24-4A55-AFF1-1017A31D7206}.Debug|Any CPU.Build.0 = Debug|AnyCPU
|
||||
{42996908-DB24-4A55-AFF1-1017A31D7206}.Release|Any CPU.ActiveCfg = Release|AnyCPU
|
||||
{42996908-DB24-4A55-AFF1-1017A31D7206}.Release|Any CPU.Build.0 = Release|AnyCPU
|
||||
{42996908-DB24-4A55-AFF1-1017A31D7206}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{42996908-DB24-4A55-AFF1-1017A31D7206}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{42996908-DB24-4A55-AFF1-1017A31D7206}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{42996908-DB24-4A55-AFF1-1017A31D7206}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
<Reference Include="System" /><Reference Include="System.Core" /><Reference Include="System.Windows.Forms" /><Reference Include="System.Drawing" /><Reference Include="System.Xml" /><Reference Include="Microsoft.CSharp" /><Reference Include="netstandard" />
|
||||
<Reference Include="Microsoft.Office.Interop.Word"><EmbedInteropTypes>true</EmbedInteropTypes></Reference>
|
||||
<Reference Include="office"><EmbedInteropTypes>true</EmbedInteropTypes></Reference>
|
||||
<Reference Include="Microsoft.Office.Tools" /><Reference Include="Microsoft.Office.Tools.Common" /><Reference Include="Microsoft.Office.Tools.Common.v4.0.Utilities"><Private>true</Private></Reference>
|
||||
<Reference Include="Microsoft.Office.Tools.v4.0.Framework" /><Reference Include="Microsoft.Office.Tools" /><Reference Include="Microsoft.Office.Tools.Common" /><Reference Include="Microsoft.Office.Tools.Common.v4.0.Utilities"><Private>true</Private></Reference>
|
||||
<Reference Include="Microsoft.Office.Tools.Word" /><Reference Include="Microsoft.Office.Tools.Word.v4.0.Utilities" />
|
||||
<Reference Include="Microsoft.VisualStudio.Tools.Applications.Runtime" />
|
||||
<ProjectReference Include="..\Protocol\PlotDirector.Companion.Protocol.csproj"><Name>PlotDirector.Companion.Protocol</Name></ProjectReference>
|
||||
@ -29,7 +29,7 @@
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(VSToolsPath)\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets" />
|
||||
<ProjectExtensions><VisualStudio><FlavorProperties GUID="{BAA0C2D2-18E2-41B9-852F-F413020CAA33}">
|
||||
<ProjectProperties HostName="Word" HostPackage="{29A7B9D7-A7F1-4328-8EF0-6B2D1A56B2C1}" OfficeVersion="15.0" VstxVersion="4.0" ApplicationType="Word" Language="cs" DebugInfoExeName="#Software\Microsoft\Office\16.0\Word\InstallRoot\Path#WINWORD.EXE" DebugInfoCommandLine="/x" />
|
||||
<Host Name="Word" GeneratedCodeNamespace="PlotDirector.WordAddIn" IconIndex="0"><HostItem Name="ThisAddIn" Code="ThisAddIn.cs" CanonicalName="AddIn" CanActivate="false" IconIndex="1" Blueprint="ThisAddIn.Designer.xml" GeneratedCode="ThisAddIn.Designer.cs" /></Host>
|
||||
<ProjectProperties HostName="Word" ProjectCreationSetting="1" AddItemTemplatesGuid="{51063C3A-E220-4D12-8922-BDA915ACD783}" HostPackage="{29A7B9D7-A7F1-4328-8EF0-6B2D1A56B2C1}" OfficeVersion="15.0" VstxVersion="4.0" ApplicationType="Word" Language="cs" DebugInfoExeName="#Software\Microsoft\Office\16.0\Word\InstallRoot\Path#WINWORD.EXE" DebugInfoCommandLine="/x" />
|
||||
<Host Name="Word" GeneratedCodeNamespace="PlotDirector.WordAddIn" IconIndex="0"><HostItem Name="ThisAddIn" Code="ThisAddIn.cs" CanonicalName="ThisAddIn" IconIndex="1" Blueprint="ThisAddIn.Designer.xml" GeneratedCode="ThisAddIn.Designer.cs" /></Host>
|
||||
</FlavorProperties></VisualStudio></ProjectExtensions>
|
||||
</Project>
|
||||
|
||||
247
PlotDirector.NativeCompanion/Vsto/ThisAddIn.Designer.cs
generated
247
PlotDirector.NativeCompanion/Vsto/ThisAddIn.Designer.cs
generated
@ -1,18 +1,237 @@
|
||||
// VSTO host-item plumbing. Validate/regenerate against the supported Windows VS
|
||||
// Office template before accepting a desktop build; this is not a COM add-in shim.
|
||||
namespace PlotDirector.WordAddIn
|
||||
{
|
||||
[Microsoft.VisualStudio.Tools.Applications.Runtime.StartupObject(0)]
|
||||
public sealed partial class ThisAddIn : Microsoft.Office.Tools.AddInBase
|
||||
{
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#pragma warning disable 414
|
||||
namespace PlotDirector.WordAddIn {
|
||||
|
||||
|
||||
///
|
||||
[Microsoft.VisualStudio.Tools.Applications.Runtime.StartupObjectAttribute(0)]
|
||||
[global::System.Security.Permissions.PermissionSetAttribute(global::System.Security.Permissions.SecurityAction.Demand, Name="FullTrust")]
|
||||
public sealed partial class ThisAddIn : Microsoft.Office.Tools.AddInBase {
|
||||
|
||||
internal Microsoft.Office.Tools.CustomTaskPaneCollection CustomTaskPanes;
|
||||
|
||||
internal Microsoft.Office.Tools.SmartTagCollection VstoSmartTags;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
private global::System.Object missing = global::System.Type.Missing;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
internal Microsoft.Office.Interop.Word.Application Application;
|
||||
public ThisAddIn(Microsoft.Office.Tools.Word.ApplicationFactory factory, System.IServiceProvider provider)
|
||||
: base(factory, provider, "AddIn", "ThisAddIn") { }
|
||||
protected override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
Application = GetHostItem<Microsoft.Office.Interop.Word.Application>(typeof(Microsoft.Office.Interop.Word.Application), "Application");
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public ThisAddIn(global::Microsoft.Office.Tools.Word.ApplicationFactory factory, global::System.IServiceProvider serviceProvider) :
|
||||
base(factory, serviceProvider, "AddIn", "ThisAddIn") {
|
||||
Globals.Factory = factory;
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
protected override void Initialize() {
|
||||
base.Initialize();
|
||||
this.Application = this.GetHostItem<Microsoft.Office.Interop.Word.Application>(typeof(Microsoft.Office.Interop.Word.Application), "Application");
|
||||
Globals.ThisAddIn = this;
|
||||
global::System.Windows.Forms.Application.EnableVisualStyles();
|
||||
this.InitializeCachedData();
|
||||
this.InitializeControls();
|
||||
this.InitializeComponents();
|
||||
this.InitializeData();
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
protected override void FinishInitialization() {
|
||||
this.InternalStartup();
|
||||
this.OnStartup();
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
protected override void InitializeDataBindings() {
|
||||
this.BeginInitialization();
|
||||
this.BindToData();
|
||||
this.EndInitialization();
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
private void InitializeCachedData() {
|
||||
if ((this.DataHost == null)) {
|
||||
return;
|
||||
}
|
||||
if (this.DataHost.IsCacheInitialized) {
|
||||
this.DataHost.FillCachedData(this);
|
||||
}
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
private void InitializeData() {
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
private void BindToData() {
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
private void StartCaching(string MemberName) {
|
||||
this.DataHost.StartCaching(this, MemberName);
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
private void StopCaching(string MemberName) {
|
||||
this.DataHost.StopCaching(this, MemberName);
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
private bool IsCached(string MemberName) {
|
||||
return this.DataHost.IsCached(this, MemberName);
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
private void BeginInitialization() {
|
||||
this.BeginInit();
|
||||
this.CustomTaskPanes.BeginInit();
|
||||
this.VstoSmartTags.BeginInit();
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
private void EndInitialization() {
|
||||
this.VstoSmartTags.EndInit();
|
||||
this.CustomTaskPanes.EndInit();
|
||||
this.EndInit();
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
private void InitializeControls() {
|
||||
this.CustomTaskPanes = Globals.Factory.CreateCustomTaskPaneCollection(null, null, "CustomTaskPanes", "CustomTaskPanes", this);
|
||||
this.VstoSmartTags = Globals.Factory.CreateSmartTagCollection(null, null, "VstoSmartTags", "VstoSmartTags", this);
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
private void InitializeComponents() {
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
private bool NeedsFill(string MemberName) {
|
||||
return this.DataHost.NeedsFill(this, MemberName);
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
protected override void OnShutdown() {
|
||||
this.VstoSmartTags.Dispose();
|
||||
this.CustomTaskPanes.Dispose();
|
||||
base.OnShutdown();
|
||||
}
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
internal sealed partial class Globals {
|
||||
|
||||
///
|
||||
private Globals() {
|
||||
}
|
||||
|
||||
private static ThisAddIn _ThisAddIn;
|
||||
|
||||
private static global::Microsoft.Office.Tools.Word.ApplicationFactory _factory;
|
||||
|
||||
private static ThisRibbonCollection _ThisRibbonCollection;
|
||||
|
||||
internal static ThisAddIn ThisAddIn {
|
||||
get {
|
||||
return _ThisAddIn;
|
||||
}
|
||||
set {
|
||||
if ((_ThisAddIn == null)) {
|
||||
_ThisAddIn = value;
|
||||
}
|
||||
else {
|
||||
throw new System.NotSupportedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal static global::Microsoft.Office.Tools.Word.ApplicationFactory Factory {
|
||||
get {
|
||||
return _factory;
|
||||
}
|
||||
set {
|
||||
if ((_factory == null)) {
|
||||
_factory = value;
|
||||
}
|
||||
else {
|
||||
throw new System.NotSupportedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal static ThisRibbonCollection Ribbons {
|
||||
get {
|
||||
if ((_ThisRibbonCollection == null)) {
|
||||
_ThisRibbonCollection = new ThisRibbonCollection(_factory.GetRibbonFactory());
|
||||
}
|
||||
return _ThisRibbonCollection;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
///
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "18.0.0.0")]
|
||||
internal sealed partial class ThisRibbonCollection : Microsoft.Office.Tools.Ribbon.RibbonCollectionBase {
|
||||
|
||||
///
|
||||
internal ThisRibbonCollection(global::Microsoft.Office.Tools.Ribbon.RibbonFactory factory) :
|
||||
base(factory) {
|
||||
}
|
||||
protected override void FinishInitialization() { InternalStartup(); OnStartup(); }
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
<hostitem:hostItem hostitem:baseType="Microsoft.Office.Tools.AddInBase" hostitem:namespace="PlotDirector.WordAddIn" hostitem:className="ThisAddIn" hostitem:identifier="ThisAddIn" hostitem:primaryCookie="AddIn" hostitem:master="true" hostitem:factoryType="Microsoft.Office.Tools.Word.ApplicationFactory" hostitem:startupIndex="0" xmlns:hostitem="http://schemas.microsoft.com/2004/VisualStudio/Tools/Applications/HostItem.xsd">
|
||||
<hostitem:hostObject hostitem:name="Application" hostitem:identifier="Application" hostitem:type="Microsoft.Office.Interop.Word.Application" hostitem:cookie="Application" hostitem:modifier="Internal" />
|
||||
</hostitem:hostItem>
|
||||
<hostitem:hostControl hostitem:name="CustomTaskPanes" hostitem:identifier="CustomTaskPanes" hostitem:type="Microsoft.Office.Tools.CustomTaskPaneCollection" hostitem:primaryCookie="CustomTaskPanes" hostitem:modifier="Internal" />
|
||||
<hostitem:hostControl hostitem:name="VstoSmartTags" hostitem:identifier="VstoSmartTags" hostitem:type="Microsoft.Office.Tools.SmartTagCollection" hostitem:primaryCookie="VstoSmartTags" hostitem:modifier="Internal" />
|
||||
</hostitem:hostItem>
|
||||
@ -5,6 +5,7 @@ using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Windows.Forms;
|
||||
using Message = PlotDirector.Companion.Protocol.Message;
|
||||
using PlotDirector.Companion.Client;
|
||||
using PlotDirector.Companion.Protocol;
|
||||
using Word = Microsoft.Office.Interop.Word;
|
||||
|
||||
@ -2,7 +2,7 @@ param([Parameter(Mandatory=$true)][string]$CertificateThumbprint)
|
||||
$ErrorActionPreference='Stop'
|
||||
$root=Split-Path $PSScriptRoot -Parent
|
||||
$vswhere=Join-Path ${env:ProgramFiles(x86)} 'Microsoft Visual Studio\Installer\vswhere.exe'
|
||||
$msbuild=& $vswhere -latest -products '*' -find 'MSBuild\**\Bin\MSBuild.exe' | Select-Object -First 1
|
||||
$msbuild=& $vswhere -latest -requires Microsoft.VisualStudio.Workload.Office -find 'MSBuild\**\Bin\amd64\MSBuild.exe' | Select-Object -First 1
|
||||
if(!$msbuild){throw 'Visual Studio MSBuild with Office/VSTO development tools is required.'}
|
||||
$project=Join-Path $root 'Vsto\PlotDirector.WordAddIn.csproj'
|
||||
& $msbuild $project /restore /t:Build /p:Configuration=Debug /p:SignManifests=true "/p:ManifestCertificateThumbprint=$CertificateThumbprint"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user