Skip to content

Conversation

@archiesaxenaa
Copy link

Root Cause

  • DA projects return title IDs with T_ prefix (vs. U_ for traditional Office add-ins)
  • Validation regex didn't recognize T_ prefix
  • ATK CLI's atk uninstall --mode title-id doesn't support T_ IDs (30s timeout)

Solution

  • Detect T_ prefix title IDs
  • Strip the T_ prefix to extract the manifest GUID
  • Use --mode manifest-id instead of --mode title-id for uninstall
  • U_ IDs continue using --mode title-id (existing behavior)

Changes

  • Modified uninstallWithTeams() in packages/office-addin-dev-settings/src/publish.ts
  • Added separate regex patterns for T_ and U_ prefixes
  • Auto-convert T_<guid>--mode manifest-id --manifest-id <guid>

Validation/testing performed:

Local Testing done via npm link.
Stop command now works for DA projects without errors or timeouts. Clean add-in un-installation when office app is closed and debug is stopped.

image (2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant