Skip to content

Chocobo1/fb2k_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fb2k_example

A minimal project for developing foobar2000 component in VS2022

GithubActions_badge

Usage

  1. Get foobar2000 SDK and extract it into lib\foobar2000_sdk directory
    The SDK version used at the time is 2023-04-18.
  2. 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:
      <Import Project="..\packages\wtl.10.0.10320\build\native\wtl.targets" Condition="Exists('..\packages\wtl.10.0.10320\build\native\wtl.targets')" />
      To:
      <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:
      <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'))" />
      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'))" />
  3. Open foo_test.sln, select OK when asked whether to update compiler/libraries for old projects
  4. Build foo_test!
  5. foo_test.dll will be generated at Debug, Release or x64 directory depending on your configuration
  6. To load the component in foobar2000, copy the foo_test.dll into foobar2000\components directory

Notes

Useful references

About

Minimal example of writing a foobar2000 plugin

Resources

Stars

Watchers

Forks

Packages

No packages published