How can I load an external .ttf and use it within the exported application?

A build event in the IDE results in an MSBuild target in the project file. You can use any MSBuild property that is available in the target in your project file (for example, $(OutDir) or $(Configuration) ) . The MSBuild properties that are available to you in these events depend on the files implicitly or explicitly imported in a project file, such .props and .targets files, and properties set in your project file, such as in PropertyGroup elements.

Idk, might that be some help here. Seems you can check available variables in .targets and use like $(ProjectDir)?

1 Like