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#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

Answer accepted by question author
  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 36 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.