A minimal project for developing foobar2000 component in VS2022
- Get foobar2000 SDK and extract it into
lib\foobar2000_sdk
directory
The SDK version used at the time is2023-04-18
. - Use a text editor and open
lib\foobar2000_sdk\foobar2000\helpers\foobar2000_sdk_helpers.vcxproj
To accommodate the directory structure, do the followings:- Replace this line from:
To:
<Import Project="..\packages\wtl.10.0.10320\build\native\wtl.targets" Condition="Exists('..\packages\wtl.10.0.10320\build\native\wtl.targets')" />
<Import Project="..\..\..\..\packages\wtl.10.0.10320\build\native\wtl.targets" Condition="Exists('..\..\..\..\packages\wtl.10.0.10320\build\native\wtl.targets')" />
- Replace this line from:
To:
<Error Condition="!Exists('..\packages\wtl.10.0.10320\build\native\wtl.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\wtl.10.0.10320\build\native\wtl.targets'))" />
<Error Condition="!Exists('..\..\..\..\packages\wtl.10.0.10320\build\native\wtl.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\wtl.10.0.10320\build\native\wtl.targets'))" />
- Replace this line from:
- Open
foo_test.sln
, selectOK
when asked whether to update compiler/libraries for old projects - Build
foo_test
! foo_test.dll
will be generated atDebug
,Release
orx64
directory depending on your configuration- To load the component in foobar2000, copy the
foo_test.dll
intofoobar2000\components
directory