Adding reference to another project from visual studio code

后端 未结 4 2010
孤独总比滥情好
孤独总比滥情好 2020-12-28 16:12

If a library (eg, on github) doesn\'t distribute itself via a nuget package, I\'d have to manually include it as a reference, correct? I see a lot of reference posts for how

4条回答
  •  甜味超标
    2020-12-28 16:44

    Let's say you have two projects:

    1) Project1.Api

    2) Project2.Executable


    Command line syntax for dotnet add reference:

        cd Project2.Executable
        dotnet add reference ../Project1.Api/Project1.Api.csproj
    

    If you check the Project2.Executable.csproj file, you will see the following entry:

        
             
        
    

提交回复
热议问题