Home > Software design >  How to add DLL reference in Visual Studio Code
How to add DLL reference in Visual Studio Code

Time:08-06

I'm working on an application where I can get the CPU and GPU temperature. I followed the steps here (enter image description here

CodePudding user response:

You need to add a reference to any .dll files in your csTemp.csproj file as such:

  <ItemGroup>
     <Reference Include="OpenHardwareMonitorLib">
      <HintPath>**path\to\your\dll**</HintPath>
     </Reference>
  </ItemGroup>

CodePudding user response:

Don't know way to do this with VSCode, but...

Not every tool is good for everything. I'll try use Visual Studio 2022 Community to add this DLL. It should make changes to the project, which are independent of the editor you are using. Or do it manually like @hotdog_buns said. I hope it works.

  • Related