© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
1 reply
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

MSBuild : want to detect when files change for the target to be called
C#CC# / help
8mo ago
Run msbuild target only during dotnet pack
C#CC# / help
4y ago
❔ Target runtime doesn't support default interface implementation.
C#CC# / help
4y ago
❔ VScode doesn't recognize C# files
C#CC# / help
3y ago