Skip to content

"Ensure Event Failed" when generating event handler with "New Event Handler" option #1348

@riandika-lumaris

Description

@riandika-lumaris

Current behavior

When editing XAML file in VS 2019, generating event handler with "New Event Handler" options works for the first time, then it shows "Ensure Event Failed" after that. I need to close and reopen the xaml as the workaround.

Expected behavior

The options should work without "Ensure Event Failed" error.

How to reproduce it (as minimally and precisely as possible)

  1. Open xaml file
  2. Generate event handler in any component using "New Event Handler" option
  3. Repeat step 2 again then error shown

Environment

Nuget Package:

Package Version(s): 1.45.0

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • Windows
  • Build tasks

Visual Studio

  • 2017 (version: )
  • 2019 (version: 16.2)
  • for Mac (version: )

Relevant plugins

  • Resharper (version: )

Anything else we need to know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/vswinCategorizes an issue or PR as relevant to Visual Studio for Windowsblocked/vsCategorizes an issue as blocked by a Visual Studio problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions