From 9bac4025e8ba95c2d4e1795f6a72aef0a22080df Mon Sep 17 00:00:00 2001 From: Chaim Marcus Date: Mon, 11 May 2026 12:23:58 +0000 Subject: [PATCH] fix(host): set LangVersion=latest + Nullable=enable on VSTO csproj MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The legacy VSTO csproj defaults to C# 7.3, but the host code (e.g. AddInHost, MailItemExtractor) uses nullable reference types — which require C# 8.0+. Building fails with ~12x "Feature 'nullable reference types' is not available in C# 7.3". Sync with the SDK-style Core/UI/Tests projects that already declare LangVersion=latest + Nullable=enable. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/OutlookAddin/OutlookAddin.csproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OutlookAddin/OutlookAddin.csproj b/src/OutlookAddin/OutlookAddin.csproj index 3ae8686..ab10460 100644 --- a/src/OutlookAddin/OutlookAddin.csproj +++ b/src/OutlookAddin/OutlookAddin.csproj @@ -28,6 +28,8 @@ MarcusLaw.OutlookAddin 3 v4.8 + latest + enable VSTO40;UseOfficeInterop true HomeSite