Welcome, Guest
Username Password: Remember me

Help with MSbuild 4 and custom tasks
(1 viewing) (1) Guest
BuildForge
  • Page:
  • 1

TOPIC: Help with MSbuild 4 and custom tasks

Help with MSbuild 4 and custom tasks 2 years, 2 months ago #131

  • rajeshkumar
  • OFFLINE
  • Moderator
  • I love software configuration management
  • Posts: 370
  • Points: 44509
  • Karma: 4
  • Honor Medal 2009
I'm trying to build a custom task using the Task base class in Microsoft.Build.Utilitieis.v4.0. I have the task built and compiled just fine but I get this error

C:\sandbox\c-wundram\msbuild\TalTrade.Importer\TestImporterTask\TestImporterTas
k.csproj(58,5): error MSB4062: The "Importer" task could not be loaded from the
assembly C:\sandbox\c-wundram\msbuild\TalTrade.Importer\TalTrade.Importer\bin\
debug\TalTrade.Importer.dll. Confirm that the <UsingTask> declaration is corre
ct, that the assembly and all its dependencies are available, and that the task
contains a public class that implements Microsoft.Build.Framework.ITask.

However the path is correct, and the class which subclasses Task is public. I tried checking the binding using fuslogvw, and it doesn't appear to even attempt to load my assembly. Does anyone have any ideas of what might be going wrong? The only depenendencies my assembly has is on the framework, and on the TFS 2010 APIs.
Regards,
Rajesh Kumar
Build and Release Engineer
My Blog: community.scmgalaxy.com/pg/profile/rajeshkumar

Re:Help with MSbuild 4 and custom tasks 2 years ago #237

  • boris
Hiho,

As far as I understand, you are *not* talking about Rational BuildForge (or there may be several buildforge names).

If you want to get some answers, you should repost in a more appropriate forum (e.g. MS Build).

Cheers,

--
boris
  • Page:
  • 1
Time to create page: 0.67 seconds

     
    
Home Forum