Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

"Remove Unused References" issue #14509

@pfafft33

Description

@pfafft33

Description

When I right-click on my main shared-code project and select "Remove Unused References", it tells me to remove Xamarin.Forms, which seems very strange to me since this is the project with all of the XAML pages defined.
What is even stranger is that if I go ahead and tell it to remove Xamarin.Forms from the project, the solution still compiles and runs OK.
Can somebody please explain this behavior to me? It seems like it is a bug.

Steps to Reproduce

Expected Behavior

I expect the IDE to throw errors when I remove Xamarin.Forms reference from my main shared-code project.
I have using statements for BOTH Xamarin.Forms and Xamarin.Forms.Xaml in the App.xaml.cs file.

Actual Behavior

The actual behavior is that the solution builds and runs OK, WITHOUT Xamarin.Forms reference in the main shared-code project.

Basic Information

  • Version with issue: 16.11.0
  • Last known good version:
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library / AndroidX Version:
  • NuGet Packages:
  • Affected Devices:

Environment

Show/Hide Visual Studio info

Build Logs

Screenshots

Reproduction Link

Workaround

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions