VSTO With WPF: Index not found (0x80131124) error when adding addition, empty method

0

I'm working on a VSTO Outlook plug in that has WPF windows. When writing the view model, simply adding an additional method results in an "Index not found. (Exception from HRESULT: 0x80131124)" compiler error. If I remove the empty method, the error goes away. Here is the class without the compiler error:

public class ImportViewModel : ViewModelBase
{
    public event EventHandler CloseRequested;

    private ICommand _closeRequestedCommand;
    private ICommand _selectOutlookFolderCommand;
}

And here's my class with the compiler error:

public class ImportViewModel : ViewModelBase
{
    public event EventHandler CloseRequested;

    private ICommand _closeRequestedCommand;
    private ICommand _selectOutlookFolderCommand;

    private void SelectOutlookFolder()
    {
    }
}

Nothing else has changed between the two.

c#
wpf
outlook
vsto
asked on Stack Overflow Nov 22, 2019 by weis0292 • edited Nov 22, 2019 by weis0292

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0