Skip to content

Commit 1231b77

Browse files
authored
Prepare for 5.3.0-preview1 (#401)
* Prepare for 5.3.0-preview1 * Update AssemblyVersions for formatting
1 parent 509661e commit 1231b77

File tree

9 files changed

+18
-13
lines changed

9 files changed

+18
-13
lines changed

src/CommonAssemblyInfo.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,17 @@
2424
// BUILD_GENERATED_VERSION will be set in any CI build. Versions below are not used.
2525
// ===================================================================================
2626

27-
#if (ASPNETMVC && (ASPNETWEBPAGES || ASPNETFACEBOOK)) || (ASPNETWEBPAGES && ASPNETFACEBOOK)
28-
#error Runtime projects cannot define more than one of ASPNETMVC, ASPNETWEBPAGES or ASPNETFACEBOOK
27+
#if (ASPNETMVC && (ASPNETWEBPAGES || ASPNETFACEBOOK || ASPNETHTTPFORMATTING)) || (ASPNETWEBPAGES && (ASPNETFACEBOOK || ASPNETHTTPFORMATTING)) || (ASPNETFACEBOOK && ASPNETHTTPFORMATTING)
28+
#error Runtime projects cannot define more than one of ASPNETMVC, ASPNETWEBPAGES, ASPNETFACEBOOK, or ASPNETHTTPFORMATTING
29+
#elif ASPNETHTTPFORMATTING
30+
#if !BUILD_GENERATED_VERSION
31+
[assembly: AssemblyVersion("6.0.0.0")] // ASPNETHTTPFORMATTING
32+
[assembly: AssemblyFileVersion("6.0.0.0")] // ASPNETHTTPFORMATTING
33+
#endif
2934
#elif ASPNETMVC
3035
#if !BUILD_GENERATED_VERSION
31-
[assembly: AssemblyVersion("5.2.9.0")] // ASPNETMVC
32-
[assembly: AssemblyFileVersion("5.2.9.0")] // ASPNETMVC
36+
[assembly: AssemblyVersion("5.3.0.0")] // ASPNETMVC
37+
[assembly: AssemblyFileVersion("5.3.0.0")] // ASPNETMVC
3338
#endif
3439
[assembly: AssemblyProduct("Microsoft ASP.NET MVC")]
3540
#elif ASPNETWEBPAGES

src/CommonAssemblyInfo.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ Imports System.Runtime.InteropServices
2020
' Version numbers are automatically generated based on regular expressions.
2121
' ===========================================================================
2222

23-
<Assembly: AssemblyVersion("5.2.9.0")> 'ASPNETMVC
24-
<Assembly: AssemblyFileVersion("5.2.9.0")> 'ASPNETMVC
23+
<Assembly: AssemblyVersion("5.3.0.0")> 'ASPNETMVC
24+
<Assembly: AssemblyFileVersion("5.3.0.0")> 'ASPNETMVC
2525
<Assembly: AssemblyProduct("Microsoft ASP.NET MVC")>

src/System.Net.Http.Formatting.ns1_3/System.Net.Http.Formatting.ns1_3.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<OutputPath>$(OutputPath)ns1_3\</OutputPath>
88
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile>
99
<RunCodeAnalysis>false</RunCodeAnalysis>
10-
<DefineConstants>$(DefineConstants);ASPNETMVC</DefineConstants>
10+
<DefineConstants>$(DefineConstants);ASPNETHTTPFORMATTING</DefineConstants>
1111
<NoWarn>1591</NoWarn>
1212
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
1313
<Configurations>$(Configurations);CodeAnalysis</Configurations>

src/System.Net.Http.Formatting.ns2_0/System.Net.Http.Formatting.ns2_0.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<OutputPath>$(OutputPath)ns2_0\</OutputPath>
88
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile>
99
<RunCodeAnalysis>false</RunCodeAnalysis>
10-
<DefineConstants>$(DefineConstants);ASPNETMVC</DefineConstants>
10+
<DefineConstants>$(DefineConstants);ASPNETHTTPFORMATTING</DefineConstants>
1111
<NoWarn>1591</NoWarn>
1212
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
1313
<Configurations>$(Configurations);CodeAnalysis</Configurations>

src/System.Net.Http.Formatting/System.Net.Http.Formatting.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile>
1111
<RunCodeAnalysis>$(CodeAnalysis)</RunCodeAnalysis>
1212
<CodeAnalysisRuleSet>..\Strict.ruleset</CodeAnalysisRuleSet>
13-
<DefineConstants>$(DefineConstants);ASPNETMVC</DefineConstants>
13+
<DefineConstants>$(DefineConstants);ASPNETHTTPFORMATTING</DefineConstants>
1414
<TargetFrameworkProfile Condition="'$(TargetFrameworkVersion)' != 'v4.5'">Client</TargetFrameworkProfile>
1515
<NoWarn>1591</NoWarn>
1616
</PropertyGroup>

src/WebApiHelpPage/Areas/HelpPage/Views/Web.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</configSections>
1010

1111
<system.web.webPages.razor>
12-
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.9.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
12+
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.3.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
1313
<pages pageBaseType="System.Web.Mvc.WebViewPage">
1414
<namespaces>
1515
<add namespace="System.Web.Mvc" />

src/WebApiHelpPage/VB/Areas/HelpPage/Views/Web.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</configSections>
1010

1111
<system.web.webPages.razor>
12-
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.9.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
12+
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.3.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
1313
<pages pageBaseType="System.Web.Mvc.WebViewPage">
1414
<namespaces>
1515
<add namespace="System.Web.Mvc" />

test/Microsoft.Web.Mvc.Test/Test/VersionTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class VersionTest
1313
public void VerifyMVCVersionChangesAreIntentional()
1414
{
1515
Version mvcVersion = VersionTestHelper.GetVersionFromAssembly("System.Web.Mvc", typeof(Controller));
16-
Assert.Equal(new Version(5, 2, 9, 0), mvcVersion);
16+
Assert.Equal(new Version(5, 3, 0, 0), mvcVersion);
1717
}
1818
}
1919
}

test/System.Web.WebPages.Test/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<dependentAssembly>
1212
<!-- Need this because the BinarySerializer uses the TypeForwardedFrom attribute and deserializes to the original assembly (MVC 2.0) for the HttpAntiForgeryException test -->
1313
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
14-
<bindingRedirect oldVersion="1.0.0.0-5.2.9.0" newVersion="5.2.9.0" />
14+
<bindingRedirect oldVersion="1.0.0.0-5.3.0.0" newVersion="5.3.0.0" />
1515
</dependentAssembly>
1616
</assemblyBinding>
1717
</runtime>

0 commit comments

Comments
 (0)