visual studio 2022 c# project references

Eunice Maina 20 Reputation points
2023-08-04T07:35:39.6666667+00:00

why is that every time i create a windows form c# project in visual studio 2022 in the solution explorer there are no references and when i try to add a reference i only find the one named system.configuration.dll i add it , but i get the error the reference is invalid or unsupported , kindly help

refence 2

refence error

Developer technologies | Windows Forms
Developer technologies | .NET | Other
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2023-08-04T07:47:02.9666667+00:00

    Hi @Eunice Maina , Welcome to Microsoft Q&A,

    If you mean this Reference:

    User's image

    Please create a .Net Framework project, you created a .Net project.

    User's image

    Best Regards,

    Jiale


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Brian Wengel 31 Reputation points
    2023-12-27T10:12:09.58+00:00

    Is there are way to troubleshoot this, perhaps enable some logging somewhere?
    In my case I can reference the library-project and build both main-project and the referenced library project. But if I try to reference the library dll alone I get the error "The reference is invalid or unsupported".

    (I did remove the referenced to the library project first, also restarted the project and even VS).

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.