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
Mobile.iOS and Mobile.Android reference Mobile.Shared
File (Foo.cs) contains two classes, violating SA1402
Execute the Code Fix for the offending class
Expected:
StyleCop creates a new file in Mobile.Shared for the second class
Actual:
StyleCop creates a new file in each of the projects referencing Mobile.Shared (Mobile.iOS and Mobile.Android)
Thank you so much for this project. This is not a blocking issue - just trying to do my part by reporting it.
The text was updated successfully, but these errors were encountered:
This is similar to some other bugs we've had. At the time we last checked, this was caused by a Roslyn limitation; the most frustrating part is Roslyn doesn't even provide us with information to know whether or not the bug will occur (so we could selectively disable the code fix for violations in shared projects).
Scenario:
Solution with:
Xamarin Shared Project (calling this Mobile.Shared)
Xamarin iOS Project (Mobile.iOS)
Xamarin Android Project (Mobile.Android)
Mobile.iOS and Mobile.Android reference Mobile.Shared
File (Foo.cs) contains two classes, violating SA1402
Execute the Code Fix for the offending class
Expected:
StyleCop creates a new file in Mobile.Shared for the second class
Actual:
StyleCop creates a new file in each of the projects referencing Mobile.Shared (Mobile.iOS and Mobile.Android)
Thank you so much for this project. This is not a blocking issue - just trying to do my part by reporting it.
The text was updated successfully, but these errors were encountered: