Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CSHARP-499: added psake build scripts.

  • Loading branch information...
commit ce2e5dc230040f5fe7792b615d6214160361d113 1 parent 1ce03da
@craiggwilson craiggwilson authored
View
3  .gitignore
@@ -37,3 +37,6 @@ Help
# Merge tool artifacts
*.cs.orig
*.vb.orig
+
+# Other
+artifacts
View
5 CSharpDriver-2010.sln
@@ -1,6 +1,6 @@

-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MongoDB.Bson", "MongoDB.Bson\MongoDB.Bson.csproj", "{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MongoDB.BsonUnitTests", "MongoDB.BsonUnitTests\MongoDB.BsonUnitTests.csproj", "{10A5FAC2-E26F-4726-B888-26D5B849F805}"
@@ -49,6 +49,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Release Notes", "Release No
Release Notes\Release Notes v1.6.1.md = Release Notes\Release Notes v1.6.1.md
Release Notes\Release Notes v1.6.md = Release Notes\Release Notes v1.6.md
Release Notes\Release Notes v1.7.md = Release Notes\Release Notes v1.7.md
+ Release Notes\Release Notes v1.8.md = Release Notes\Release Notes v1.8.md
EndProjectSection
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "MongoDB.DriverUnitTestsVB", "MongoDB.DriverUnitTestsVB\MongoDB.DriverUnitTestsVB.vbproj", "{19ED9AD5-A2CA-4F1B-9BE4-96450382F404}"
View
71 CSharpDriverDocs.shfbproj
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <!-- The configuration and platform will be used to determine which
- assemblies to include from solution and project documentation
- sources -->
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{cf31cff3-1925-457c-8775-e08bcd39e49f}</ProjectGuid>
- <SHFBSchemaVersion>1.9.3.0</SHFBSchemaVersion>
- <!-- AssemblyName, Name, and RootNamespace are not used by SHFB but Visual
- Studio adds them anyway -->
- <AssemblyName>Documentation</AssemblyName>
- <RootNamespace>Documentation</RootNamespace>
- <Name>Documentation</Name>
- <!-- SHFB properties -->
- <OutputPath>.\Help\</OutputPath>
- <HtmlHelpName>CSharpDriverDocs</HtmlHelpName>
- <Language>en-US</Language>
- <DocumentationSources>
- <DocumentationSource sourceFile="Bson\Bson.csproj" xmlns="" />
- <DocumentationSource sourceFile="Driver\Driver.csproj" xmlns="" />
- </DocumentationSources>
- <HelpFileFormat>HtmlHelp1, Website</HelpFileFormat>
- <HelpTitle>MongoDB C# Driver API Documentation</HelpTitle>
- <NamespaceSummaries>
- <NamespaceSummaryItem name="MongoDB.Bson" isDocumented="True">The MongoDB.Bson top level namespace and its child namespaces contain the classes for managing Bson data. The top level MongoDB.Bson namespace contains the classes that represent all the basic Bson Types.</NamespaceSummaryItem>
- <NamespaceSummaryItem name="MongoDB.Bson.IO" isDocumented="True">The MongoDB.Bson.IO namespace contains the types that allow reading and writing of Bson data.</NamespaceSummaryItem>
- <NamespaceSummaryItem name="MongoDB.Bson.Serialization" isDocumented="True">The MongoDB.Bson.Serialization namespace contains the types used in the serialization and deserialization of Bson data. It also contains the base interfaces to be implemented by the actual serializers.</NamespaceSummaryItem>
- <NamespaceSummaryItem name="(global)" isDocumented="False" />
- <NamespaceSummaryItem name="MongoDB.Bson.Serialization.Attributes" isDocumented="True">The MongoDB.Bson.Serialization.Attributes namespace contains the Attributes used to control Bson serialization/deserialization.</NamespaceSummaryItem>
- <NamespaceSummaryItem name="MongoDB.Bson.Serialization.Conventions" isDocumented="True">The various conventions used during serialization/deserialization of Bson data are represented by the types in the MongoDB.Bson.Serialization.Conventions namespace.</NamespaceSummaryItem>
- <NamespaceSummaryItem name="MongoDB.Bson.Serialization.IdGenerators" isDocumented="True">The various id generators used in the serialization/deserialization of Bson data are represented in this namespace.</NamespaceSummaryItem>
- <NamespaceSummaryItem name="MongoDB.Bson.Serialization.Options" isDocumented="True">The MongoDB.Bson.Serialization.Options namespace contains the classes that represent the serialization options for specific types such as DateTime, Document etc.</NamespaceSummaryItem>
- <NamespaceSummaryItem name="MongoDB.Bson.Serialization.Serializers" isDocumented="True">The MongoDB.Bson.Serialization.Serializers namespace contains the serializers for the various Bson and base .Net types</NamespaceSummaryItem>
- <NamespaceSummaryItem name="MongoDB.Driver" isDocumented="True">The MongoDB.Driver namespace contains all the basic types and classes that compose the MongoDB driver. It contains the classes needed for most interactions with the database.</NamespaceSummaryItem>
- <NamespaceSummaryItem name="MongoDB.Driver.Builders" isDocumented="True">The MongoDB.Driver.Builders namespace contains helper classes (builders) that can be used to construct various options used in the driver.</NamespaceSummaryItem>
- <NamespaceSummaryItem name="MongoDB.Driver.GridFS" isDocumented="True">The classes used to interact with MongoDB GridFS are part of the MongoDB.Driver.GridFS namespace.</NamespaceSummaryItem>
- <NamespaceSummaryItem name="MongoDB.Driver.Internal" isDocumented="True">The MongoDB.Driver.Internal namespace contains internal classes used by the driver such as ConnectionPool.</NamespaceSummaryItem>
- <NamespaceSummaryItem name="MongoDB.Driver.Wrappers" isDocumented="True">Wrapped versions of various classes for use in serialization are present in the MongoDB.Driver.Wrappers namespace.</NamespaceSummaryItem>
- <NamespaceSummaryItem name="MongoDB.Driver.Linq" isDocumented="True">The MongoDB.Driver.Linq namespace contains the LINQ related classes.</NamespaceSummaryItem>
- </NamespaceSummaries>
- <CopyrightText>Copyright 2010-2012 10gen Inc.</CopyrightText>
- <FeedbackEMailAddress>craig.wilson%4010gen.com, robert%4010gen.com sridhar%4010gen.com</FeedbackEMailAddress>
- <FeedbackEMailLinkText>CSharp driver API doc</FeedbackEMailLinkText>
- <FrameworkVersion>.NET 3.5</FrameworkVersion>
- <HelpFileVersion>1.7.0.4714</HelpFileVersion>
- </PropertyGroup>
- <!-- There are no properties for these groups. AnyCPU needs to appear in
- order for Visual Studio to perform the build. The others are optional
- common platform types that may appear. -->
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|Win32' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|Win32' ">
- </PropertyGroup>
- <!-- Import the SHFB build targets -->
- <Import Project="$(SHFBROOT)\SandcastleHelpFileBuilder.targets" />
-</Project>
View
64 CSharpDriverSetup-2010.sln
@@ -1,64 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "CSharpDriverInstaller", "Installer\CSharpDriverInstaller.wixproj", "{0F21668D-B8AD-4B32-9392-A7BEADF54EFD}"
- ProjectSection(ProjectDependencies) = postProject
- {0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6} = {0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}
- {AE5166CD-76B0-4911-BD80-CED9521F37A1} = {AE5166CD-76B0-4911-BD80-CED9521F37A1}
- EndProjectSection
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bson", "Bson\Bson.csproj", "{0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Driver", "Driver\Driver.csproj", "{AE5166CD-76B0-4911-BD80-CED9521F37A1}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2A0C688C-BDBC-4ED0-9BF0-D7BCDB836063}"
- ProjectSection(SolutionItems) = preProject
- CSharpDriverDocs.shfbproj = CSharpDriverDocs.shfbproj
- EndProjectSection
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Debug|Mixed Platforms = Debug|Mixed Platforms
- Debug|x86 = Debug|x86
- Release|Any CPU = Release|Any CPU
- Release|Mixed Platforms = Release|Mixed Platforms
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Debug|Any CPU.ActiveCfg = Debug|x86
- {0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Debug|Any CPU.Build.0 = Debug|x86
- {0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
- {0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Debug|Mixed Platforms.Build.0 = Debug|x86
- {0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Debug|x86.ActiveCfg = Debug|x86
- {0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Debug|x86.Build.0 = Debug|x86
- {0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Release|Any CPU.ActiveCfg = Release|x86
- {0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Release|Any CPU.Build.0 = Release|x86
- {0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Release|Mixed Platforms.ActiveCfg = Release|x86
- {0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Release|Mixed Platforms.Build.0 = Release|x86
- {0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Release|x86.ActiveCfg = Release|x86
- {0F21668D-B8AD-4B32-9392-A7BEADF54EFD}.Release|x86.Build.0 = Release|x86
- {0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Debug|x86.ActiveCfg = Debug|Any CPU
- {0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Release|Any CPU.Build.0 = Release|Any CPU
- {0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {0E9A3A2A-49CD-4F6C-847C-DC79B4B65CE6}.Release|x86.ActiveCfg = Release|Any CPU
- {AE5166CD-76B0-4911-BD80-CED9521F37A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {AE5166CD-76B0-4911-BD80-CED9521F37A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {AE5166CD-76B0-4911-BD80-CED9521F37A1}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {AE5166CD-76B0-4911-BD80-CED9521F37A1}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {AE5166CD-76B0-4911-BD80-CED9521F37A1}.Debug|x86.ActiveCfg = Debug|Any CPU
- {AE5166CD-76B0-4911-BD80-CED9521F37A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {AE5166CD-76B0-4911-BD80-CED9521F37A1}.Release|Any CPU.Build.0 = Release|Any CPU
- {AE5166CD-76B0-4911-BD80-CED9521F37A1}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {AE5166CD-76B0-4911-BD80-CED9521F37A1}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {AE5166CD-76B0-4911-BD80-CED9521F37A1}.Release|x86.ActiveCfg = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
View
26 GlobalAssemblyInfo.cs
@@ -13,6 +13,7 @@
* limitations under the License.
*/
+using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -20,23 +21,8 @@
[assembly: AssemblyCompany("10gen Inc.")]
[assembly: AssemblyCopyright("Copyright © 2010-2012 10gen Inc.")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-[assembly: AllowPartiallyTrustedCallers]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.8.0.*")]
+[assembly: AssemblyVersion("0.0.0.0")]
+[assembly: AssemblyInformationalVersion("unofficial")]
+[assembly: AssemblyFileVersion("0.0.0.0")]
+[assembly: AssemblyConfiguration("Debug")]
+[assembly: AllowPartiallyTrustedCallers()]
View
20 Installer/CSharpDriverInstaller.wixproj
@@ -1,14 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
+ <Version Condition=" '$(Version)' == '' ">0.0.0.0</Version>
+ <SemVersion Condition=" '$(SemVersion)' == '' ">0.0.0</SemVersion>
+ <SourceBase Condition=" '$(SourceBase)' == '' ">..</SourceBase>
+ <ReleaseNotes Condition=" '$(ReleaseNotes)' == '' "></ReleaseNotes>
+ <License Condition=" '$(License)' == '' ">License.rtf</License>
+ <Documentation Condition=" '$(Documentation)' == '' "></Documentation>
+ <ProductId Condition=" '$(ProductId)' == '' ">*</ProductId>
+ <UpgradeCode Condition=" '$(UpgradeCode)' == '' ">*</UpgradeCode>
+ </PropertyGroup>
+ <PropertyGroup>
+ <DefineSolutionProperties>false</DefineSolutionProperties>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
- <Version Condition=" '$(Version)' == '' ">1.4.2</Version>
- <SourceBase Condition=" '$(SourceBase)' == '' ">..</SourceBase>
<ProductVersion>3.5</ProductVersion>
<ProjectGuid>{0f21668d-b8ad-4b32-9392-a7beadf54efd}</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
- <OutputName>CSharpDriver-$(FullVersion)</OutputName>
+ <OutputName>CSharpDriver-$(SemVersion)</OutputName>
<OutputType>Package</OutputType>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
@@ -16,16 +25,17 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
- <DefineConstants>Debug;DriverVersion=$(Version);SourceBase=$(SourceBase);ReleaseNotes=Release Notes v$(Version)</DefineConstants>
+ <DefineConstants>$(Configuration);Version=$(Version);SemVersion=$(SemVersion);SourceBase=$(SourceBase);ReleaseNotes=$(ReleaseNotes);License=$(License);Documentation=$(Documentation)</DefineConstants>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
- <DefineConstants>DriverVersion=$(Version);SourceBase=$(SourceBase);ReleaseNotes=Release Notes v$(Version)</DefineConstants>
+ <DefineConstants>$(Configuration);Version=$(Version);SemVersion=$(SemVersion);SourceBase=$(SourceBase);ReleaseNotes=$(ReleaseNotes);License=$(License);Documentation=$(Documentation);ProductId=$(ProductId);UpgradeCode=$(UpgradeCode)</DefineConstants>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Compile Include="Product.wxs" />
+ <Compile Include="Frameworks.wxs" />
</ItemGroup>
<ItemGroup>
<WixExtension Include="WixUIExtension">
View
102 Installer/Frameworks.wxs
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+ <Fragment>
+ <DirectoryRef Id="INSTALLDIR">
+ <Directory Id="net35Folder" Name="net35" />
+ <Directory Id="net40Folder" Name="net40" />
+ </DirectoryRef>
+
+ <DirectoryRef Id="net35Folder">
+ <Component Id="c_net35BsonDll" Guid="13DA8DD9-1AD1-46BF-971A-78FA499F281D">
+ <File Id="f_net35BsonDll" Name="MongoDB.Bson.dll" Source="$(var.SourceBase)\artifacts\net35\build\MongoDB.Bson.dll"
+ DiskId ="1" KeyPath="yes" />
+ </Component>
+ <Component Id="c_net35BsonPdb" Guid="AC6CE1A0-1584-42E6-B9FB-765F34A44745">
+ <File Id="f_net35BsonPdb" Name="MongoDB.Bson.pdb" Source="$(var.SourceBase)\artifacts\net35\build\MongoDB.Bson.pdb"
+ DiskId ="1" KeyPath="yes" />
+ </Component>
+ <Component Id="c_net35BsonXml" Guid="ED71DBCD-5A02-4AC0-88E4-C793F5FBEDA8">
+ <File Id="f_net35BsonXml" Name="MongoDB.Bson.xml" Source="$(var.SourceBase)\artifacts\net35\build\MongoDB.Bson.XML"
+ DiskId ="1" KeyPath="yes" />
+ </Component>
+ <Component Id="c_net35DriverDll" Guid="0A94BBE0-6281-422D-BEE2-5831B06F2D55">
+ <File Id="f_net35DriverDll" Name="MongoDB.Driver.dll" Source="$(var.SourceBase)\artifacts\net35\build\MongoDB.Driver.dll"
+ DiskId ="1" KeyPath="yes" />
+ </Component>
+ <Component Id="c_net35DriverPdb" Guid="C580837A-9EE9-4C86-97EE-0A8DCBB4794E">
+ <File Id="f_net35DriverPdb" Name="MongoDB.Driver.pdb" Source="$(var.SourceBase)\artifacts\net35\build\MongoDB.Driver.pdb"
+ DiskId ="1" KeyPath="yes" />
+ </Component>
+ <Component Id="c_net35DriverXml" Guid="9EBD61C3-5365-416F-B345-517B053D9784">
+ <File Id="f_net35DriverXml" Name="MongoDB.Driver.XML" Source="$(var.SourceBase)\artifacts\net35\build\MongoDB.Driver.XML"
+ DiskId ="1" KeyPath="yes" />
+ </Component>
+ </DirectoryRef>
+
+ <ComponentGroup Id="cg_net35">
+ <ComponentRef Id="c_net35BsonDll"/>
+ <ComponentRef Id="c_net35BsonPdb"/>
+ <ComponentRef Id="c_net35BsonXml"/>
+ <ComponentRef Id="c_net35DriverDll"/>
+ <ComponentRef Id="c_net35DriverPdb"/>
+ <ComponentRef Id="c_net35DriverXml"/>
+ </ComponentGroup>
+
+ <DirectoryRef Id="net40Folder">
+ <Component Id="c_net40BsonDll" Guid="ec7c163e-dfd7-4063-ba49-e91dcde34126">
+ <File Id="f_net40BsonDll" Name="MongoDB.Bson.dll" Source="$(var.SourceBase)\artifacts\net40\build\MongoDB.Bson.dll"
+ DiskId ="1" KeyPath="yes" />
+ </Component>
+ <Component Id="c_net40BsonPdb" Guid="26d1d6d9-13d7-435b-912b-efa23c562b8f">
+ <File Id="f_net40BsonPdb" Name="MongoDB.Bson.pdb" Source="$(var.SourceBase)\artifacts\net40\build\MongoDB.Bson.pdb"
+ DiskId ="1" KeyPath="yes" />
+ </Component>
+ <Component Id="c_net40BsonXml" Guid="8a703382-523e-4c5d-b84e-829ce17e74a8">
+ <File Id="f_net40BsonXml" Name="MongoDB.Bson.xml" Source="$(var.SourceBase)\artifacts\net40\build\MongoDB.Bson.XML"
+ DiskId ="1" KeyPath="yes" />
+ </Component>
+ <Component Id="c_net40DriverDll" Guid="05ed77f8-c1b9-49eb-a893-0144c2128593">
+ <File Id="f_net40DriverDll" Name="MongoDB.Driver.dll" Source="$(var.SourceBase)\artifacts\net40\build\MongoDB.Driver.dll"
+ DiskId ="1" KeyPath="yes" />
+ </Component>
+ <Component Id="c_net40DriverPdb" Guid="3f6d49e7-9f1f-4a2c-9512-a7fc8abfaf8c">
+ <File Id="f_net40DriverPdb" Name="MongoDB.Driver.pdb" Source="$(var.SourceBase)\artifacts\net40\build\MongoDB.Driver.pdb"
+ DiskId ="1" KeyPath="yes" />
+ </Component>
+ <Component Id="c_net40DriverXml" Guid="36054a9a-35cc-4f42-b52d-e46eec2965c4">
+ <File Id="f_net40DriverXml" Name="MongoDB.Driver.XML" Source="$(var.SourceBase)\artifacts\net40\build\MongoDB.Driver.XML"
+ DiskId ="1" KeyPath="yes" />
+ </Component>
+ </DirectoryRef>
+
+ <ComponentGroup Id="cg_net40">
+ <ComponentRef Id="c_net40BsonDll"/>
+ <ComponentRef Id="c_net40BsonPdb"/>
+ <ComponentRef Id="c_net40BsonXml"/>
+ <ComponentRef Id="c_net40DriverDll"/>
+ <ComponentRef Id="c_net40DriverPdb"/>
+ <ComponentRef Id="c_net40DriverXml"/>
+ </ComponentGroup>
+
+ <Feature Id="FrameworksFeature"
+ Title ="Frameworks"
+ Description="The supported frameworks."
+ Level ="1"
+ AllowAdvertise="no">
+ <Feature Id="net35Feature"
+ Title =".NET 3.5"
+ Description="Install support for .NET 3.5."
+ Level ="1"
+ AllowAdvertise="no">
+ <ComponentGroupRef Id="cg_net35" />
+ </Feature>
+ <Feature Id="net40Feature"
+ Title =".NET 4.0"
+ Description="Install support for .NET 4.0."
+ Level ="1"
+ AllowAdvertise="no">
+ <ComponentGroupRef Id="cg_net40" />
+ </Feature>
+ </Feature>
+ </Fragment>
+</Wix>
View
92 Installer/Product.wxs
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
- <Product Id="553AB21B-EFC9-4CD7-9A6C-9EC2EEE92F0E"
+ <Product Id="$(var.ProductId)"
Name="!(wix.ProductName)"
Language="1033"
- Version="$(var.DriverVersion)"
+ Version="$(var.Version)"
Manufacturer="10gen Inc."
- UpgradeCode="6C79C4F8-C701-4C01-9FD1-A684A86252AF">
+ UpgradeCode="$(var.UpgradeCode)">
<Package InstallerVersion="200" Compressed="yes" />
- <WixVariable Id="ProductShortName" Value="CSharpDriver $(var.DriverVersion)" />
- <WixVariable Id="ProductName" Value="MongoDB CSharpDriver $(var.DriverVersion)" />
+ <WixVariable Id="ProductShortName" Value="CSharpDriver $(var.SemVersion)" />
+ <WixVariable Id="ProductName" Value="MongoDB CSharpDriver $(var.SemVersion)" />
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
@@ -20,7 +20,7 @@
<WixVariable Id="WixUIExclamationIco" Value="Installer_Icon_32x32.ico" />
<WixVariable Id="WixUINewIco" Value="Installer_Icon_16x16.ico" />
<WixVariable Id="WixUIUpIco" Value="Installer_Icon_16x16.ico" />
- <WixVariable Id="WixUILicenseRtf" Value="$(var.SourceBase)\License.rtf" />
+ <WixVariable Id="WixUILicenseRtf" Value="$(var.SourceBase)\$(var.License)" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
@@ -39,8 +39,8 @@
<Component Id="c_ReleaseNotesShortCut" Guid="0D00A9A7-03C4-466F-A3B8-C1CC8456ACC6">
<Shortcut Id="f_ReleaseNotesShortCut"
Name="Release Notes"
- Description="Release notes for MongoDB C#/.Net Driver"
- Target="[INSTALLDIR]$(var.ReleaseNotes).txt"
+ Description="Release notes for MongoDB CSharp Driver"
+ Target="[INSTALLDIR]ReleaseNotes.txt"
WorkingDirectory="INSTALLDIR"
Directory="CSharpDriverProgramsFolder"/>
<RemoveFolder Id="r_CSharpDriverProgramsFolder" Directory="CSharpDriverProgramsFolder" On="uninstall" />
@@ -51,7 +51,7 @@
<Shortcut Id="f_HelpShortCut"
Name="Help"
Description="Help for !(WixProductName)"
- Target="[INSTALLDIR]CSharpDriverDocs.chm"
+ Target="[INSTALLDIR]Documentation.chm"
WorkingDirectory="INSTALLDIR"/>
<RegistryValue Root="HKCU" Key="Software\MongoDB" Name="helpinstalled" Type="integer" Value="1" KeyPath="yes"/>
</Component>
@@ -59,84 +59,46 @@
<DirectoryRef Id="INSTALLDIR">
<Component Id="c_License" Guid="7901999A-6026-4321-8584-ECB67D424221">
- <File Id="f_License" Name="License.rtf" Source="$(var.SourceBase)\License.rtf"
+ <File Id="f_License" Name="License.rtf" Source="$(var.SourceBase)\$(var.License)"
DiskId ="1" KeyPath="yes" />
</Component>
<Component Id="c_ReleaseNotes" Guid="115F1B08-8A38-435A-BBB0-0C0DED5ACB31">
- <File Id="f_ReleaseNotes" Name="$(var.ReleaseNotes).txt" Source="$(var.SourceBase)\Release Notes\$(var.ReleaseNotes).md"
+ <File Id="f_ReleaseNotes" Name="ReleaseNotes.txt" Source="$(var.SourceBase)\$(var.ReleaseNotes)"
DiskId ="1" KeyPath="yes" />
</Component>
<Component Id="c_Help" Guid="CC3F9A2F-1C43-48CA-B998-D03C15181DD3">
- <File Id="f_Help" Name="CSharpDriverDocs.chm" Source="$(var.SourceBase)\Help\CSharpDriverDocs.chm"
- DiskId ="1" KeyPath="yes" />
- </Component>
- <Component Id="c_BsonDll" Guid="13DA8DD9-1AD1-46BF-971A-78FA499F281D">
- <File Id="f_BsonDll" Name="MongoDB.Bson.dll" Source="$(var.SourceBase)\Bson\bin\$(var.Configuration)\MongoDB.Bson.dll"
- DiskId ="1" KeyPath="yes" />
- </Component>
- <Component Id="c_BsonPdb" Guid="AC6CE1A0-1584-42E6-B9FB-765F34A44745">
- <File Id="f_BsonPdb" Name="MongoDB.Bson.pdb" Source="$(var.SourceBase)\Bson\bin\$(var.Configuration)\MongoDB.Bson.pdb"
- DiskId ="1" KeyPath="yes" />
- </Component>
- <Component Id="c_BsonXml" Guid="ED71DBCD-5A02-4AC0-88E4-C793F5FBEDA8">
- <File Id="f_BsonXml" Name="MongoDB.Bson.xml" Source="$(var.SourceBase)\Bson\bin\$(var.Configuration)\MongoDB.Bson.XML"
- DiskId ="1" KeyPath="yes" />
- </Component>
- <Component Id="c_DriverDll" Guid="0A94BBE0-6281-422D-BEE2-5831B06F2D55">
- <File Id="f_DriverDll" Name="MongoDB.Driver.dll" Source="$(var.SourceBase)\Driver\bin\$(var.Configuration)\MongoDB.Driver.dll"
- DiskId ="1" KeyPath="yes" />
- </Component>
- <Component Id="c_DriverPdb" Guid="C580837A-9EE9-4C86-97EE-0A8DCBB4794E">
- <File Id="f_DriverPdb" Name="MongoDB.Driver.pdb" Source="$(var.SourceBase)\Driver\bin\$(var.Configuration)\MongoDB.Driver.pdb"
- DiskId ="1" KeyPath="yes" />
- </Component>
- <Component Id="c_DriverXml" Guid="9EBD61C3-5365-416F-B345-517B053D9784">
- <File Id="f_DriverXml" Name="MongoDB.Driver.XML" Source="$(var.SourceBase)\Driver\bin\$(var.Configuration)\MongoDB.Driver.XML"
+ <File Id="f_Help" Name="Help.chm" Source="$(var.SourceBase)\$(var.Documentation)"
DiskId ="1" KeyPath="yes" />
</Component>
</DirectoryRef>
- <ComponentGroup Id="cg_Bson">
- <ComponentRef Id="c_BsonDll"/>
- <ComponentRef Id="c_BsonPdb"/>
- <ComponentRef Id="c_BsonXml"/>
+ <ComponentGroup Id="cg_Required">
+ <ComponentRef Id="c_License"/>
+ <ComponentRef Id="c_ReleaseNotes"/>
+ <ComponentRef Id="c_ReleaseNotesShortCut"/>
</ComponentGroup>
- <ComponentGroup Id="cg_Driver">
- <ComponentGroupRef Id="cg_Bson"/>
- <ComponentRef Id="c_DriverDll"/>
- <ComponentRef Id="c_DriverPdb"/>
- <ComponentRef Id="c_DriverXml"/>
+ <ComponentGroup Id="cg_Help">
+ <ComponentRef Id="c_Help"/>
+ <ComponentRef Id="c_HelpShortCut"/>
</ComponentGroup>
<Feature Id="ProductFeature"
Title="!(wix.ProductName)"
Description="!(wix.ProductName)"
Level="1"
- ConfigurableDirectory="INSTALLDIR">
- <ComponentRef Id="c_License"/>
- <ComponentRef Id="c_ReleaseNotes"/>
- <ComponentRef Id="c_ReleaseNotesShortCut"/>
- <Feature Id="Bson"
- Title ="Bson Library"
- Description="The Bson Library"
- Level ="1">
- <ComponentGroupRef Id="cg_Bson"/>
- </Feature>
- <Feature Id="Driver"
- Title ="Driver Library"
- Description="The Bson Library"
- Level ="1">
- <ComponentGroupRef Id="cg_Driver"/>
- </Feature>
+ Display="expand"
+ ConfigurableDirectory="INSTALLDIR"
+ AllowAdvertise="no">
+ <ComponentGroupRef Id="cg_Required"/>
+ <FeatureRef Id="FrameworksFeature" />
<Feature Id="Help"
Title ="Driver Help"
Description="The driver help file"
- Level ="1">
- <ComponentRef Id="c_Help"/>
- <ComponentRef Id="c_HelpShortCut"/>
+ Level ="1"
+ AllowAdvertise="no">
+ <ComponentGroupRef Id="cg_Help"/>
</Feature>
-
</Feature>
<UIRef Id="WixUI_Mondo" />
View
18 Installer/makeinstaller.bat
@@ -1,18 +0,0 @@
-@ECHO OFF
-SET FullVersion=1.7.0.4714
-SET Version=1.7
-SET Configuration=Release
-SET SourceBase=..
-
-echo Creating CSharp driver installer v%Version%
-
-echo Cleaning binary directories
-rmdir /s /q obj\%Configuration%
-rmdir /s /q bin\%Configuration%
-
-echo Building installer
-
-%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe CSharpDriverInstaller.wixproj
-
-echo Done Building installer v%Version%
-pause
View
7 MongoDB.Bson/Properties/AssemblyInfo.cs
@@ -22,11 +22,10 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("MongoDB.Bson")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyDescription("Official 10gen supported C# BSON library. See http://www.mongodb.org/display/DOCS/CSharp+Language+Center for more details.")]
[assembly: AssemblyProduct("MongoDB.Bson")]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("7d694bb4-3437-431f-acac-7dbe38952ad0")]
-
-[assembly:CLSCompliant(true)]
+[assembly: CLSCompliant(true)]
+[assembly: ComVisible(false)]
View
1  MongoDB.BsonUnitTests/Properties/AssemblyInfo.cs
@@ -22,7 +22,6 @@
// associated with an assembly.
[assembly: AssemblyTitle("MongoDB.BsonUnitTests")]
[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("MongoDB.BsonUnitTests")]
// The following GUID is for the ID of the typelib if this project is exposed to COM
View
5 MongoDB.Driver/Properties/AssemblyInfo.cs
@@ -22,11 +22,10 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("MongoDB.Driver")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyDescription("Official 10gen supported C# driver for MongoDB. See http://www.mongodb.org/display/DOCS/CSharp+Language+Center for more details.")]
[assembly: AssemblyProduct("MongoDB.Driver")]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("09134819-2a03-409d-8f38-462bb20e23aa")]
-
[assembly: CLSCompliant(true)]
+[assembly: ComVisible(false)]
View
3  MongoDB.DriverUnitTests/Configuration.cs
@@ -39,7 +39,8 @@ public static class Configuration
// static constructor
static Configuration()
{
- var connectionString = "mongodb://localhost/?w=1"; // TODO: make this configurable
+ var connectionString = Environment.GetEnvironmentVariable("CSharpDriverTestsConnectionString")
+ ?? "mongodb://localhost/?w=1";
var mongoUrl = new MongoUrl(connectionString);
var clientSettings = MongoClientSettings.FromUrl(mongoUrl);
View
1  MongoDB.DriverUnitTests/Properties/AssemblyInfo.cs
@@ -22,7 +22,6 @@
// associated with an assembly.
[assembly: AssemblyTitle("MongoDB.DriverUnitTests")]
[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("MongoDB.DriverUnitTests")]
// The following GUID is for the ID of the typelib if this project is exposed to COM
View
2  Release Notes/Release Notes v1.8.md
@@ -0,0 +1,2 @@
+C# Driver Version 1.8 Release Notes
+===================================
View
34 Tools/psake/psake-ext.ps1
@@ -11,7 +11,29 @@ function Get-GitCommit
}
}
-function Generate-Assembly-Info
+function Get-BuildNumber
+{
+ try {
+ $version = git describe --tags --long --match v*
+ $regex = [regex]"-(\d+)-"
+ $match = $regex.Match($version)
+ return $match.Groups[1].Value
+ }
+ catch {
+ return "0"
+ }
+}
+
+function Get-ShortenedVersion($version)
+{
+ if($version.EndsWith(".0")) {
+ return $version.SubString(0, $version.Length - 2)
+ }
+
+ return $version
+}
+
+function Generate-AssemblyInfo
{
param(
[string]$config,
@@ -63,4 +85,14 @@ function RemoveDirectory($path) {
if(Test-Path $path) {
rd -rec -force $path | out-null
}
+}
+
+function Reset-AssemblyInfo
+{
+ try {
+ git checkout GlobalAssemblyInfo.cs
+ }
+ catch {
+ Write-Host "Unable to reset assembly info"
+ }
}
View
157 build.ps1
@@ -0,0 +1,157 @@
+Properties {
+ $base_version = "1.8.0"
+ $version_status = "alpha"
+ $build_number = Get-BuildNumber
+ $git_commit = Get-GitCommit
+
+ $version = "$base_version.$build_number"
+ $sem_version = "$base_version-$($version_status)$build_number"
+ $release_notes_version = Get-ShortenedVersion $base_version
+ $config = 'Release'
+ $installer_product_id = [System.Guid]::Parse($git_commit.Hash.SubString(0,32))
+ $installer_upgrade_code = [System.Guid]::Parse($git_commit.Hash.SubString(1,32))
+
+ Write-Host "$config Version $sem_version($version)" -ForegroundColor Yellow
+
+ $base_dir = Split-Path $psake.build_script_file
+ $src_dir = "$base_dir"
+ $tools_dir = "$base_dir\tools"
+ $artifacts_dir = "$base_dir\artifacts"
+ $35_build_dir = "$artifacts_dir\net35\build\"
+ $35_test_results_dir = "$artifacts_dir\net35\test_results"
+ $40_build_dir = "$artifacts_dir\net40\build\"
+ $40_test_results_dir = "$artifacts_dir\net40\test_results"
+ $docs_dir = "$artifacts_dir\docs"
+
+ $sln_file = "$base_dir\CSharpDriver-2010.sln"
+ $asm_file = "$src_dir\GlobalAssemblyInfo.cs"
+ $docs_file = "$base_dir\Docs\Api\CSharpDriverDocs.shfbproj"
+ $installer_file = "$base_dir\Installer\CSharpDriverInstaller.wixproj"
+ $nuspec_file = "$base_dir\mongocsharpdriver.nuspec"
+ $chm_file = "$artifacts_dir\CSharpDriverDocs-$sem_version.chm"
+ $release_notes_file = "$base_dir\Release Notes\Release Notes v$release_notes_version.md"
+ $license_file = "$base_dir\License.txt"
+
+ $nuget_tool = "$tools_dir\nuget\nuget.exe"
+ $nunit_tool = "$tools_dir\nunit\nunit-console.exe"
+ $zip_tool = "$tools_dir\7Zip\7za.exe"
+}
+
+Framework('4.0')
+
+Include tools\psake\psake-ext.ps1
+
+function BuildHasBeenRun {
+ $build_exists = (Test-Path $35_build_dir) -and (Test-Path $40_build_dir)
+ Assert $build_exists "Build task has not been run"
+ $true
+}
+
+function DocsHasBeenRun {
+ $build_exists = Test-Path $chm_file
+ Assert $build_exists "Docs task has not been run"
+ $true
+}
+
+Task Default -Depends Build
+
+Task Release -Depends Build, Docs, Zip, Installer, NugetPack
+
+Task Clean {
+ RemoveDirectory $artifacts_dir
+
+ Write-Host "Cleaning $sln_file" -ForegroundColor Green
+ Exec { msbuild "$sln_file" /t:Clean /p:Configuration=$config /v:quiet }
+}
+
+Task Init -Depends Clean {
+ Generate-AssemblyInfo `
+ -file $asm_file `
+ -version $version `
+ -config $config `
+ -sem_version $sem_version `
+}
+
+Task Build -Depends Init {
+ mkdir -p $35_build_dir | out-null
+ Write-Host "Building $sln_file for .NET 3.5" -ForegroundColor Green
+ Exec { msbuild "$sln_file" /t:Rebuild /p:Configuration=$config /p:TargetFrameworkVersion=v3.5 /v:quiet /p:OutDir=$35_build_dir }
+
+ mkdir -p $40_build_dir | out-null
+ Write-Host "Building $sln_file for .NET 4.0" -ForegroundColor Green
+ Exec { msbuild "$sln_file" /t:Rebuild /p:Configuration=$config /p:TargetFrameworkVersion=v4.0 /v:quiet /p:OutDir=$40_build_dir }
+
+ Reset-AssemblyInfo
+}
+
+Task Test -precondition { BuildHasBeenRun } {
+ mkdir -p $35_test_results_dir | out-null
+ $test_assemblies = ls -rec artifacts\net35\build\*Tests*.dll
+ Write-Host "Testing $test_assemblies for .NET 3.5" -ForegroundColor Green
+ Exec { &$nunit_tool $test_assemblies /xml=$35_test_results_dir\net35-test-results.xml /framework=net-3.5 /nologo /noshadow }
+
+ mkdir -p $40_test_results_dir | out-null
+ $test_assemblies = ls -rec artifacts\net40\build\*Tests*.dll
+ Write-Host "Testing $test_assemblies for .NET 4.0" -ForegroundColor Green
+ Exec { &$nunit_tool $test_assemblies /xml=$40_test_results_dir\net40-test-results.xml /framework=net-4.0 /nologo /noshadow }
+}
+
+Task Docs -precondition { BuildHasBeenRun } {
+ RemoveDirectory $docs_dir
+
+ mkdir -p $docs_dir | out-null
+ Exec { msbuild "$docs_file" /p:Configuration=$config /p:CleanIntermediate=True /p:HelpFileVersion=$version /p:OutputPath=$docs_dir }
+
+ mv "$docs_dir\CSharpDriverDocs.chm" $chm_file
+ mv "$docs_dir\Index.html" "$docs_dir\index.html"
+ Exec { &$zip_tool a "$artifacts_dir\CSharpDriverDocs-$sem_version-html.zip" "$docs_dir\*" }
+
+ RemoveDirectory $docs_dir
+}
+
+task Zip -precondition { (BuildHasBeenRun) -and (DocsHasBeenRun) }{
+ $zip_dir = "$artifacts_dir\ziptemp"
+
+ RemoveDirectory $zip_dir
+
+ mkdir -p $zip_dir | out-null
+
+ mkdir -p $zip_dir\net35 | out-null
+ $35_items = @("$35_build_dir\MongoDB.Bson.dll", `
+ "$35_build_dir\MongoDB.Bson.pdb", `
+ "$35_build_dir\MongoDB.Bson.xml", `
+ "$35_build_dir\MongoDB.Driver.dll", `
+ "$35_build_dir\MongoDB.Driver.pdb", `
+ "$35_build_dir\MongoDB.Driver.xml")
+ cp $35_items "$zip_dir\net35"
+
+ mkdir -p $zip_dir\net40 | out-null
+ $40_items = @("$40_build_dir\MongoDB.Bson.dll", `
+ "$40_build_dir\MongoDB.Bson.pdb", `
+ "$40_build_dir\MongoDB.Bson.xml", `
+ "$40_build_dir\MongoDB.Driver.dll", `
+ "$40_build_dir\MongoDB.Driver.pdb", `
+ "$40_build_dir\MongoDB.Driver.xml")
+ cp $40_items "$zip_dir\net40"
+
+ cp $license_file $zip_dir
+ cp "Release Notes\Release Notes v$release_notes_version.md" "$zip_dir\Release Notes v$release_notes_version.txt"
+ cp $chm_file $zip_dir
+
+ Exec { &$zip_tool a "$artifacts_dir\CSharpDriver-$sem_version.zip" "$zip_dir\*" }
+
+ rd $zip_dir -rec -force | out-null
+}
+
+Task Installer -precondition { (BuildHasBeenRun) -and (DocsHasBeenRun) } {
+ $release_notes_relative_path = Get-Item $release_notes_file | Resolve-Path -Relative
+ $doc_relative_path = Get-Item $chm_file | Resolve-Path -Relative
+
+ Exec { msbuild "$installer_file" /t:Rebuild /p:Configuration=$config /p:Version=$version /p:SemVersion=$sem_version /p:ProductId=$installer_product_id /p:UpgradeCode=$installer_upgrade_code /p:ReleaseNotes=$release_notes_relative_path /p:License="License.rtf" /p:Documentation=$doc_relative_path /p:OutputPath=$artifacts_dir }
+
+ rm -force $artifacts_dir\*.wixpdb
+}
+
+task NugetPack -precondition { (BuildHasBeenRun) -and (DocsHasBeenRun) }{
+ Exec { &$nuget_tool pack $nuspec_file -o $artifacts_dir -Version $sem_version -Symbols -BasePath $base_dir }
+}
View
5 bump.txt
@@ -1,5 +0,0 @@
-This file is the last file modified during the release process. Changing the
-version number below provides a changed file that can be used as the basis
-for the BUMP commit.
-
-Current version: 1.7.0.4714
View
27 mongocsharpdriver.nuspec
@@ -2,10 +2,10 @@
<package>
<metadata>
<id>mongocsharpdriver</id>
- <version>1.7</version>
+ <version>0.0.0</version>
<title>Official MongoDB C# driver</title>
<authors>10gen, Inc.</authors>
- <owners>Sridhar Nanjundeswaran</owners>
+ <owners>Sridhar Nanjundeswaran, Robert Stam, Craig Wilson</owners>
<iconUrl>http://jobs.mongodb.org/files/logos/889002/889002.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>Official 10gen supported C# driver for MongoDB</description>
@@ -15,13 +15,20 @@
<language>en-US</language>
</metadata>
<files>
- <file src="Bson\bin\Release\MongoDB.Bson.dll" target="lib\net35" />
- <file src="Bson\bin\Release\MongoDB.Bson.pdb" target="lib\net35" />
- <file src="Bson\bin\Release\MongoDB.Bson.xml" target="lib\net35" />
- <file src="Driver\bin\Release\MongoDB.Driver.dll" target="lib\net35" />
- <file src="Driver\bin\Release\MongoDB.Driver.pdb" target="lib\net35" />
- <file src="Driver\bin\Release\MongoDB.Driver.XML" target="lib\net35" />
- <file src="Release Notes\Release Notes v1.7.txt" target="" />
+ <file src="artifacts\net35\build\MongoDB.Bson.dll" target="lib\net35" />
+ <file src="artifacts\net35\build\MongoDB.Bson.pdb" target="lib\net35" />
+ <file src="artifacts\net35\build\MongoDB.Bson.xml" target="lib\net35" />
+ <file src="artifacts\net35\build\MongoDB.Driver.dll" target="lib\net35" />
+ <file src="artifacts\net35\build\MongoDB.Driver.pdb" target="lib\net35" />
+ <file src="artifacts\net35\build\MongoDB.Driver.XML" target="lib\net35" />
+ <file src="artifacts\net40\build\MongoDB.Bson.dll" target="lib\net40" />
+ <file src="artifacts\net40\build\MongoDB.Bson.pdb" target="lib\net40" />
+ <file src="artifacts\net40\build\MongoDB.Bson.xml" target="lib\net40" />
+ <file src="artifacts\net40\build\MongoDB.Driver.dll" target="lib\net40" />
+ <file src="artifacts\net40\build\MongoDB.Driver.pdb" target="lib\net40" />
+ <file src="artifacts\net40\build\MongoDB.Driver.XML" target="lib\net40" />
<file src="License.rtf" target ="" />
+ <file src="MongoDB.Bson\**\*.cs" target="src\MongoDB.Bson" />
+ <file src="MongoDB.Driver\**\*.cs" target="src\MongoDB.Driver" />
</files>
-</package>
+</package>
View
1  packages/.gitignore
@@ -1 +0,0 @@
-packages-*
View
30 packages/makepackages.bat
@@ -1,30 +0,0 @@
-set VER=1.7.0.4714
-set PACKAGES=packages-%VER%
-
-echo Creating %PACKAGES%
-pause
-
-rmdir /s /q %PACKAGES%
-mkdir %PACKAGES%
-xcopy /f /d /y ..\Installer\bin\Release\CSharpDriver-%VER%.msi %PACKAGES%\
-
-del "Release Notes v.1.7.txt"
-xcopy /f /y "..\Release Notes\Release Notes v1.7.md"
-ren "Release Notes v1.7.md" "Release Notes v1.7.txt"
-
-set ZIPEXE="C:\Program Files\7-Zip\7z.exe"
-set ZIPFILE=%PACKAGES%\CSharpDriver-%VER%.zip
-%ZIPEXE% a %ZIPFILE% ..\License.txt
-%ZIPEXE% a %ZIPFILE% "Release Notes v1.7.txt"
-%ZIPEXE% a %ZIPFILE% ..\Driver\bin\Release\MongoDB.Bson.dll
-%ZIPEXE% a %ZIPFILE% ..\Driver\bin\Release\MongoDB.Bson.pdb
-%ZIPEXE% a %ZIPFILE% ..\Driver\bin\Release\MongoDB.Bson.xml
-%ZIPEXE% a %ZIPFILE% ..\Driver\bin\Release\MongoDB.Driver.dll
-%ZIPEXE% a %ZIPFILE% ..\Driver\bin\Release\MongoDB.Driver.pdb
-%ZIPEXE% a %ZIPFILE% ..\Driver\bin\Release\MongoDB.Driver.xml
-%ZIPEXE% a %ZIPFILE% ..\Help\CSharpDriverDocs.chm
-
-del "Release Notes v1.7.txt"
-
-echo Created %PACKAGES%
-pause
View
11 psake.cmd
@@ -0,0 +1,11 @@
+@echo off
+
+if '%1'=='/?' goto help
+if '%1'=='-help' goto help
+if '%1'=='-h' goto help
+
+powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\tools\psake\psake.ps1' build.ps1 %*; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }"
+goto :eof
+
+:help
+powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\tools\psake\psake.ps1' build.ps1 -help"
Please sign in to comment.
Something went wrong with that request. Please try again.