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 inPropertyGroup
elements.
Idk, might that be some help here. Seems you can check available variables in .targets
and use like $(ProjectDir)
?