error MSB8011: Failed to register output.
Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.
該錯誤通常發生在編譯生成 COM 組件(如 ATL/DLL)時,MSBuild 嘗試註冊輸出文件但權限不足。常見誘因:
Program Files)Register Output 但缺少註冊腳本或權限Configuration Properties → Linker → General → Register Output 設為 No,改由部署腳本手動註冊。Configuration Properties → Debugging → Register Output 勾選 Per-user Redirection。D:\Builds)。本案例中,調整輸出路徑並關閉自動註冊後問題消失,後續通過安裝包腳本統一註冊組件,更符合部署規範。