How do I add an assembly to a Visual Studio project and reference it?

前端 未结 5 1211
夕颜
夕颜 2020-12-20 15:42

I\'ve compiled an assembly for MySql.Data.dll and would like to add it to a new Visual Studio Project. I\'m lost on the correct terminology and how best to go

5条回答
  •  粉色の甜心
    2020-12-20 16:38

    Try the following

    • Right cilck on the References Node
    • Choose "Add Reference"
    • Click on the Browse tab
    • Navigate to the dll MySql.Data.dll on disk and hit OK

    Once it's added, click on the reference under the References folder and hit F4. This will bring up the properties tool window. Make sure it is set to "Copy Local" = True. This will ensure it gets deployed with your application by the standard installers (MSI and ClickOnce)

提交回复
热议问题