Skip to content

Commit 7978dcc

Browse files
author
Sridhar Nanjundeswaran
committed
CSHARP-712 - Minor changes to allow building from VS
1 parent 5f2f858 commit 7978dcc

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

Installer/CSharpDriverInstaller.wixproj

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
<Version Condition=" '$(Version)' == '' ">0.0.0.0</Version>
55
<SemVersion Condition=" '$(SemVersion)' == '' ">0.0.0</SemVersion>
66
<SourceBase Condition=" '$(SourceBase)' == '' ">..</SourceBase>
7-
<ReleaseNotes Condition=" '$(ReleaseNotes)' == '' "></ReleaseNotes>
7+
<BinDir Condition=" '$(BinDir)' == '' ">..\MongoDB.Driver\bin\$(Configuration)</BinDir>
8+
<ReleaseNotes Condition=" '$(ReleaseNotes)' == '' ">Release Notes\Release Notes v1.8.1.md</ReleaseNotes>
89
<License Condition=" '$(License)' == '' ">License.rtf</License>
9-
<Documentation Condition=" '$(Documentation)' == '' "></Documentation>
10+
<Documentation Condition=" '$(Documentation)' == '' ">Docs\Api\Help\Help.chm</Documentation>
1011
<ProductId Condition=" '$(ProductId)' == '' ">*</ProductId>
1112
<UpgradeCode Condition=" '$(UpgradeCode)' == '' ">574a296c-d9df-469f-b205-f93f5da69099</UpgradeCode>
1213
</PropertyGroup>
@@ -22,15 +23,8 @@
2223
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
2324
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
2425
<OutputPath>bin\$(Configuration)</OutputPath>
25-
</PropertyGroup>
26-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
27-
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
28-
<DefineConstants>$(Configuration);Version=$(Version);SemVersion=$(SemVersion);SourceBase=$(SourceBase);ReleaseNotes=$(ReleaseNotes);License=$(License);Documentation=$(Documentation);ProductId=$(ProductId);UpgradeCode=$(UpgradeCode)</DefineConstants>
29-
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
30-
</PropertyGroup>
31-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
3226
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
33-
<DefineConstants>$(Configuration);Version=$(Version);SemVersion=$(SemVersion);SourceBase=$(SourceBase);ReleaseNotes=$(ReleaseNotes);License=$(License);Documentation=$(Documentation);ProductId=$(ProductId);UpgradeCode=$(UpgradeCode)</DefineConstants>
27+
<DefineConstants>$(Configuration);Version=$(Version);SemVersion=$(SemVersion);SourceBase=$(SourceBase);ReleaseNotes=$(ReleaseNotes);License=$(License);Documentation=$(Documentation);ProductId=$(ProductId);UpgradeCode=$(UpgradeCode);BinDir=$(BinDir)</DefineConstants>
3428
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
3529
</PropertyGroup>
3630
<ItemGroup>

Installer/Frameworks.wxs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
<Fragment>
44
<DirectoryRef Id="INSTALLDIR">
55
<Component Id="c_net35BsonDll" Guid="*">
6-
<File Id="f_net35BsonDll" Name="MongoDB.Bson.dll" Source="$(var.SourceBase)\artifacts\net35\build\MongoDB.Bson.dll"
6+
<File Id="f_net35BsonDll" Name="MongoDB.Bson.dll" Source="$(var.BinDir)\MongoDB.Bson.dll"
77
DiskId ="1" KeyPath="yes" />
88
</Component>
99
<Component Id="c_net35BsonPdb" Guid="*">
10-
<File Id="f_net35BsonPdb" Name="MongoDB.Bson.pdb" Source="$(var.SourceBase)\artifacts\net35\build\MongoDB.Bson.pdb"
10+
<File Id="f_net35BsonPdb" Name="MongoDB.Bson.pdb" Source="$(var.BinDir)\MongoDB.Bson.pdb"
1111
DiskId ="1" KeyPath="yes" />
1212
</Component>
1313
<Component Id="c_net35BsonXml" Guid="*">
14-
<File Id="f_net35BsonXml" Name="MongoDB.Bson.xml" Source="$(var.SourceBase)\artifacts\net35\build\MongoDB.Bson.XML"
14+
<File Id="f_net35BsonXml" Name="MongoDB.Bson.xml" Source="$(var.BinDir)\MongoDB.Bson.XML"
1515
DiskId ="1" KeyPath="yes" />
1616
</Component>
1717
<Component Id="c_net35DriverDll" Guid="*">
18-
<File Id="f_net35DriverDll" Name="MongoDB.Driver.dll" Source="$(var.SourceBase)\artifacts\net35\build\MongoDB.Driver.dll"
18+
<File Id="f_net35DriverDll" Name="MongoDB.Driver.dll" Source="$(var.BinDir)\MongoDB.Driver.dll"
1919
DiskId ="1" KeyPath="yes" />
2020
</Component>
2121
<Component Id="c_net35DriverPdb" Guid="*">
22-
<File Id="f_net35DriverPdb" Name="MongoDB.Driver.pdb" Source="$(var.SourceBase)\artifacts\net35\build\MongoDB.Driver.pdb"
22+
<File Id="f_net35DriverPdb" Name="MongoDB.Driver.pdb" Source="$(var.BinDir)\MongoDB.Driver.pdb"
2323
DiskId ="1" KeyPath="yes" />
2424
</Component>
2525
<Component Id="c_net35DriverXml" Guid="*">
26-
<File Id="f_net35DriverXml" Name="MongoDB.Driver.XML" Source="$(var.SourceBase)\artifacts\net35\build\MongoDB.Driver.XML"
26+
<File Id="f_net35DriverXml" Name="MongoDB.Driver.XML" Source="$(var.BinDir)\MongoDB.Driver.XML"
2727
DiskId ="1" KeyPath="yes" />
2828
</Component>
2929
</DirectoryRef>

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Task Installer -precondition { (BuildHasBeenRun) -and (DocsHasBeenRun) } {
141141
$release_notes_relative_path = Get-Item $release_notes_file | Resolve-Path -Relative
142142
$doc_relative_path = Get-Item $chm_file | Resolve-Path -Relative
143143

144-
Exec { msbuild "$installer_file" /t:Rebuild /p:Configuration=$config /p:Version=$version /p:SemVersion=$short_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 }
144+
Exec { msbuild "$installer_file" /t:Rebuild /p:Configuration=$config /p:Version=$version /p:SemVersion=$short_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 /p:BinDir=$35_build_dir}
145145

146146
rm -force $artifacts_dir\*.wixpdb
147147
}

0 commit comments

Comments
 (0)