简体   繁体   中英

Error when building VS2008 solution with TFS2010

I'm getting following error when building my VS2008 Solution with TFS2010.

error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\AssemblyInfoTask\Microsoft.VersionNumber.Targets" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

Can someone help me with that?

Thanks.

Looks like MSBuild could not find AssemblyInfoTask\\Microsoft.VersionNumber.Targets, one possible problem is that the build service does not do a recursive search for the custom tasks to download them. See if your problem is similar to this one:

http://social.msdn.microsoft.com/forums/en-US/tfsbuild/thread/dfefb86a-a969-4545-9f0d-7e764fd49861

Aaron Hallberg describes how to configure the build service to search for the custom tasks recursively here:

http://blogs.msdn.com/b/aaronhallberg/archive/2008/02/12/modifying-the-configurationfolderpath-recursiontype-in-team-build-2008.aspx

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM