Good morning ScootRadDev. Welcome to Microsoft Newsgroup Support Service!
My name is Jialiang Ge [MSFT]. It's my pleasure to work with your on this
issue.
As you may have found according to your post "How to use FxCop and say
'build partial succeed'?" in the microsoft.public.serverappliance
newsgroup, the codeplex solution "SDC Tasks Library" can help us realize
the "continuous integration partial succeed" with code analysis.
http://www.codeplex.com/sdctasks/
I notice that you came across the error "'Microsoft.Sdc.Tasks.Tools.FxCop'
task could not be loaded from the Assembly" when you were using "SDC tasks
library". After several hours' tests and researches, I think I have found
out the possible cause and resolution:
---- CAUSE ----
The document of "SDC Tasks Library" suggested
<PropertyGroup>
<TasksPath>D:\BuildTools</TasksPath>
</PropertyGroup>
<Import Project="$(TasksPath)\Microsoft.Sdc.Common.tasks"/>
However, in the Microsoft.Sdc.Common.tasks, I find that all the UsingTasks
are defined in this way by default:
<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll"
TaskName="Microsoft.Sdc.Tasks.ActiveDirectory.Grou p.AddGroup"/>
<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll"
TaskName="Microsoft.Sdc.Tasks.ActiveDirectory.Grou p.AddUser"/>
<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll"
TaskName="Microsoft.Sdc.Tasks.ActiveDirectory.Grou p.Create"/>
The value of "$(TasksPath)Microsoft.Sdc.Tasks.dll" lacks a character '\' if
our TasksPath equals "D:\BuildTools"
In other words, this lack of '\' results in an incorrect assembly file
path, and caused the error "Microsoft.Sdc.Tasks.Tools.FxCop' task could
not be loaded from the Assembly" in the team build.
---- RESOLUTION ----
Replace all the occurrences of "$(TasksPath)" with "$(TasksPath)\".
ScootRadDev, please try the solution and let me know whether it works for
you. If you have any other concerns or questions, please DON'T hesitate to
tell me.
Regards,
Jialiang Ge (ji****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.