“../libs/mylib.dll”
我该如何添加这种依赖?
我试图添加路径到依赖,但无法编译,因为它只是错误的:)
"dependencies": { "myassembly" : "../libs/Common.dll" },
要么
"dependencies": { "log4net" : { "assembly":"../libs/log4net.dll" } },
1)修改myproject.csproj文件
<ItemGroup> <Reference Include="DllComunVb2008"> <HintPath>..\Dlls\DllComunVb2008.dll</HintPath> </Reference> </ItemGroup>
2)添加您要使用的库的使用.示例:使用Dllcomun;