
Error - No resource file set the resource merger
key.snk가 없어서 발생함.
비주얼 스튜디오를 관리자 권한으로 실행하고 Command 클래스 생성시 해결됨.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | public const int CommandId = 0x0100; public static readonly Guid CommandSet = new Guid("8e87125b-a684-4d92-8f10-963a54d4d64b"); private readonly Package package; private Command1(Package package) { this.package = package ?? throw new ArgumentNullException("package"); if (ServiceProvider.GetService(typeof(IMenuCommandService)) is OleMenuCommandService commandService) { var menuCommandID = new CommandID(CommandSet, CommandId); var menuItem = new MenuCommand(StartNotepad, menuCommandID); commandService.AddCommand(menuItem); } private void StartNotepad(object sender, EventArgs e) { string message = "Hello Warld"; string title = "Command1"; VsShellUtilities.ShowMessageBox( this.ServiceProvider, message, title, OLEMSGICON.OLEMSGICON_INFO, OLEMSGBUTTON.OLEMSGBUTTON_OK, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST); Process proc = new Process(); proc.StartInfo.FileName = "notepad.exe"; proc.Start(); } | cs |
윈도우 예제

맥 예제
텍스트 배경 색이 보라색으로 변하고, 밑줄이 생김.
TextAdornment를 만들면 아래처럼 a에 빨간 네모가 생김.