You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After the project mutation in a MAUI app, framework level calls such as InitializeComponent become unrecognized.
Logs
Stryker.NET encountered a compile error in StrykerTest/StrykerTest/App.xaml.cs (at 6:2) with message: The name 'InitializeComponent' does not exist in the current context (Source code: InitializeComponent)
Safe Mode! Stryker will flag mutations in App as compile error.
Stryker.NET could not compile the project after mutation. This is probably an error for Stryker.NET and not your project. Please report this issue on github with the previous error message.
Expected behavior
The MAUI app will continue to compile after mutations are run. MAUI specific methods, such as InitializeComponent will remain recognized after mutations.
Desktop (please complete the following information):
OS: MacOS 15.1.1
Type of project: MAUI
Framework Version: net8.0
Stryker Version: 4.5.1
Additional context
I spent time struggling to get a MAUI app to pass analysis because the TargetFramework configuration option was ignored in the IProjectAnalyzer.Build() method. So I checked out the code, modified the analyzer to pass in the configured TargetFramework, and got past that step where mutations would actually run. This is the only set of code changes that I made.
The text was updated successfully, but these errors were encountered:
I spent time struggling to get a MAUI app to pass analysis because the TargetFramework configuration option was ignored in the IProjectAnalyzer.Build() method. So I checked out the code, modified the analyzer to pass in the configured TargetFramework, and got past that step where mutations would actually run. This is the only set of code changes that I made.
Describe the bug
After the project mutation in a MAUI app, framework level calls such as InitializeComponent become unrecognized.
Logs
Stryker.NET encountered a compile error in StrykerTest/StrykerTest/App.xaml.cs (at 6:2) with message: The name 'InitializeComponent' does not exist in the current context (Source code: InitializeComponent)
Safe Mode! Stryker will flag mutations in App as compile error.
Stryker.NET could not compile the project after mutation. This is probably an error for Stryker.NET and not your project. Please report this issue on github with the previous error message.
Expected behavior
The MAUI app will continue to compile after mutations are run. MAUI specific methods, such as InitializeComponent will remain recognized after mutations.
Desktop (please complete the following information):
Additional context
I spent time struggling to get a MAUI app to pass analysis because the TargetFramework configuration option was ignored in the
IProjectAnalyzer.Build()
method. So I checked out the code, modified the analyzer to pass in the configured TargetFramework, and got past that step where mutations would actually run. This is the only set of code changes that I made.The text was updated successfully, but these errors were encountered: