Continuous integration partial succeed

  • Thread starter Thread starter ScottRadDev
  • Start date Start date
S

ScottRadDev

So I have this problem. I'm currently involved in a team project that has a
nightly build on a build server and a continuous integration build on the
same server. We want to build our c# program without running StyleCop or
FxCop. Then We want FxCop and StyleCop to run seperately as created targets.
This way if they fail our build will say we have a partial success and if
those targets succeedwe have a total succeed. Please Help. Thank You
 
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.Group.AddGroup"/>
<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll"
TaskName="Microsoft.Sdc.Tasks.ActiveDirectory.Group.AddUser"/>
<UsingTask AssemblyFile="$(TasksPath)Microsoft.Sdc.Tasks.dll"
TaskName="Microsoft.Sdc.Tasks.ActiveDirectory.Group.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 ([email protected], 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:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello ScottRadDev,

I am writing to check the status of the issue on your side. Would you mind
letting me know the result of the suggestions? If you need further
assistance, feel free to let me know. I will be more than happy to be of
assistance.

Have a great day!

Regards,
Jialiang Ge ([email protected], 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:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 
You are welcome, ScottRadDev.

Have a great day!

Regards,
Jialiang Ge ([email protected], 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:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top