How to copy more than one project to Visual Studio and set reference across the pojects?

BenTam 1,781 Reputation points
2024-05-09T04:49:40.9533333+00:00

Dear All,

How to copy multiple projects (that do not exist locally) to Visual Studio and set references across the projects?

Projects

Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2024-05-09T06:43:06.4333333+00:00

    Hi @BenTam-3003 , Welcome to Microsoft Q&A,

    You can use git functions to open your solution.

    User's image

    User's image

    Here is the relevant tutorial link:https://learn.microsoft.com/en-us/visualstudio/version-control/git-with-visual-studio?view=vs-2022

    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. Bruce (SqlWork.com) 77,926 Reputation points Volunteer Moderator
    2024-05-09T22:29:43.6166667+00:00

    visual studio doesn't have the best multiple repo support.

    for each GitHub project to need to clone into a folder, not in another git repo. visual studio defaults to:

    \users\<username>\source\repos

    after clone, you can use VS to add existing project to the solution, then after adding to the solution, you add a reference to the main project.

    your error means you used the wrong url. go to github, find the project you want, then click on the code button to get the correct url. you can also click on open with visual studio, manually clone, etc.

    1 person found this answer helpful.
    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.