Skip to content

Improve the user experience for Add reference quick action with respect to Incompatible references #70479

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
When a project reference from .NET Core (.NET 6) project to .NET Framework project is missing, adding it through quick actions and refactoring menu (Alt+Enter or Ctrl+.) does nothing.
This works for other combinations (e.g. .NET Core to .NET Core or .NET Core to .NET Standard or .NET Framework to .NET Standard or .NET Framework to .NET Framework).

How to reproduce:

  1. Create a new solution
  2. Add a .NET Framework (e.g. Windows Forms Application) project
  3. Add a .NET Core (e.g. Windows Forms Application) project
  4. Use a class in code from .NET Framework project in .NET Core code and try add missing project reference using quick actions and refactorings menu (Alt+Enter or Ctrl+.).

obrazek.png

In step 4, selecting the option "Add reference to WinFormsApp1" will do nothing.

Expected behavior: project reference is added from the .NET Core project to the .NET Framework project.

(note: Launcher is the name of the .NET Core project in the screenshot))


Original Comments

Feedback Bot on 10/17/2023, 08:02 AM:

(private comment, text removed)

Zhengye Xu [MSFT] on 10/17/2023, 11:53 AM:

(private comment, text removed)

Feedback Bot on 10/19/2023, 11:12 PM:

(private comment, text removed)


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Complete

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions