C
C#17mo 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
MarkPflug17mo ago
Have you registered the task?
MarkPflug
MarkPflug17mo 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
MrScautHDOP17mo ago
How to register it?
Accord
Accord16mo 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.

Did you find this page helpful?