C
C#2w ago
danilwhale

MSBuild doesn't detect files created using Target

i currently have target like this:
<Target Name="GenerateBinding" BeforeTargets="BuildGenerateSources">
<Exec Command="ClangSharpPInvokeGenerator @(ClangSharpArgs, ' ')" ContinueOnError="true"/>
</Target>
<Target Name="GenerateBinding" BeforeTargets="BuildGenerateSources">
<Exec Command="ClangSharpPInvokeGenerator @(ClangSharpArgs, ' ')" ContinueOnError="true"/>
</Target>
it generates binding and then some classes use them, but even if its called before build, its still throws tons of errors, because it cant find classes from binding
1 Reply
danilwhale
danilwhale2w ago
ended up making script