C
C#2y 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
MarkPflug2y ago
Have you registered the task?
MarkPflug
MarkPflug2y 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
MrScautHDOP2y ago
How to register it?
Accord
Accord2y 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?