How to get import custom tasks more than once without warning message?

Posted by Nam Gi VU on Stack Overflow See other posts from Stack Overflow or by Nam Gi VU
Published on 2010-03-30T12:05:57Z Indexed on 2010/04/01 8:23 UTC
Read the original article Hit count: 317

Filed under:

I'm using some custom tasks from MSBuild Extension Pack (MEP). My projects are splitted among many files. In those files I import the MEP tasks using (twice or three times in two/three files). I receive the warning message when doing this like:

... warning MSB4011: "C:\Program Files\MSBuild\ExtensionPack\MSBuild.ExtensionPack.tasks" cannot be imported again. It was already imported at "D:...\Tasker.proj (5,3)". This is most likely a build authoring error. This subsequent import will be ignored.

Does anyone know how to get rid of this warning message? Please help!

© Stack Overflow or respective owner

Related posts about msbuild-task