in Visual Studio Code I simply want to add a reference to an custom c# assembly like
"../libs/mylib.dll"
how can I add this dependency?
I tried to add the path to the dependency but was not able to compile because its just wrong :)
"dependencies": {
"myassembly" : "../libs/Common.dll"
},
or
"dependencies": {
"log4net" : { "assembly":"../libs/log4net.dll" }
},
C/C++ support for Visual Studio Code is provided by a Microsoft C/C++ extension to enable cross-platform C and C++ development on Windows, Linux, and macOS.
The Visual Studio build tools include a C compiler that you can use to create everything from basic console programs to full Windows Desktop applications, mobile apps, and more.
simpler, just add the following:
1) modify the myproject.csproj file
<ItemGroup>
<Reference Include="DllComunVb2008">
<HintPath>..\Dlls\DllComunVb2008.dll</HintPath>
</Reference>
</ItemGroup>
2) Add the using
of the library you are going to use. Example: using Dllcomun;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With