Permalink
Browse files

Removed Razor1 and Reference Fix Up to Razor2

  • Loading branch information...
1 parent 6d0c2fd commit 3a149b3e571da7e7eac08667fde648993486ff01 @bchavez bchavez committed Apr 12, 2013
Showing with 351 additions and 7,626 deletions.
  1. +1 −1 NuGet/NuGetPack.cmd
  2. BIN NuGet/ServiceStack.Razor/lib/net40/ServiceStack.Razor.dll
  3. BIN NuGet/ServiceStack.Razor/lib/net40/ServiceStack.Razor.pdb
  4. BIN NuGet/ServiceStack.Razor/lib/net40/System.Web.Razor.dll
  5. BIN NuGet/ServiceStack.Razor/lib/net40/System.Web.WebPages.Deployment.dll
  6. BIN NuGet/ServiceStack.Razor/lib/net40/System.Web.WebPages.Razor.dll
  7. BIN NuGet/ServiceStack.Razor/lib/net40/System.Web.WebPages.dll
  8. +3 −3 NuGet/{ServiceStack.Razor → ServiceStack.Razor2}/content/web.config.transform
  9. +4 −4 ...t/{ServiceStack.Razor/servicestack.razor.nuspec → ServiceStack.Razor2/servicestack.razor2.nuspec}
  10. +4 −4 ...t/{ServiceStack.Razor/stackexpress.razor.nuspec → ServiceStack.Razor2/stackexpress.razor2.nuspec}
  11. +1 −1 README.md
  12. +2 −2 build/build.bat
  13. +5 −5 build/build.msbuild
  14. +2 −2 build/build.sh
  15. +35 −35 release/copy.bat
  16. BIN src/.DS_Store
  17. +1 −1 src/ServiceStack.Interfaces/ServiceHost/Feature.cs
  18. +0 −106 src/ServiceStack.Razor/CSharpRazorBuildProvider.cs
  19. +0 −40 src/ServiceStack.Razor/Compilation/CSharp/CSharpDirectCompilerService.cs
  20. +0 −42 src/ServiceStack.Razor/Compilation/CSharp/CSharpRazorCodeGenerator.cs
  21. +0 −35 src/ServiceStack.Razor/Compilation/CSharp/CSharpRazorCodeLanguage.cs
  22. +0 −267 src/ServiceStack.Razor/Compilation/CompilerServiceBase.cs
  23. +0 −85 src/ServiceStack.Razor/Compilation/CompilerServices.cs
  24. +0 −80 src/ServiceStack.Razor/Compilation/RazorDynamicObject.cs
  25. +0 −45 src/ServiceStack.Razor/Compilation/TypeContext.cs
  26. +0 −2,344 src/ServiceStack.Razor/Dapper/SqlMapper.cs
  27. +0 −22 src/ServiceStack.Razor/DynamicRequestObject.cs
  28. +0 −68 src/ServiceStack.Razor/ErrorViewPage.cs
  29. +0 −19 src/ServiceStack.Razor/IRazorTemplate.cs
  30. +0 −90 src/ServiceStack.Razor/Json/DynamicJson.cs
  31. +0 −13 src/ServiceStack.Razor/Language.cs
  32. +0 −10 src/ServiceStack.Razor/MicrosoftCSharpReferenceStub.cs
  33. +0 −27 src/ServiceStack.Razor/Properties/AssemblyInfo.cs
  34. +0 −736 src/ServiceStack.Razor/RazorFormat.cs
  35. +0 −67 src/ServiceStack.Razor/RazorHandler.cs
  36. +0 −148 src/ServiceStack.Razor/ServiceStack.Razor.csproj
  37. +0 −49 src/ServiceStack.Razor/ServiceStack/CSharpRazorCodeGenerator.cs
  38. +0 −55 src/ServiceStack.Razor/ServiceStack/ModelSpan.cs
  39. +0 −86 src/ServiceStack.Razor/ServiceStack/MvcCSharpRazorCodeParser.cs
  40. +0 −84 src/ServiceStack.Razor/ServiceStack/MvcWebPageRazorHost.cs
  41. +0 −49 src/ServiceStack.Razor/Templating/IRazorViewEngine.cs
  42. +0 −58 src/ServiceStack.Razor/Templating/ITemplate.cs
  43. +0 −14 src/ServiceStack.Razor/Templating/ITemplateOfT.cs
  44. +0 −32 src/ServiceStack.Razor/Templating/RequireNamespacesAttribute.cs
  45. +0 −302 src/ServiceStack.Razor/Templating/TemplateBase.cs
  46. +0 −29 src/ServiceStack.Razor/Templating/TemplateCompilationException.cs
  47. +0 −31 src/ServiceStack.Razor/Templating/TemplateParsingException.cs
  48. +0 −160 src/ServiceStack.Razor/Templating/TemplateService.ServiceStack.cs
  49. +0 −292 src/ServiceStack.Razor/Templating/TemplateService.cs
  50. +0 −50 src/ServiceStack.Razor/Templating/TemplateWriter.cs
  51. +0 −80 src/ServiceStack.Razor/ViewPage.cs
  52. +0 −173 src/ServiceStack.Razor/ViewPageBase.cs
  53. +0 −180 src/ServiceStack.Razor/ViewPageRef.cs
  54. +0 −65 src/ServiceStack.Razor/ViewPage`1.cs
  55. +0 −147 src/ServiceStack.Razor/VirtualPath/AbstractVirtualDirectoryBase.cs
  56. +0 −92 src/ServiceStack.Razor/VirtualPath/AbstractVirtualFileBase.cs
  57. +0 −81 src/ServiceStack.Razor/VirtualPath/AbstractVirtualPathProviderBase.cs
  58. +0 −81 src/ServiceStack.Razor/VirtualPath/FileSystemVirtualDirectory.cs
  59. +0 −39 src/ServiceStack.Razor/VirtualPath/FileSystemVirtualFile.cs
  60. +0 −50 src/ServiceStack.Razor/VirtualPath/FileSystemVirtualPathProvider.cs
  61. +0 −20 src/ServiceStack.Razor/VirtualPath/IVirtualDirectory.cs
  62. +0 −18 src/ServiceStack.Razor/VirtualPath/IVirtualFile.cs
  63. +0 −12 src/ServiceStack.Razor/VirtualPath/IVirtualNode.cs
  64. +0 −30 src/ServiceStack.Razor/VirtualPath/IVirtualPathProvider.cs
  65. +0 −66 src/ServiceStack.Razor/VirtualPath/MultiVirtualPathProvider.cs
  66. +0 −121 src/ServiceStack.Razor/VirtualPath/ResourceVirtualDirectory.cs
  67. +0 −57 src/ServiceStack.Razor/VirtualPath/ResourceVirtualFile.cs
  68. +0 −54 src/ServiceStack.Razor/VirtualPath/ResourceVirtualPathProvider.cs
  69. +0 −44 src/ServiceStack.Razor/VirtualPath/VirtualPathExtension.cs
  70. +0 −299 src/ServiceStack.Razor/XlinqExtensions.cs
  71. +2 −2 src/ServiceStack.Razor2/CSharpRazorBuildProvider.cs
  72. +1 −2 src/ServiceStack.Razor2/Compilation/CSharp/CSharpDirectCompilerService.cs
  73. +4 −4 src/ServiceStack.Razor2/Compilation/CompilerServiceBase.cs
  74. +1 −1 src/ServiceStack.Razor2/Compilation/CompilerServices.cs
  75. +1 −1 src/ServiceStack.Razor2/Compilation/RazorDynamicObject.cs
  76. +2 −2 src/ServiceStack.Razor2/Compilation/TypeContext.cs
  77. +1 −1 src/ServiceStack.Razor2/DynamicRequestObject.cs
  78. +2 −2 src/ServiceStack.Razor2/ErrorViewPage.cs
  79. +2 −2 src/ServiceStack.Razor2/IRazorTemplate.cs
  80. +1 −1 src/ServiceStack.Razor2/Language.cs
  81. +1 −1 src/ServiceStack.Razor2/MicrosoftCSharpReferenceStub.cs
  82. +4 −4 src/ServiceStack.Razor2/RazorFormat.cs
  83. +1 −1 src/ServiceStack.Razor2/RazorHandler.cs
  84. +5 −5 src/ServiceStack.Razor2/Templating/AttributeValue.cs
  85. +1 −1 src/ServiceStack.Razor2/Templating/IRazorViewEngine.cs
  86. +1 −1 src/ServiceStack.Razor2/Templating/ITemplate.cs
  87. +1 −1 src/ServiceStack.Razor2/Templating/ITemplateOfT.cs
  88. +2 −2 src/ServiceStack.Razor2/Templating/RequireNamespacesAttribute.cs
  89. +2 −2 src/ServiceStack.Razor2/Templating/TemplateBase.cs
  90. +1 −1 src/ServiceStack.Razor2/Templating/TemplateCompilationException.cs
  91. +4 −4 src/ServiceStack.Razor2/Templating/TemplateParsingException.cs
  92. +1 −1 src/ServiceStack.Razor2/Templating/TemplateService.ServiceStack.cs
  93. +3 −3 src/ServiceStack.Razor2/Templating/TemplateService.cs
  94. +3 −3 src/ServiceStack.Razor2/Templating/TemplateWriter.cs
  95. +2 −2 src/ServiceStack.Razor2/ViewPage.cs
  96. +2 −2 src/ServiceStack.Razor2/ViewPageBase.cs
  97. +2 −3 src/ServiceStack.Razor2/ViewPageRef.cs
  98. +2 −2 src/ServiceStack.Razor2/ViewPage`1.cs
  99. +1 −32 src/ServiceStack.sln
  100. +2 −2 src/ServiceStack/WebHost.Endpoints/EndpointHost.cs
  101. +3 −3 src/ServiceStack/WebHost.Endpoints/EndpointHostConfig.cs
  102. +1 −1 src/ServiceStack/WebHost.Endpoints/IPlugin.cs
  103. +2 −2 tests/RazorRockstars.Console.Files/App.config
  104. +2 −2 tests/RazorRockstars.Console.Files/AppHost.cs
  105. +2 −2 tests/RazorRockstars.Console.Files/Benchmarks.cs
  106. +3 −3 tests/RazorRockstars.Console.Files/DynamicJsonTests.cs
  107. +0 −4 tests/RazorRockstars.Console.Files/RazorRockstars.Console.Files.csproj
  108. +1 −1 tests/RazorRockstars.Console.Files/RazorRockstars_FilesTests.cs
  109. +4 −4 tests/RazorRockstars.Console.Files/Web.config
  110. +2 −2 tests/RazorRockstars.Console/App.config
  111. +1 −1 tests/RazorRockstars.Console/AppHost.cs
  112. +3 −3 tests/RazorRockstars.Console/RazorRockstars.Console.csproj
  113. +4 −4 tests/RazorRockstars.Console/Web.config
  114. +2 −2 tests/RazorRockstars.Web/App.config
  115. +1 −1 tests/RazorRockstars.Web/AppHost.cs
  116. +4 −4 tests/RazorRockstars.Web/RazorRockstars.Web.csproj
  117. +3 −3 tests/RazorRockstars.Web/Web.config
  118. +3 −3 tests/ServiceStack.Auth.Tests/App.config
  119. +2 −2 tests/ServiceStack.Auth.Tests/RazorAppHost.cs
  120. +0 −4 tests/ServiceStack.Auth.Tests/ServiceStack.Auth.Tests.csproj
  121. +164 −0 tests/ServiceStack.RazorHostTests/AppHost.cs
  122. +1 −154 tests/ServiceStack.RazorHostTests/Global.asax.cs
  123. +9 −6 tests/ServiceStack.RazorHostTests/ServiceStack.RazorHostTests.csproj
  124. +4 −4 tests/ServiceStack.RazorHostTests/Web.config
  125. +2 −2 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/CustomRazorBasePage.cs
  126. +2 −2 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/IntroductionExampleRazorTests.cs
  127. +3 −3 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/IntroductionLayoutRazorTests.cs
  128. +2 −2 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/RazorEngineTests.cs
  129. +2 −2 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/RazorTestBase.cs
  130. +1 −1 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/StandAloneExampleTests.cs
  131. +2 −2 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/TemplateTests.cs
  132. +0 −4 tests/ServiceStack.ServiceHost.Tests/ServiceStack.ServiceHost.Tests.csproj
View
@@ -2,7 +2,7 @@ nuget pack ServiceStack\servicestack.nuspec -symbols
nuget pack ServiceStack.Common\servicestack.common.nuspec -symbols
nuget pack ServiceStack.Mvc\servicestack.mvc.nuspec -symbols
nuget pack ServiceStack.Api.Swagger\servicestack.api.swagger.nuspec -symbols
-nuget pack ServiceStack.Razor\servicestack.razor.nuspec -symbols
+nuget pack ServiceStack.Razor2\servicestack.razor2.nuspec -symbols
nuget pack ServiceStack.Host.AspNet\servicestack.host.aspnet.nuspec
nuget pack ServiceStack.Host.Mvc\servicestack.host.mvc.nuspec
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -15,16 +15,16 @@
<add assembly="System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
<buildProviders>
- <add extension=".cshtml" type="ServiceStack.Razor.CSharpRazorBuildProvider, ServiceStack.Razor" />
+ <add extension=".cshtml" type="ServiceStack.Razor2.CSharpRazorBuildProvider, ServiceStack.Razor2" />
</buildProviders>
</compilation>
</system.web>
<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- <pages pageBaseType="ServiceStack.Razor.ViewPage">
+ <pages pageBaseType="ServiceStack.Razor2.ViewPage">
<namespaces>
<add namespace="ServiceStack.Html" />
- <add namespace="ServiceStack.Razor" />
+ <add namespace="ServiceStack.Razor2" />
<add namespace="ServiceStack.Text" />
<add namespace="ServiceStack.OrmLite" />
<add namespace="$rootnamespace$" />
@@ -1,14 +1,14 @@
<?xml version="1.0"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
- <id>ServiceStack.Razor</id>
- <title>ServiceStack.Razor - ServiceStack's HTML story including MVC Razor</title>
+ <id>ServiceStack.Razor2</id>
+ <title>ServiceStack.Razor2 - ServiceStack's HTML story including MVC Razor</title>
<version>3.9.43</version>
<authors>Demis Bellot</authors>
<owners>Demis Bellot</owners>
<summary>Provides ServiceStack's HTML Story including integrated support for MVC Razor's ViewEngine</summary>
<description>
- ServiceStack Razor Documentation: http://razor.servicestack.net
+ ServiceStack Razor2 Documentation: http://razor.servicestack.net
- Turns ServiceStack into a Complete Web + REST Services Stack. Replaces need for ASP.NET MVC.
- Runs In ASP.NET or Self-host, first-class cross-platform support on .NET / Mono runtimes.
@@ -33,6 +33,6 @@
</metadata>
<files>
<file src="lib\**\*.*" target="lib" />
- <file src="..\..\src\ServiceStack.Razor\**\*.cs" target="src" />
+ <file src="..\..\src\ServiceStack.Razor2\**\*.cs" target="src" />
</files>
</package>
@@ -1,14 +1,14 @@
<?xml version="1.0"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
- <id>StackExpress.Razor</id>
- <title>StackExpress.Razor - StackExpress's HTML story including MVC Razor</title>
+ <id>StackExpress.Razor2</id>
+ <title>StackExpress.Razor2 - StackExpress's HTML story including MVC Razor</title>
<version>$version$</version>
<authors>Demis Bellot</authors>
<owners>Demis Bellot</owners>
<summary>Provides ServiceStack's HTML Story including integrated support for MVC Razor's ViewEngine</summary>
<description>
- StackExpress Razor Documentation: http://razor.servicestack.net
+ StackExpress Razor2 Documentation: http://razor.servicestack.net
- Turns ServiceStack into a Complete Web + REST Services Stack. Replaces need for ASP.NET MVC.
- Runs In ASP.NET or Self-host, first-class cross-platform support on .NET / Mono runtimes.
@@ -33,6 +33,6 @@
</metadata>
<files>
<file src="lib\**\*.*" target="lib" />
- <file src="..\..\src\ServiceStack.Razor\**\*.cs" target="src" />
+ <file src="..\..\src\ServiceStack.Razor2\**\*.cs" target="src" />
</files>
</package>
View
@@ -134,7 +134,7 @@ host of functionality for free, out of the box without any configuration require
If you have [NuGet](http://nuget.org) installed, the easiest way to get started is to install ServiceStack via NuGet:
ServiceStack with Razor Support: Create an empty ASP.NET Web or Console Application and (.NET 4.0+)
-![Install-Pacakage ServiceStack.Razor](http://www.servicestack.net/img/nuget-servicestack.razor.png)
+![Install-Pacakage ServiceStack.Razor2](http://www.servicestack.net/img/nuget-servicestack.razor.png)
ServiceStack binaries only: Minimal installation of ServiceStack containing only the core-binaries (.NET 3.5+)
![Install-Pacakage ServiceStack](http://www.servicestack.net/img/nuget-servicestack.png)
View
@@ -23,7 +23,7 @@ REM COPY ..\src\ServiceStack.ServiceInterface\bin\%BUILD%\ServiceStack.pdb ..\Nu
REM COPY ..\src\ServiceStack.ServiceInterface\bin\%BUILD%\ServiceStack.xml ..\NuGet\ServiceStack\lib\net40
REM COPY ..\src\ServiceStack.ServiceInterface\bin\%BUILD%\ServiceStack.ServiceInterface.* ..\NuGet\ServiceStack\lib\net40
-COPY ..\src\ServiceStack.Razor\bin\%BUILD%\ServiceStack.Razor.* ..\NuGet\ServiceStack.Razor\lib\net40
+COPY ..\src\ServiceStack.Razor2\bin\%BUILD%\ServiceStack.Razor2.* ..\NuGet\ServiceStack.Razor2\lib\net40
COPY ..\src\ServiceStack.ServiceInterface\bin\%BUILD%\ServiceStack.Common.* ..\NuGet\ServiceStack.Common\lib\net35
COPY ..\src\ServiceStack.ServiceInterface\bin\%BUILD%\ServiceStack.Interfaces.* ..\NuGet\ServiceStack.Common\lib\net35
@@ -43,7 +43,7 @@ COPY ..\src\ServiceStack.Api.Swagger\bin\%BUILD%\ServiceStack.Api.Swagger.* ..\N
COPY ..\src\ServiceStack.ServiceInterface\bin\%BUILD%\*.* ..\..\chaweet\api\lib
-COPY ..\src\ServiceStack.Razor\bin\%BUILD%\*.* ..\..\ServiceStack.Examples\lib
+COPY ..\src\ServiceStack.Razor2\bin\%BUILD%\*.* ..\..\ServiceStack.Examples\lib
COPY ..\src\ServiceStack.ServiceInterface\bin\%BUILD%\*.* ..\..\ServiceStack.Examples\lib
COPY ..\src\ServiceStack\bin\%BUILD%\*.* ..\..\ServiceStack.Contrib\lib
COPY ..\src\ServiceStack\bin\%BUILD%\*.* ..\..\ServiceStack.RedisWebServices\lib
View
@@ -77,7 +77,7 @@
<StackExpressFiles Include="$(SrcDir)/ServiceStack.ServiceInterface/bin/$(Configuration)/ServiceStack.pdb"></StackExpressFiles>
<StackExpressFiles Include="$(SrcDir)/ServiceStack.ServiceInterface/bin/$(Configuration)/ServiceStack.xml"></StackExpressFiles>
- <StackExpressRazorFiles Include="$(SrcDir)/ServiceStack.Razor/bin/$(Configuration)/ServiceStack.Razor.*"></StackExpressRazorFiles>
+ <StackExpressRazorFiles Include="$(SrcDir)/ServiceStack.Razor2/bin/$(Configuration)/ServiceStack.Razor2.*"></StackExpressRazorFiles>
<StackExpressCommonFiles Include="$(SrcDir)/ServiceStack.Common/bin/$(Configuration)/ServiceStack.Common.*"></StackExpressCommonFiles>
<StackExpressCommonFiles Include="$(SrcDir)/ServiceStack.Common/bin/$(Configuration)/ServiceStack.Interfaces.*"></StackExpressCommonFiles>
@@ -108,15 +108,15 @@
<Exec Command="&quot;$(NuGetPath)&quot; pack &quot;$(NuGetPackageDir)/ServiceStack/stackexpress.nuspec&quot; -OutputDirectory &quot;$(NuGetPackageDir)&quot; -Version $(PackageVersion)"
LogStandardErrorAsError="true" />
- <!-- StackExpress.Razor -->
+ <!-- StackExpress.Razor2 -->
- <MSBuild Projects="$(BuildSolutionDir)/src/ServiceStack.Razor/ServiceStack.Razor.csproj"
+ <MSBuild Projects="$(BuildSolutionDir)/src/ServiceStack.Razor2/ServiceStack.Razor2.csproj"
Targets="Build"
Properties="BuildPackage=true;Version=$(PackageVersion);Configuration=$(Configuration)" />
- <Copy SourceFiles="%(StackExpressRazorFiles.Identity)" DestinationFolder="$(NuGetPackageDir)/ServiceStack.Razor/lib/net40" />
+ <Copy SourceFiles="%(StackExpressRazorFiles.Identity)" DestinationFolder="$(NuGetPackageDir)/ServiceStack.Razor2/lib/net40" />
- <Exec Command="&quot;$(NuGetPath)&quot; pack &quot;$(NuGetPackageDir)/ServiceStack.Razor/stackexpress.razor.nuspec&quot; -OutputDirectory &quot;$(NuGetPackageDir)&quot; -Version $(PackageVersion)"
+ <Exec Command="&quot;$(NuGetPath)&quot; pack &quot;$(NuGetPackageDir)/ServiceStack.Razor2/stackexpress.Razor2.nuspec&quot; -OutputDirectory &quot;$(NuGetPackageDir)&quot; -Version $(PackageVersion)"
LogStandardErrorAsError="true" />
<!-- StackExpress.Common -->
View
@@ -91,8 +91,8 @@ buildComponent ServiceStack ServiceStack.Plugins.MsgPack
buildComponent ServiceStack ServiceStack.ServiceInterface
buildComponent ServiceStack ServiceStack.Plugins.ProtoBuf
buildComponent ServiceStack ServiceStack.FluentValidation.Mvc3
-buildComponent ServiceStack ServiceStack.Razor
-cp "$LIB_DIR"/ServiceStack.Razor.dll ServiceStack.Redis/"$MONO_DIR"/tests/
+buildComponent ServiceStack ServiceStack.Razor2
+cp "$LIB_DIR"/ServiceStack.Razor2.dll ServiceStack.Redis/"$MONO_DIR"/tests/
cp "$LIB_DIR"/ServiceStack.ServiceInterface.dll ServiceStack.Redis/"$MONO_DIR"/tests/
cp "$LIB_DIR"/ServiceStack.ServiceInterface.dll ServiceStack.Text/"$MONO_DIR"/tests/
View
@@ -1,35 +1,35 @@
-MD latest\ServiceStack
-MD latest\ServiceStack.OrmLite
-MD latest\ServiceStack.Redis
-
-COPY ..\NuGet\ServiceStack\lib\net35\* latest\ServiceStack
-COPY ..\NuGet\ServiceStack\lib\net40\* latest\ServiceStack
-COPY ..\NuGet\ServiceStack.Common\lib\net35\* latest\ServiceStack
-COPY ..\NuGet\ServiceStack.Mvc\lib\net40\* latest\ServiceStack
-COPY ..\NuGet\ServiceStack.Authentication.OpenId\lib\net35\* latest\ServiceStack
-COPY ..\NuGet\ServiceStack.Plugins.ProtoBuf\lib\net35\* latest\ServiceStack
-COPY ..\NuGet\ServiceStack.Plugins.MsgPack\lib\net40\* latest\ServiceStack
-COPY ..\NuGet\ServiceStack.Razor\lib\net40\* latest\ServiceStack
-
-COPY ..\..\ServiceStack.Text\NuGet\lib\net35\* latest\ServiceStack
-COPY ..\..\ServiceStack.Redis\NuGet\lib\net35\* latest\ServiceStack
-COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.SqlServer\lib\* latest\ServiceStack
-
-MD latest\ServiceStack.OrmLite\Firebird
-MD latest\ServiceStack.OrmLite\MySql
-MD latest\ServiceStack.OrmLite\PostgreSQL
-MD latest\ServiceStack.OrmLite\Sqlite32
-MD latest\ServiceStack.OrmLite\Sqlite64
-MD latest\ServiceStack.OrmLite\SqlServer
-MD latest\ServiceStack.OrmLite\Sqlite32.Mono
-
-COPY ..\..\ServiceStack.Text\NuGet\lib\net35\* latest\ServiceStack.OrmLite
-COPY ..\NuGet\ServiceStack.Common\lib\net35\* latest\ServiceStack.OrmLite
-COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.Firebird\lib\* latest\ServiceStack.OrmLite\Firebird
-COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.MySql\lib\* latest\ServiceStack.OrmLite\MySql
-COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.PostgreSQL\lib\* latest\ServiceStack.OrmLite\PostgreSQL
-COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.Sqlite32\lib\* latest\ServiceStack.OrmLite\Sqlite32
-COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.Sqlite64\lib\* latest\ServiceStack.OrmLite\Sqlite64
-COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.SqlServer\lib\* latest\ServiceStack.OrmLite\SqlServer
-COPY ..\..\ServiceStack.OrmLite\src\ServiceStack.OrmLite.Sqlite\bin\Release\ServiceStack.OrmLite.* latest\ServiceStack.OrmLite\Sqlite32.Mono
-
+MD latest\ServiceStack
+MD latest\ServiceStack.OrmLite
+MD latest\ServiceStack.Redis
+
+COPY ..\NuGet\ServiceStack\lib\net35\* latest\ServiceStack
+COPY ..\NuGet\ServiceStack\lib\net40\* latest\ServiceStack
+COPY ..\NuGet\ServiceStack.Common\lib\net35\* latest\ServiceStack
+COPY ..\NuGet\ServiceStack.Mvc\lib\net40\* latest\ServiceStack
+COPY ..\NuGet\ServiceStack.Authentication.OpenId\lib\net35\* latest\ServiceStack
+COPY ..\NuGet\ServiceStack.Plugins.ProtoBuf\lib\net35\* latest\ServiceStack
+COPY ..\NuGet\ServiceStack.Plugins.MsgPack\lib\net40\* latest\ServiceStack
+COPY ..\NuGet\ServiceStack.Razor2\lib\net40\* latest\ServiceStack
+
+COPY ..\..\ServiceStack.Text\NuGet\lib\net35\* latest\ServiceStack
+COPY ..\..\ServiceStack.Redis\NuGet\lib\net35\* latest\ServiceStack
+COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.SqlServer\lib\* latest\ServiceStack
+
+MD latest\ServiceStack.OrmLite\Firebird
+MD latest\ServiceStack.OrmLite\MySql
+MD latest\ServiceStack.OrmLite\PostgreSQL
+MD latest\ServiceStack.OrmLite\Sqlite32
+MD latest\ServiceStack.OrmLite\Sqlite64
+MD latest\ServiceStack.OrmLite\SqlServer
+MD latest\ServiceStack.OrmLite\Sqlite32.Mono
+
+COPY ..\..\ServiceStack.Text\NuGet\lib\net35\* latest\ServiceStack.OrmLite
+COPY ..\NuGet\ServiceStack.Common\lib\net35\* latest\ServiceStack.OrmLite
+COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.Firebird\lib\* latest\ServiceStack.OrmLite\Firebird
+COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.MySql\lib\* latest\ServiceStack.OrmLite\MySql
+COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.PostgreSQL\lib\* latest\ServiceStack.OrmLite\PostgreSQL
+COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.Sqlite32\lib\* latest\ServiceStack.OrmLite\Sqlite32
+COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.Sqlite64\lib\* latest\ServiceStack.OrmLite\Sqlite64
+COPY ..\..\ServiceStack.OrmLite\NuGet\ServiceStack.OrmLite.SqlServer\lib\* latest\ServiceStack.OrmLite\SqlServer
+COPY ..\..\ServiceStack.OrmLite\src\ServiceStack.OrmLite.Sqlite\bin\Release\ServiceStack.OrmLite.* latest\ServiceStack.OrmLite\Sqlite32.Mono
+
View
Binary file not shown.
@@ -22,7 +22,7 @@ public enum Feature : int
Html = 1 << 9,
CustomFormat = 1 << 10,
Markdown = 1 << 11,
- Razor = 1 << 12,
+ Razor2 = 1 << 12,
ProtoBuf = 1 << 13,
MsgPack = 1 << 14,
}
@@ -1,106 +0,0 @@
-//Orignally from: https://github.com/NancyFx/Nancy/blob/master/src/Nancy.ViewEngines.Razor.BuildProviders/NancyCSharpRazorBuildProvider.cs
-
-using System;
-using System.CodeDom;
-using System.CodeDom.Compiler;
-using System.Globalization;
-using System.Web.Compilation;
-using System.Web.Razor;
-using ServiceStack.Logging;
-
-namespace ServiceStack.Razor
-{
- [BuildProviderAppliesTo(BuildProviderAppliesTo.Code | BuildProviderAppliesTo.Web)]
- public class CSharpRazorBuildProvider : BuildProvider
- {
- private static readonly ILog Log = LogManager.GetLogger(typeof (CSharpRazorBuildProvider));
-
- private readonly RazorEngineHost host;
-
- private readonly CompilerType compilerType;
-
- private CodeCompileUnit generatedCode;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CSharpRazorBuildProvider"/> class.
- /// </summary>
- public CSharpRazorBuildProvider()
- {
- this.compilerType = this.GetDefaultCompilerTypeForLanguage("C#");
-
- this.host = new RazorEngineHost(new CSharpRazorCodeLanguage()) {
- DefaultBaseClass = typeof(ViewPageRef).FullName,
- DefaultNamespace = "RazorOutput",
- DefaultClassName = "ViewPage"
- };
- }
-
- /// <summary>
- /// Represents the compiler type used by a build provider to generate source code for a custom file type.
- /// </summary>
- /// <returns>A read-only <see cref="T:System.Web.Compilation.CompilerType"/> representing the code generator, code compiler, and compiler settings used to build source code for the virtual path. The base class returns null.</returns>
- public override CompilerType CodeCompilerType
- {
- get { return this.compilerType; }
- }
-
- /// <summary>
- /// Generates source code for the virtual path of the build provider, and adds the source code to a specified assembly builder.
- /// </summary>
- /// <param name="assemblyBuilder">The assembly builder that references the source code generated by the build provider.</param>
- public override void GenerateCode(AssemblyBuilder assemblyBuilder)
- {
- try
- {
- assemblyBuilder.AddCodeCompileUnit(this, this.GetGeneratedCode());
-
- assemblyBuilder.GenerateTypeFactory(string.Format(CultureInfo.InvariantCulture, "{0}.{1}", new object[] { this.host.DefaultNamespace, this.host.DefaultClassName }));
- }
- catch (Exception ex)
- {
- Log.Error("GenerateCode(): ", ex);
- }
- }
-
- /// <summary>
- /// Returns a type generated by the build provider from the virtual path.
- /// </summary>
- /// <returns>The type that is generated by the build provider for the virtual path. The base class returns null.</returns>
- /// <param name="results">The compilation results for the build provider's virtual path.</param>
- public override Type GetGeneratedType(CompilerResults results)
- {
- return results.CompiledAssembly.GetType(string.Format(CultureInfo.CurrentCulture, "{0}.{1}", new object[] { this.host.DefaultNamespace, this.host.DefaultClassName }));
- }
-
- private CodeCompileUnit GetGeneratedCode()
- {
- try
- {
-
- if (this.generatedCode == null)
- {
- var engine = new RazorTemplateEngine(this.host);
- GeneratorResults results;
- using (var reader = this.OpenReader())
- {
- results = engine.GenerateCode(reader);
- }
-
- if (!results.Success)
- {
- throw new InvalidOperationException(results.ToString());
- }
-
- this.generatedCode = results.GeneratedCode;
- }
-
- return this.generatedCode;
- }
- catch (Exception ex)
- {
- Log.Error("GetGeneratedCode(): ", ex);
- return null;
- }
- }
- }
-}
@@ -1,40 +0,0 @@
-using System;
-using System.Linq;
-using System.Web.Razor.Parser;
-using Microsoft.CSharp;
-
-namespace ServiceStack.Razor.Compilation.CSharp
-{
- /// <summary>
- /// Defines a direct compiler service for the C# syntax.
- /// </summary>
- public class CSharpDirectCompilerService : CompilerServiceBase
- {
- public CSharpDirectCompilerService(bool strictMode = true, MarkupParser markupParser = null)
- : base(
- new CSharpCodeProvider(),
- new CSharpRazorCodeLanguage(strictMode),
- markupParser) { }
-
- /// <summary>
- /// Builds a type name for the specified generic type.
- /// </summary>
- /// <param name="type">The type.</param>
- /// <param name="isDynamic">Specifies whether the type is dynamic.</param>
- /// <returns>
- /// The string typename (including namespace and generic type parameters).
- /// </returns>
- public override string BuildTypeNameInternal(Type type, bool isDynamic)
- {
- if (!type.IsGenericType)
- return type.FullName;
-
- return type.Namespace
- + "."
- + type.Name.Substring(0, type.Name.IndexOf('`'))
- + "<"
- + (isDynamic ? "dynamic" : string.Join(", ", type.GetGenericArguments().Select(t => BuildTypeNameInternal(t, CompilerServices.IsDynamicType(t)))))
- + ">";
- }
- }
-}
Oops, something went wrong.

0 comments on commit 3a149b3

Please sign in to comment.