I have the following Directory.build.targets
file located next to the solution file:
<BinaryFormats Include="$(SolutionDir)Projects\BinaryFormats\bin\Debug\netstandard2.1\BinaryFormats.dll" />
Its job is to copy some class libraries to $(SolutionDir)Assets\Plugins
and achieves in doing so.
One thing however, each of the file path to be copied is hard-coded.
Is it possible somehow to imports the macros of a .csproj and use them in the file?
For instance, to be able to use the following syntax instead of hard-coded paths:
<ItemGroup>
<BinaryFormats Include="$(TargetDir)$(TargetName).dll"/>
<BinaryFormats Include="$(TargetDir)$(TargetName).pdb"/>
</ItemGroup>
