Skip to content

Commit 443e1ea

Browse files
committed
Support for ASP.NET MVC 3
1 parent 3cf7df1 commit 443e1ea

10 files changed

+155
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Features
2020
Requirements
2121
============
2222
* ASP.NET 4.0 or higher
23-
* ASP.NET MVC 4 (support for other versions will come eventually)
23+
* ASP.NET MVC 3, 4 or 5
2424
* [JSON.NET](http://james.newtonking.com/json)
2525
* A JavaScript engine:
2626
* [MsieJavaScriptEngine](https://github.com/Taritsyn/MsieJavaScriptEngine) -
@@ -38,9 +38,11 @@ packages available:
3838
and JSX. You will normally use this through an integration library like
3939
React.Mvc4.
4040
* [React.Mvc4](#) - Integration with ASP.NET MVC 4 and 5
41-
* [React.WebOptimizer](#) - Integration with
41+
* [React.Mvc3](#) - Integration with ASP.NET MVC 3
42+
* [System.Web.Optimization.React](#) - Integration with
4243
[ASP.NET Bundling and Minification](http://www.asp.net/mvc/tutorials/mvc-4/bundling-and-minification).
4344
Use this to combine and minify your JavaScript.
45+
* [Cassette.React] - Integration with [Cassette](http://getcassette.net/)
4446

4547
These packages can be installed either via the UI in Visual Studio, or via the
4648
Package Manager Console:

lib/Mvc3/System.Web.Mvc.dll

435 KB
Binary file not shown.

lib/Mvc3/System.Web.Razor.dll

174 KB
Binary file not shown.
36.4 KB
Binary file not shown.

lib/Mvc3/System.Web.WebPages.dll

133 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<configuration>
2+
<system.web.webPages.razor>
3+
<pages>
4+
<namespaces>
5+
<add namespace="React.Web.Mvc" />
6+
</namespaces>
7+
</pages>
8+
</system.web.webPages.razor>
9+
</configuration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using System.Reflection;
2+
using System.Runtime.InteropServices;
3+
4+
[assembly: AssemblyTitle("React.Mvc3")]
5+
[assembly: AssemblyDescription("ASP.NET MVC 3 extensions for ReactJS.NET")]
6+
[assembly: ComVisible(false)]
7+
[assembly: Guid("CEAC08B2-5370-4DC6-82DA-5E9B8CD897A9")]
+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{6B05AF58-BA85-45A9-97AE-88B6B21317D7}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>React.Web.Mvc</RootNamespace>
11+
<AssemblyName>React.Web.Mvc3</AssemblyName>
12+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16+
<DebugSymbols>true</DebugSymbols>
17+
<DebugType>full</DebugType>
18+
<Optimize>false</Optimize>
19+
<OutputPath>..\..\bin\Debug\React.Mvc3\</OutputPath>
20+
<DefineConstants>DEBUG;TRACE</DefineConstants>
21+
<ErrorReport>prompt</ErrorReport>
22+
<WarningLevel>4</WarningLevel>
23+
<DocumentationFile>..\..\bin\Debug\React.Mvc3\React.Web.Mvc3.XML</DocumentationFile>
24+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
25+
<NoWarn>1607</NoWarn>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>..\..\bin\Release\React.Mvc3\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
35+
<NoWarn>1607</NoWarn>
36+
<DocumentationFile>..\..\bin\Release\React.Mvc3\React.Web.Mvc3.XML</DocumentationFile>
37+
</PropertyGroup>
38+
<PropertyGroup>
39+
<SignAssembly>true</SignAssembly>
40+
</PropertyGroup>
41+
<PropertyGroup>
42+
<AssemblyOriginatorKeyFile>..\Key.snk</AssemblyOriginatorKeyFile>
43+
</PropertyGroup>
44+
<ItemGroup>
45+
<Reference Include="System" />
46+
<Reference Include="System.Core" />
47+
<Reference Include="System.Web" />
48+
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
49+
<HintPath>..\..\lib\Mvc3\System.Web.Mvc.dll</HintPath>
50+
<SpecificVersion>False</SpecificVersion>
51+
</Reference>
52+
<Reference Include="System.Web.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
53+
<HintPath>..\..\lib\Mvc3\System.Web.Razor.dll</HintPath>
54+
<SpecificVersion>False</SpecificVersion>
55+
</Reference>
56+
<Reference Include="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
57+
<HintPath>..\..\lib\Mvc3\System.Web.WebPages.dll</HintPath>
58+
<SpecificVersion>False</SpecificVersion>
59+
</Reference>
60+
<Reference Include="Microsoft.CSharp" />
61+
<Reference Include="System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
62+
<HintPath>..\..\lib\Mvc3\System.Web.WebPages.Razor.dll</HintPath>
63+
<SpecificVersion>False</SpecificVersion>
64+
</Reference>
65+
</ItemGroup>
66+
<ItemGroup>
67+
<Compile Include="..\React.Web.Mvc4\HtmlHelperExtensions.cs">
68+
<Link>HtmlHelperExtensions.cs</Link>
69+
</Compile>
70+
<Compile Include="..\SharedAssemblyInfo.cs">
71+
<Link>Properties\SharedAssemblyInfo.cs</Link>
72+
</Compile>
73+
<Compile Include="..\SharedAssemblyVersionInfo.cs">
74+
<Link>Properties\SharedAssemblyVersionInfo.cs</Link>
75+
</Compile>
76+
<Compile Include="Properties\AssemblyInfo.cs" />
77+
</ItemGroup>
78+
<ItemGroup>
79+
<None Include="Content\Views\web.config.transform" />
80+
<None Include="React.Web.Mvc3.nutrans" />
81+
</ItemGroup>
82+
<ItemGroup>
83+
<ProjectReference Include="..\React.Web\React.Web.csproj">
84+
<Project>{134edd16-8dc8-4983-a2e0-b38dab1ecf1c}</Project>
85+
<Name>React.Web</Name>
86+
</ProjectReference>
87+
<ProjectReference Include="..\React\React.csproj">
88+
<Project>{d0cc8a22-cee6-485c-924b-1f94426fea59}</Project>
89+
<Name>React</Name>
90+
</ProjectReference>
91+
</ItemGroup>
92+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
93+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
94+
Other similar extension points exist, see Microsoft.Common.targets.
95+
<Target Name="BeforeBuild">
96+
</Target>
97+
<Target Name="AfterBuild">
98+
</Target>
99+
-->
100+
</Project>
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
Copyright (c) 2014, Facebook, Inc.
4+
All rights reserved.
5+
6+
This source code is licensed under the BSD-style license found in the
7+
LICENSE file in the root directory of this source tree. An additional grant
8+
of patent rights can be found in the PATENTS file in the same directory.
9+
-->
10+
<package
11+
xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
12+
xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
13+
<metadata>
14+
<title xdt:Transform="Insert">ReactJS.NET (MVC 3)</title>
15+
<description xdt:Transform="Insert">
16+
ReactJS tools for ASP.NET MVC 3. Please refer to project site (http://reactjs.net/)
17+
for more details, usage examples and sample code.
18+
</description>
19+
</metadata>
20+
<files xdt:Transform="Insert">
21+
<file src="Content\Views\web.config.transform" target="Content\Views" />
22+
</files>
23+
</package>

src/React.sln

+12
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ EndProject
1818
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{CB51F03F-49BD-4B79-8AD4-67962230E76B}"
1919
ProjectSection(SolutionItems) = preProject
2020
..\build.proj = ..\build.proj
21+
..\dev-build-push.bat = ..\dev-build-push.bat
22+
..\dev-build.bat = ..\dev-build.bat
23+
..\README.md = ..\README.md
24+
SharedAssemblyInfo.cs = SharedAssemblyInfo.cs
25+
template.nuspec = template.nuspec
2126
EndProjectSection
2227
EndProject
2328
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "React.Web", "React.Web\React.Web.csproj", "{134EDD16-8DC8-4983-A2E0-B38DAB1ECF1C}"
@@ -30,6 +35,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "React.Sample.Cassette", "Re
3035
EndProject
3136
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cassette.React", "Cassette.React\Cassette.React.csproj", "{F591F1E8-3D6B-494A-B72A-152FCCA6210D}"
3237
EndProject
38+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "React.Web.Mvc3", "React.Web.Mvc3\React.Web.Mvc3.csproj", "{6B05AF58-BA85-45A9-97AE-88B6B21317D7}"
39+
EndProject
3340
Global
3441
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3542
Debug|Any CPU = Debug|Any CPU
@@ -68,6 +75,10 @@ Global
6875
{F591F1E8-3D6B-494A-B72A-152FCCA6210D}.Debug|Any CPU.Build.0 = Debug|Any CPU
6976
{F591F1E8-3D6B-494A-B72A-152FCCA6210D}.Release|Any CPU.ActiveCfg = Release|Any CPU
7077
{F591F1E8-3D6B-494A-B72A-152FCCA6210D}.Release|Any CPU.Build.0 = Release|Any CPU
78+
{6B05AF58-BA85-45A9-97AE-88B6B21317D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
79+
{6B05AF58-BA85-45A9-97AE-88B6B21317D7}.Debug|Any CPU.Build.0 = Debug|Any CPU
80+
{6B05AF58-BA85-45A9-97AE-88B6B21317D7}.Release|Any CPU.ActiveCfg = Release|Any CPU
81+
{6B05AF58-BA85-45A9-97AE-88B6B21317D7}.Release|Any CPU.Build.0 = Release|Any CPU
7182
EndGlobalSection
7283
GlobalSection(SolutionProperties) = preSolution
7384
HideSolutionNode = FALSE
@@ -81,5 +92,6 @@ Global
8192
{662D52AC-1EE9-4372-BD74-379F9AC56451} = {681C45FB-103C-48BC-B992-20C5B6B78F92}
8293
{889CEF81-75D6-4BAB-8E2C-B64B7CA97C77} = {681C45FB-103C-48BC-B992-20C5B6B78F92}
8394
{F591F1E8-3D6B-494A-B72A-152FCCA6210D} = {681C45FB-103C-48BC-B992-20C5B6B78F92}
95+
{6B05AF58-BA85-45A9-97AE-88B6B21317D7} = {681C45FB-103C-48BC-B992-20C5B6B78F92}
8496
EndGlobalSection
8597
EndGlobal

0 commit comments

Comments
 (0)