Click here to Skip to main content
15,901,122 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: How to code MultiThreading into 4 Processors in vb.net? Pin
Luc Pattyn7-Oct-09 6:46
sitebuilderLuc Pattyn7-Oct-09 6:46 
AnswerRe: How to code MultiThreading into 4 Processors in vb.net? Pin
Shameel19-Oct-09 0:20
professionalShameel19-Oct-09 0:20 
QuestionGarbage Collection Pin
KSR816-Oct-09 12:57
KSR816-Oct-09 12:57 
AnswerRe: Garbage Collection Pin
raghu.g6-Oct-09 17:56
raghu.g6-Oct-09 17:56 
AnswerRe: Garbage Collection Pin
N a v a n e e t h6-Oct-09 18:03
N a v a n e e t h6-Oct-09 18:03 
AnswerRe: Garbage Collection Pin
supercat97-Oct-09 7:44
supercat97-Oct-09 7:44 
GeneralRe: Garbage Collection Pin
KSR817-Oct-09 11:15
KSR817-Oct-09 11:15 
QuestionNCoverExplorer Report & MSBuild Pin
Jammer6-Oct-09 10:48
Jammer6-Oct-09 10:48 
Hi All,

I've been struggling with this for a few days now and I need some help. I've looked at the NCoverExplorer Community Forum but it seems that support questions aren't replied to at all so I thought I'd try here. I've never written a build script in my life so I'm still formly embedded in the confused state at the moment.

I'm using TeamCity 4.5, MSBuild & TTD.NET2.0 (NCoverExplorer) and the NCoverExplorer Extras with the MSBuildTask dlls. I cannot get the NCover target to actually work. My script is:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

	<UsingTask AssemblyFile="C:\Program Files\Gallio\bin\Gallio.MSBuildTasks.dll" TaskName="Gallio" />
	<UsingTask TaskName="NCoverExplorer.MSBuildTasks.NCoverExplorer" AssemblyFile="$(MSBuildProjectDirectory)\Ext\MSBuild\NCoverExplorer.MSBuildTasks.dll"/>
	<UsingTask TaskName="NCoverExplorer.MSBuildTasks.NCover" AssemblyFile="$(MSBuildProjectDirectory)\Ext\MSBuild\NCoverExplorer.MSBuildTasks.dll"/>
	<UsingTask TaskName="NCoverExplorer.MSBuildTasks.NUnitProject" AssemblyFile="$(MSBuildProjectDirectory)\Ext\MSBuild\NCoverExplorer.MSBuildTasks.dll"/>
	
	<PropertyGroup>
		<CoveragePath>$(MSBuildProjectDirectory)</CoveragePath>
	</PropertyGroup>
  
	<ItemGroup>
		<ProjectToBuild Include="$(MSBuildProjectDirectory)\SampleSort.sln"/>
		<TestAssemblies Include="$(MSBuildProjectDirectory)\SampleSort.Tests\bin\Release\SampleSort.Tests.dll"/>
		<CoverageFile Include="$(CoveragePath)Reports\Coverage.xml" />
	</ItemGroup>
	
	<Target Name="Clean">
		<RemoveDir Directories="Application" Condition="Exists('Application')"/>
		<RemoveDir Directories="Reports" Condition="Exists('Reports')"/>
		<MSBuild Projects="@(ProjectToBuild)" Targets="Clean"/>
	</Target>

	<Target Name="BuildSolution">
        <MakeDir Directories="Application"/>
		<MakeDir Directories="Application\Release"/>
		<MakeDir Directories="Application\Release\Audio"/>
		<MakeDir Directories="Application\Release\Audio\x64"/>
		<MakeDir Directories="Application\Release\AudioFile"/>
		<MakeDir Directories="Application\Release\Ext"/>
		<MakeDir Directories="Application\Release\Int"/>
		<MakeDir Directories="Application\Release\Help"/>
		<MakeDir Directories="Application\Release\Mods"/>
		
		<MSBuild Projects="@(ProjectToBuild)"
				 Targets="Rebuild"
				 Properties="Configuration=Release;Platform=x86">
			<Output TaskParameter="TargetOutputs" ItemName="BuildOutput"/>
		</MSBuild>
	</Target>
	
    <Target Name="Test">
        <MakeDir Directories="Reports"/>
        <Gallio IgnoreFailures="true"
                Files="@(TestAssemblies)"
                ReportDirectory="Reports"
                ReportTypes="html"
				ReportNameFormat="gallio"
				ShowReports="false">
            <Output TaskParameter="ExitCode" PropertyName="ExitCode"/>
        </Gallio>
                <Error Text="Tests execution failed" Condition="'$(ExitCode)' != 0" />
        </Target>

	<Target Name="NCoverExplorerReport">
		<NCoverExplorer
	        ProjectName="TestProject"
	        ReportType="ModuleClassSummary" 
	        OutputDir="Reports"
	        XmlReportName="CoverageSummary.xml"
	        HtmlReportName="CoverageSummary.html"
	        ShowExcluded="True"
	        SatisfactoryCoverage="50"
	        CoverageFiles="@(CoverageFile)" 
	        Exclusions="Assembly=*.Tests;Namespace=*.Tests*"
		/>
	</Target>
</Project>


The error message is:

 Stop time: 21:42 (Total execution time: 12.877 seconds) 
C:\TeamCity\buildAgent\work\b4fbc63cd7cc2d0d\SampleSort.msbuild(57,3): error MSB6001: Invalid command line switch for
 "NCoverExplorer.Console.exe". Value cannot be null. C:\TeamCity\buildAgent\work\b4fbc63cd7cc2d0d\SampleSort.msbuild(57,3): 
error MSB6001: Parameter name: path1 


Im basically completely in the dark about how to do this. I've read so many different scripts online that all appear to do it slightly differently that I can't tell what is actually required to get this to work.

Any help really appreciated, I feel like it's groundhog day trying to get this to work.

Thanks,

Jammer
My Blog | Articles

AnswerRe: NCoverExplorer Report & MSBuild [modified] Pin
Ergwun9-Jun-10 21:18
Ergwun9-Jun-10 21:18 
QuestionMemory leak in VB.NET screenshot application Pin
Jordan19826-Oct-09 4:10
Jordan19826-Oct-09 4:10 
AnswerRe: Memory leak in VB.NET screenshot application Pin
Dave Kreskowiak6-Oct-09 4:39
mveDave Kreskowiak6-Oct-09 4:39 
GeneralRe: Memory leak in VB.NET screenshot application Pin
Jordan19826-Oct-09 5:00
Jordan19826-Oct-09 5:00 
AnswerRe: Memory leak in VB.NET screenshot application Pin
Luc Pattyn6-Oct-09 5:39
sitebuilderLuc Pattyn6-Oct-09 5:39 
Questioncopy functionality does not work in CrystalReportViewer Pin
maryam.saboor6-Oct-09 1:02
professionalmaryam.saboor6-Oct-09 1:02 
QuestionBroken Clipping Region Pin
RichardM15-Oct-09 15:26
RichardM15-Oct-09 15:26 
QuestionCustom file format - how to let Windows recognize properties like labels? Pin
pimb24-Oct-09 8:45
pimb24-Oct-09 8:45 
AnswerRe: Custom file format - how to let Windows recognize properties like labels? Pin
Richard MacCutchan5-Oct-09 1:01
mveRichard MacCutchan5-Oct-09 1:01 
GeneralRe: Custom file format - how to let Windows recognize properties like labels? Pin
pimb25-Oct-09 5:17
pimb25-Oct-09 5:17 
GeneralRe: Custom file format - how to let Windows recognize properties like labels? Pin
Richard MacCutchan5-Oct-09 6:25
mveRichard MacCutchan5-Oct-09 6:25 
GeneralRe: Custom file format - how to let Windows recognize properties like labels? Pin
pimb25-Oct-09 6:30
pimb25-Oct-09 6:30 
AnswerRe: Custom file format - how to let Windows recognize properties like labels? Pin
Richard MacCutchan5-Oct-09 7:22
mveRichard MacCutchan5-Oct-09 7:22 
GeneralRe: Custom file format - how to let Windows recognize properties like labels? Pin
Richard MacCutchan7-Oct-09 0:49
mveRichard MacCutchan7-Oct-09 0:49 
GeneralRe: Custom file format - how to let Windows recognize properties like labels? Pin
pimb214-Oct-09 2:52
pimb214-Oct-09 2:52 
GeneralRe: Custom file format - how to let Windows recognize properties like labels? Pin
Richard MacCutchan14-Oct-09 3:01
mveRichard MacCutchan14-Oct-09 3:01 
QuestionBindingSource Insert problem .... Pin
devboycpp3-Oct-09 22:19
devboycpp3-Oct-09 22:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.