C
C#15mo ago
MrScautHD

❔ MSBuild: How to call own Task in the .csproj

Hi i tried to call my task in the . csproj but idk how, that is what i tried:
<Target Name="Headless">
<HeadlessTask SourceFile="*.cs" />
</Target>
<Target Name="Headless">
<HeadlessTask SourceFile="*.cs" />
</Target>
4 Replies
MarkPflug
MarkPflug15mo ago
Have you registered the task?
MarkPflug
MarkPflug15mo ago
Create a custom task - MSBuild
Learn how to use MSBuild to create a custom task for code generation that properly handles incremental build and clean operations.
MrScautHD
MrScautHDOP15mo ago
How to register it?
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server