Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.



Get Started Now!

Help with MSbuild 4 and custom tasks

BuildForge

rajeshkumar created the topic: Help with MSbuild 4 and custom tasks
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 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
Twitt me @ twitter.com/RajeshKumarIn

boris replied the topic: Re:Help with MSbuild 4 and custom tasks
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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x