chore: remove broken VSTO host stub pending VS template regeneration
The hand-written legacy csproj at src/OutlookAddin/ is marked Unsupported by VS 2022. Per PROJECT-BRIEFING.md (steps 5-11), the host project must be regenerated from the VSTO template inside Visual Studio with the Office workload — there is no CLI/dotnet template equivalent. Removing now so the next VS session starts from a clean slate. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,8 +2,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.0.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OutlookAddin", "src\OutlookAddin\OutlookAddin.csproj", "{A0000000-0000-0000-0000-000000000001}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OutlookAddin.Core", "src\OutlookAddin.Core\OutlookAddin.Core.csproj", "{A0000000-0000-0000-0000-000000000002}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OutlookAddin.UI", "src\OutlookAddin.UI\OutlookAddin.UI.csproj", "{A0000000-0000-0000-0000-000000000003}"
|
||||
@@ -16,10 +14,6 @@ Global
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{A0000000-0000-0000-0000-000000000001}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A0000000-0000-0000-0000-000000000001}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A0000000-0000-0000-0000-000000000001}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A0000000-0000-0000-0000-000000000001}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{A0000000-0000-0000-0000-000000000002}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A0000000-0000-0000-0000-000000000002}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A0000000-0000-0000-0000-000000000002}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
NOTE: VSTO host projects rely on the legacy MSBuild csproj format with the VSTO
|
||||
project type GUIDs. This stub is intentionally minimal — open the .sln in
|
||||
Visual Studio 2022 with the "Office/SharePoint development" workload installed,
|
||||
then right-click the project → "Reload" if VS prompts. VS will populate the
|
||||
Office references, manifest, and ribbon designer scaffolding automatically.
|
||||
|
||||
Project type GUIDs:
|
||||
{BAA0C2D2-18E2-41B9-852F-F413020CAA33} — VSTO Add-in
|
||||
{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} — C#
|
||||
-->
|
||||
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{A0000000-0000-0000-0000-000000000001}</ProjectGuid>
|
||||
<ProjectTypeGuids>{BAA0C2D2-18E2-41B9-852F-F413020CAA33};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>MarcusLaw.OutlookAddin</RootNamespace>
|
||||
<AssemblyName>MarcusLaw.OutlookAddin</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<Company>Marcus-Law</Company>
|
||||
<Product>OutlookAddin</Product>
|
||||
<OfficeApplication>Outlook</OfficeApplication>
|
||||
<SignManifests>false</SignManifests>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="WindowsFormsIntegration" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ThisAddIn.cs" />
|
||||
<None Include="ThisAddIn.Designer.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\OutlookAddin.Core\OutlookAddin.Core.csproj">
|
||||
<Project>{A0000000-0000-0000-0000-000000000002}</Project>
|
||||
<Name>OutlookAddin.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\OutlookAddin.UI\OutlookAddin.UI.csproj">
|
||||
<Project>{A0000000-0000-0000-0000-000000000003}</Project>
|
||||
<Name>OutlookAddin.UI</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VSToolsPath)\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
</Project>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
VSTO ThisAddIn designer XML.
|
||||
|
||||
Placeholder — Visual Studio 2022 regenerates this file from the VSTO host
|
||||
template when the project is first opened on a machine with the
|
||||
"Office/SharePoint development" workload installed. Do NOT hand-edit; it will
|
||||
be overwritten.
|
||||
-->
|
||||
<root />
|
||||
@@ -1,47 +0,0 @@
|
||||
using System;
|
||||
using Outlook = Microsoft.Office.Interop.Outlook;
|
||||
using Office = Microsoft.Office.Core;
|
||||
|
||||
namespace MarcusLaw.OutlookAddin
|
||||
{
|
||||
public partial class ThisAddIn
|
||||
{
|
||||
private void ThisAddIn_Startup(object sender, EventArgs e)
|
||||
{
|
||||
// Composition root — wires up:
|
||||
// - Serilog logger (LoggerFactory.Init)
|
||||
// - SettingsManager (load %APPDATA%\MarcusLaw\OutlookAddin\settings.json)
|
||||
// - DpapiCredentialStore (load API key)
|
||||
// - EspoCrmClient (HttpClient + Polly + auth header)
|
||||
// - FilingService, MatchingService, DiskRetryQueue
|
||||
// - Ribbon callbacks
|
||||
// - CustomTaskPane for reading-pane sidebar
|
||||
// - FolderWatcher (re-subscribe to watched folders from settings)
|
||||
// - ItemSendHandler (auto-file on send when EspoCaseId UserProperty present)
|
||||
// - URL protocol named-pipe listener
|
||||
//
|
||||
// See ARCHITECTURE.md for sequencing constraints.
|
||||
}
|
||||
|
||||
private void ThisAddIn_Shutdown(object sender, EventArgs e)
|
||||
{
|
||||
// Flush logger, dispose HttpClient, unsubscribe events.
|
||||
// Note: in Outlook 2013+ this event is NOT raised reliably — do NOT
|
||||
// rely on it for critical persistence. Save state eagerly.
|
||||
}
|
||||
|
||||
#region VSTO generated code
|
||||
protected override Office.IRibbonExtensibility CreateRibbonExtensibilityObject()
|
||||
{
|
||||
// Returns the merged Explorer + Inspector ribbon (see Ribbon/ folder).
|
||||
return base.CreateRibbonExtensibilityObject();
|
||||
}
|
||||
|
||||
private void InternalStartup()
|
||||
{
|
||||
this.Startup += new EventHandler(ThisAddIn_Startup);
|
||||
this.Shutdown += new EventHandler(ThisAddIn_Shutdown);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user