Add Reference is missing in Visual Studio when using with Unity 3D - Need Npgsql.dll

前端 未结 2 1573
深忆病人
深忆病人 2020-12-31 08:25

I installed Unity 2017 with Visual Studio 2017. I am attempting to add an external DLL to the Visual Studio project through the solution explorer. When I right click on Refe

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-31 08:37

    The Add Reference... is in a different place in this case.


    Things to do in Unity:

    Create a folder named Plugins as a child to your Assets folder. (Assets\Plugins...)

    Next copy your DLL to this plugins folder. You can do this using Windows Explorer or just drag it into the folder in the Unity editor, like shown:


    Things to do in Visual Studio:

    Click on Analyzers in your project as shown below, then click Project from your menu, then navigate to Add Reference...:

    Now Browse to your DLL:

    And... there it is:

提交回复
热议问题