Permalink
Browse files

added build instructions and tidied build

updated documentation
added registration patch from sf [#11]
1 parent e31136c commit 51651c4cb046f4f52899af0e9b9968dcfe402b82 @sawilde committed Aug 1, 2010
View
@@ -0,0 +1,24 @@
+PartCover has dependancies on 2 external libraries atlsvr and boost; both libraries are in compressed packages as part of the download - so that all developers use the same versions.
+
+In order to allow those of us who use github and sourceforge to develop against partcover please follow these instructions when laying out the libraries such that
+the relative paths for both sourceforge and github are the same
+
+.\libraries\atlsvr\atlsvr_9_0_70425
+ \include
+ \source
+.\libraries\boost\boost_1_43_0
+.\partcover.git\working\partcover.net4
+ \libraries
+ \main
+.\partcover.sf\partcover\trunk
+ \libraries
+ \main
+
+see layout.jpg for an idea of what the structure looks like on my machine.
+
+I apologise for the slight complexity but it does help those of us to work on both repositories at the same time (and to merge between them).
+
+
+
+
+
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
Binary file not shown.
@@ -29,7 +29,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
+ <OutputPath>..\bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
@@ -55,7 +55,7 @@
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <OutputPath>bin\Release\</OutputPath>
+ <OutputPath>..\bin\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
@@ -24,75 +24,80 @@ static int Main(string[] args)
Console.SetError(Console.Out);
}
- var connector = new Connector();
- connector.StatusMessageReceived += connector_StatusMessageReceived;
- connector.LogEntryReceived += connector_LogEntryReceived;
+ using (Registration.Create(settings.Register ? System.Reflection.Assembly.GetExecutingAssembly().Location : null))
+ {
+ //Console.ReadLine();
- connector.UseFileLogging(true);
- connector.UsePipeLogging(true);
- connector.SetLogging((Logging)settings.LogLevel);
+ var connector = new Connector();
+ connector.StatusMessageReceived += connector_StatusMessageReceived;
+ connector.LogEntryReceived += connector_LogEntryReceived;
- foreach (var item in settings.IncludeItems)
- {
- try
+ connector.UseFileLogging(true);
+ connector.UsePipeLogging(true);
+ connector.SetLogging((Logging)settings.LogLevel);
+
+ foreach (var item in settings.IncludeItems)
{
- connector.IncludeItem(item);
+ try
+ {
+ connector.IncludeItem(item);
+ }
+ catch (ArgumentException)
+ {
+ Console.Error.WriteLine("Item '" + item + "' have wrong format");
+ }
}
- catch (ArgumentException)
+
+ foreach (var item in settings.ExcludeItems)
{
- Console.Error.WriteLine("Item '" + item + "' have wrong format");
+ try
+ {
+ connector.ExcludeItem(item);
+ }
+ catch (ArgumentException)
+ {
+ Console.Error.WriteLine("Item '" + item + "' have wrong format");
+ }
}
- }
- foreach (var item in settings.ExcludeItems)
- {
- try
+ var options = new SessionRunOptions
{
- connector.ExcludeItem(item);
- }
- catch (ArgumentException)
+ TargetPath = settings.TargetPath,
+ TargetDirectory = settings.TargetWorkingDir,
+ TargetArguments = settings.TargetArgs,
+ RedirectOutput = true,
+ DelayClose = false,
+ FlattenDomains = !settings.DisableFlattenDomains
+ };
+
+ connector.Options = options;
+ connector.StartTarget();
+
+ try
{
- Console.Error.WriteLine("Item '" + item + "' have wrong format");
+ var writer = settings.OutputToFile
+ ? new XmlTextWriter(File.CreateText(settings.FileNameForReport))
+ : new XmlTextWriter(Console.Out);
+ using (writer)
+ {
+ writer.Formatting = Formatting.Indented;
+ writer.Indentation = 1;
+ writer.IndentChar = ' ';
+ ReportSerializer.Save(writer, connector.Report);
+ }
}
- }
-
- var options = new SessionRunOptions
- {
- TargetPath = settings.TargetPath,
- TargetDirectory = settings.TargetWorkingDir,
- TargetArguments = settings.TargetArgs,
- RedirectOutput = true,
- DelayClose = false,
- FlattenDomains = !settings.DisableFlattenDomains
- };
-
- connector.Options = options;
- connector.StartTarget();
-
- try
- {
- var writer = settings.OutputToFile
- ? new XmlTextWriter(File.CreateText(settings.FileNameForReport))
- : new XmlTextWriter(Console.Out);
- using (writer)
+ catch (Exception ex)
{
- writer.Formatting = Formatting.Indented;
- writer.Indentation = 1;
- writer.IndentChar = ' ';
- ReportSerializer.Save(writer, connector.Report);
+ Console.Error.WriteLine("Can't save report (" + ex.Message + ")");
}
- }
- catch (Exception ex)
- {
- Console.Error.WriteLine("Can't save report (" + ex.Message + ")");
- }
#if DEBUG
- WriteListOfSkippedItems(connector.Report);
+ WriteListOfSkippedItems(connector.Report);
#endif
- if (connector.TargetExitCode.HasValue)
- return connector.TargetExitCode.Value;
+ if (connector.TargetExitCode.HasValue)
+ return connector.TargetExitCode.Value;
+ } // end using
}
catch (SettingsException ex)
{
@@ -54,7 +54,7 @@
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <OutputPath>bin\Release\</OutputPath>
+ <OutputPath>..\bin\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
Oops, something went wrong.

0 comments on commit 51651c4

Please sign in to comment.