I am trying to build a CLR dll file in VS22 and dotnet 6.0 that references boost. When I build, I get the following error.
LNK1104 cannot open file 'libboost_program_options-vc142-mt-x64-1_76.lib'

  • This file does exist.
  • I have restarted to make sure the file isn't locked.
  • I have tried building as 32 and 64 bit.
  • I have tried 3 different versions of boost

The problem is reproduced by this project: https://github.com/MajorMajor0/boostRepro.
Any help would be much appreciated.