Skip to content

Commit 752c04e

Browse files
author
Paul Betts
committed
Merge pull request #460 from reactiveui/prep-6.0-alpha
Prepare 6.0 Alpha
2 parents 2cc1c40 + b297dd3 commit 752c04e

File tree

61 files changed

+978
-210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+978
-210
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@
2323
*This looks hard, but once you get your environment set up, it's really only 'Build in VS, build in Mono, run script'*
2424

2525
1. Put the source into DropBox or another way you can share the same folder between a Mac and a PC (Parallels Shared Folders works too)
26-
1. Edit `**/AssemblyInfo.cs` (i.e. every file named AssemblyInfo.cs) and bump the versions
27-
1. Edit `NuGet/**/*.nuspec` (every nuspec file under the root NuGet folder) and do the same. Make sure to bump the dependent versions too!
26+
1. Edit `/CommonAssemblyInfo.cs` and bump the version
2827
1. Open ReactiveUI.sln and build it in Release mode under VS2012 on Windows 8 / Win8.1 with the WP8 SDK installed (nothing earlier is supported)
2928
1. Open MonoDevelop, and build ReactiveUI_XSAll.sln in Release mode
30-
1. Back on the PC, run `MakeRelease.ps1`
29+
1. Back on the PC, run `MakeRelease.ps1` and specify a NuGet SemVer, like `MakeRelease.ps1 -version "5.5.0-beta1"`
3130
1. You'll end up with two new folders, `Release` and `Nuget-Release`, as well as the `.nupkg` files in the root directory.
3231

3332
## Some quirks

CommonAssemblyInfo.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
using System.Reflection;
2+
3+
[assembly: AssemblyVersion("5.99.0")]
4+
[assembly: AssemblyFileVersion("5.99.0")]

MakeRelease.ps1

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
$Archs = {"Portable-Net45+WinRT45+WP8", "Net45", "WP8", "WinRT45", "Mono", "Monoandroid", "Monotouch", "Monomac"}
1+
Param([string]$version = $null)
2+
3+
$Archs = {"Portable-Net45+WinRT45+WP8", "Net45", "WP8", "WinRT45", "Mono", "Monoandroid", "Monotouch", "Monomac"}
24
$Projects = {
35
"ReactiveUI", "ReactiveUI.Testing", "ReactiveUI.Platforms", "ReactiveUI.Blend",
4-
"ReactiveUI.NLog", "ReactiveUI.Mobile", "RxUIViewModelGenerator", "ReactiveUI.Events"
6+
"ReactiveUI.Mobile", "RxUIViewModelGenerator", "ReactiveUI.Events"
57
}
68

79
$MSBuildLocation = "C:\Program Files (x86)\MSBuild\12.0\bin"
@@ -43,6 +45,31 @@ if (Test-Path .\NuGet-Release) {
4345
rm -r -fo .\NuGet-Release
4446
}
4547

48+
# Update Nuspecs if we have a version
49+
if($version) {
50+
$nuspecs = ls -r .\NuGet\*.nuspec
51+
52+
foreach($nuspec in $nuspecs) {
53+
$xml = New-Object XML
54+
$xml.Load($nuspec)
55+
56+
# specify NS
57+
$nsMgr = New-Object System.Xml.XmlNamespaceManager($xml.NameTable)
58+
$nsMgr.AddNamespace("ns", "http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd")
59+
60+
# PowerShell makes editing XML docs so easy!
61+
$xml.package.metadata.version = "$version-beta"
62+
63+
# get the rxui dependencies and update them
64+
$deps = $xml.SelectNodes("//ns:dependency[contains(@id, 'reactiveui')]", $nsMgr)
65+
foreach($dep in $deps) {
66+
$dep.version = "[" + $version + "-beta]"
67+
}
68+
69+
$xml.Save($nuspec)
70+
}
71+
}
72+
4673
cp -r .\NuGet .\NuGet-Release
4774

4875
$libDirs = ls -r .\NuGet-Release | ?{$_.Name -eq "lib"}
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3-
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
4-
<id>reactiveui-core</id>
5-
<version>5.4.0</version>
6-
<description>An MVVM library for .NET that is deeply integrated with the Reactive Extensions</description>
7-
<authors>Paul Betts</authors>
8-
<projectUrl>http://www.reactiveui.net</projectUrl>
9-
<licenseUrl>http://opensource.org/licenses/ms-pl.html</licenseUrl>
10-
<language>en-us</language>
11-
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12-
13-
<dependencies>
14-
<group>
15-
<dependency id="Rx-Main" version="2.2.2" />
16-
</group>
17-
<group targetFramework="winrt45">
18-
<dependency id="Rx-WindowStoreApps" version="2.2.2" />
19-
</group>
20-
</dependencies>
21-
</metadata>
22-
</package>
3+
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
4+
<id>reactiveui-core</id>
5+
<version>5.99.0-beta</version>
6+
<description>An MVVM library for .NET that is deeply integrated with the Reactive Extensions</description>
7+
<authors>Paul Betts</authors>
8+
<projectUrl>http://www.reactiveui.net</projectUrl>
9+
<licenseUrl>http://opensource.org/licenses/ms-pl.html</licenseUrl>
10+
<language>en-us</language>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<dependencies>
13+
<group>
14+
<dependency id="Rx-Main" version="2.2.2" />
15+
<dependency id="Splat" version="1.1.1" />
16+
</group>
17+
<group targetFramework="winrt45">
18+
<dependency id="Rx-WindowStoreApps" version="2.2.2" />
19+
</group>
20+
</dependencies>
21+
</metadata>
22+
</package>

NuGet/ReactiveUI-Core/lib/Monoandroid/ReactiveUI.dll

Whitespace-only changes.

NuGet/ReactiveUI-Core/lib/Monoandroid/ReactiveUI.pdb

Whitespace-only changes.

NuGet/ReactiveUI-Core/lib/Monoandroid/ReactiveUI.xml

Whitespace-only changes.

NuGet/ReactiveUI-Core/lib/Monomac/ReactiveUI.dll

Whitespace-only changes.

NuGet/ReactiveUI-Core/lib/Monomac/ReactiveUI.mdb

Whitespace-only changes.

NuGet/ReactiveUI-Core/lib/Monomac/ReactiveUI.xml

Whitespace-only changes.

0 commit comments

Comments
 (0)