Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replace direct reference to the Formatting.Html project to the NuGet …

…package.
  • Loading branch information...
commit c0066a37b6d3b23a481130a4ad10a30faf864fd9 1 parent 64c2382
@panesofglass panesofglass authored
Showing with 166 additions and 585 deletions.
  1. +0 −6 WebApiContrib.Formatting.RazorViewEngine.sln
  2. +6 −7 samples/MvcWebApiSiteTest/MvcWebApiSiteTest.csproj
  3. +94 −90 samples/MvcWebApiSiteTest/Web.config
  4. +25 −24 samples/MvcWebApiSiteTest/packages.config
  5. +0 −74 src/WebApiContrib.Formatting.Html/Common/TaskHelpers.cs
  6. +0 −21 src/WebApiContrib.Formatting.Html/Configuration/GlobalViews.cs
  7. +0 −147 src/WebApiContrib.Formatting.Html/Formatters/HtmlMediaTypeViewFormatter.cs
  8. +0 −13 src/WebApiContrib.Formatting.Html/IView.cs
  9. +0 −7 src/WebApiContrib.Formatting.Html/Locators/IViewLocator.cs
  10. +0 −36 src/WebApiContrib.Formatting.Html/Properties/AssemblyInfo.cs
  11. +0 −24 src/WebApiContrib.Formatting.Html/View.cs
  12. +0 −19 src/WebApiContrib.Formatting.Html/ViewAttribute.cs
  13. +0 −9 src/WebApiContrib.Formatting.Html/ViewParsers/IViewParser.cs
  14. +0 −78 src/WebApiContrib.Formatting.Html/WebApiContrib.Formatting.Html.csproj
  15. +0 −7 src/WebApiContrib.Formatting.Html/packages.config
  16. +18 −6 src/WebApiContrib.Formatting.Razor/WebApiContrib.Formatting.Razor.csproj
  17. +8 −3 src/WebApiContrib.Formatting.Razor/packages.config
  18. +4 −5 test/WebApiContrib.Formatting.RazorViewEngine.Tests/WebApiContrib.RazorViewEngine.Tests.csproj
  19. +11 −9 test/WebApiContrib.Formatting.RazorViewEngine.Tests/packages.config
View
6 WebApiContrib.Formatting.RazorViewEngine.sln
@@ -9,8 +9,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{4C93B8
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApiContrib.RazorViewEngine.Tests", "test\WebApiContrib.Formatting.RazorViewEngine.Tests\WebApiContrib.RazorViewEngine.Tests.csproj", "{960EDBC5-0C46-4CD7-B0B6-B4D5F30B9092}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApiContrib.Formatting.Html", "src\WebApiContrib.Formatting.Html\WebApiContrib.Formatting.Html.csproj", "{1055BCC1-BBB1-45F2-8260-E00959A6AC89}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApiContrib.Formatting.Razor", "src\WebApiContrib.Formatting.Razor\WebApiContrib.Formatting.Razor.csproj", "{8C15B0D3-9108-4EA3-AE19-3C9571266C47}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MvcWebApiSiteTest", "samples\MvcWebApiSiteTest\MvcWebApiSiteTest.csproj", "{5D90E626-1C40-4B23-887A-DC2527D696CB}"
@@ -25,10 +23,6 @@ Global
{960EDBC5-0C46-4CD7-B0B6-B4D5F30B9092}.Debug|Any CPU.Build.0 = Debug|Any CPU
{960EDBC5-0C46-4CD7-B0B6-B4D5F30B9092}.Release|Any CPU.ActiveCfg = Release|Any CPU
{960EDBC5-0C46-4CD7-B0B6-B4D5F30B9092}.Release|Any CPU.Build.0 = Release|Any CPU
- {1055BCC1-BBB1-45F2-8260-E00959A6AC89}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1055BCC1-BBB1-45F2-8260-E00959A6AC89}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1055BCC1-BBB1-45F2-8260-E00959A6AC89}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1055BCC1-BBB1-45F2-8260-E00959A6AC89}.Release|Any CPU.Build.0 = Release|Any CPU
{8C15B0D3-9108-4EA3-AE19-3C9571266C47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8C15B0D3-9108-4EA3-AE19-3C9571266C47}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8C15B0D3-9108-4EA3-AE19-3C9571266C47}.Release|Any CPU.ActiveCfg = Release|Any CPU
View
13 samples/MvcWebApiSiteTest/MvcWebApiSiteTest.csproj
@@ -42,6 +42,9 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
+ <Reference Include="Newtonsoft.Json">
+ <HintPath>..\..\packages\Newtonsoft.Json.4.5.8\lib\net40\Newtonsoft.Json.dll</HintPath>
+ </Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Data.Entity" />
@@ -64,9 +67,6 @@
<Private>True</Private>
<HintPath>..\..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
</Reference>
- <Reference Include="Newtonsoft.Json">
- <HintPath>..\..\packages\Newtonsoft.Json.4.5.6\lib\net40\Newtonsoft.Json.dll</HintPath>
- </Reference>
<Reference Include="System.Net.Http">
<Private>True</Private>
<HintPath>..\..\packages\Microsoft.Net.Http.2.0.20710.0\lib\net40\System.Net.Http.dll</HintPath>
@@ -114,6 +114,9 @@
<Private>True</Private>
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Razor.dll</HintPath>
</Reference>
+ <Reference Include="WebApiContrib.Formatting.Html">
+ <HintPath>..\..\packages\WebApiContrib.Formatting.Html.0.9.4\lib\net40\WebApiContrib.Formatting.Html.dll</HintPath>
+ </Reference>
<Reference Include="WebGrease">
<Private>True</Private>
<HintPath>..\..\packages\WebGrease.1.1.0\lib\WebGrease.dll</HintPath>
@@ -247,10 +250,6 @@
<Content Include="packages.config" />
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\..\src\WebApiContrib.Formatting.Html\WebApiContrib.Formatting.Html.csproj">
- <Project>{1055bcc1-bbb1-45f2-8260-e00959a6ac89}</Project>
- <Name>WebApiContrib.Formatting.Html</Name>
- </ProjectReference>
<ProjectReference Include="..\..\src\WebApiContrib.Formatting.Razor\WebApiContrib.Formatting.Razor.csproj">
<Project>{8c15b0d3-9108-4ea3-ae19-3c9571266c47}</Project>
<Name>WebApiContrib.Formatting.Razor</Name>
View
184 samples/MvcWebApiSiteTest/Web.config
@@ -1,91 +1,95 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- For more information on how to configure your ASP.NET application, please visit
- http://go.microsoft.com/fwlink/?LinkId=169433
- -->
-<configuration>
- <configSections>
- <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
- <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
- </configSections>
- <connectionStrings>
- <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-MvcWebApiSiteTest-20120821092832;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-MvcWebApiSiteTest-20120821092832.mdf" />
- </connectionStrings>
- <appSettings>
- <add key="webpages:Version" value="2.0.0.0" />
- <add key="webpages:Enabled" value="false" />
- <add key="PreserveLoginUrl" value="true" />
- <add key="ClientValidationEnabled" value="true" />
- <add key="UnobtrusiveJavaScriptEnabled" value="true" />
- </appSettings>
- <system.web>
- <compilation debug="true" targetFramework="4.0" />
- <authentication mode="None" />
- <pages>
- <namespaces>
- <add namespace="System.Web.Helpers" />
- <add namespace="System.Web.Mvc" />
- <add namespace="System.Web.Mvc.Ajax" />
- <add namespace="System.Web.Mvc.Html" />
- <add namespace="System.Web.Optimization" />
- <add namespace="System.Web.Routing" />
- <add namespace="System.Web.WebPages" />
- </namespaces>
- </pages>
- <profile defaultProvider="DefaultProfileProvider">
- <providers>
- <add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
- </providers>
- </profile>
- <membership defaultProvider="DefaultMembershipProvider">
- <providers>
- <add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
- </providers>
- </membership>
- <roleManager defaultProvider="DefaultRoleProvider">
- <providers>
- <add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
- </providers>
- </roleManager>
- <sessionState mode="InProc" customProvider="DefaultSessionProvider">
- <providers>
- <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
- </providers>
- </sessionState>
- </system.web>
- <system.webServer>
- <validation validateIntegratedModeConfiguration="false" />
- <modules runAllManagedModulesForAllRequests="true" />
- <handlers>
- <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
- <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
- <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
- <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
- <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
- <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
- </handlers>
- </system.webServer>
- <runtime>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
- </dependentAssembly>
- </assemblyBinding>
- </runtime>
- <entityFramework>
- <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
- <parameters>
- <parameter value="v11.0" />
- </parameters>
- </defaultConnectionFactory>
- </entityFramework>
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ For more information on how to configure your ASP.NET application, please visit
+ http://go.microsoft.com/fwlink/?LinkId=169433
+ -->
+<configuration>
+ <configSections>
+ <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
+ <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
+ </configSections>
+ <connectionStrings>
+ <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-MvcWebApiSiteTest-20120821092832;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-MvcWebApiSiteTest-20120821092832.mdf" />
+ </connectionStrings>
+ <appSettings>
+ <add key="webpages:Version" value="2.0.0.0" />
+ <add key="webpages:Enabled" value="false" />
+ <add key="PreserveLoginUrl" value="true" />
+ <add key="ClientValidationEnabled" value="true" />
+ <add key="UnobtrusiveJavaScriptEnabled" value="true" />
+ </appSettings>
+ <system.web>
+ <compilation debug="true" targetFramework="4.0" />
+ <authentication mode="None" />
+ <pages>
+ <namespaces>
+ <add namespace="System.Web.Helpers" />
+ <add namespace="System.Web.Mvc" />
+ <add namespace="System.Web.Mvc.Ajax" />
+ <add namespace="System.Web.Mvc.Html" />
+ <add namespace="System.Web.Optimization" />
+ <add namespace="System.Web.Routing" />
+ <add namespace="System.Web.WebPages" />
+ </namespaces>
+ </pages>
+ <profile defaultProvider="DefaultProfileProvider">
+ <providers>
+ <add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
+ </providers>
+ </profile>
+ <membership defaultProvider="DefaultMembershipProvider">
+ <providers>
+ <add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
+ </providers>
+ </membership>
+ <roleManager defaultProvider="DefaultRoleProvider">
+ <providers>
+ <add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
+ </providers>
+ </roleManager>
+ <sessionState mode="InProc" customProvider="DefaultSessionProvider">
+ <providers>
+ <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
+ </providers>
+ </sessionState>
+ </system.web>
+ <system.webServer>
+ <validation validateIntegratedModeConfiguration="false" />
+ <modules runAllManagedModulesForAllRequests="true" />
+ <handlers>
+ <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
+ <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
+ <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
+ <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
+ <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
+ <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
+ </handlers>
+ </system.webServer>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
+ <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
+ <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
+ <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+ <entityFramework>
+ <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
+ <parameters>
+ <parameter value="v11.0" />
+ </parameters>
+ </defaultConnectionFactory>
+ </entityFramework>
</configuration>
View
49 samples/MvcWebApiSiteTest/packages.config
@@ -1,25 +1,26 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="EntityFramework" version="5.0.0" targetFramework="net40" />
- <package id="jQuery" version="1.7.1.1" targetFramework="net40" />
- <package id="jQuery.UI.Combined" version="1.8.20.1" targetFramework="net40" />
- <package id="jQuery.Validation" version="1.9.0.1" targetFramework="net40" />
- <package id="knockoutjs" version="2.1.0" targetFramework="net40" />
- <package id="Microsoft.AspNet.Mvc" version="4.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.AspNet.Providers.Core" version="1.1" targetFramework="net40" />
- <package id="Microsoft.AspNet.Providers.LocalDB" version="1.1" targetFramework="net40" />
- <package id="Microsoft.AspNet.Razor" version="2.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.AspNet.Web.Optimization" version="1.0.0" targetFramework="net40" />
- <package id="Microsoft.AspNet.WebApi" version="4.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.AspNet.WebApi.Client" version="4.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.AspNet.WebApi.Core" version="4.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.AspNet.WebApi.WebHost" version="4.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.AspNet.WebPages" version="2.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.jQuery.Unobtrusive.Ajax" version="2.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.jQuery.Unobtrusive.Validation" version="2.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.Net.Http" version="2.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net40" />
- <package id="Modernizr" version="2.5.3" targetFramework="net40" />
- <package id="Newtonsoft.Json" version="4.5.6" targetFramework="net40" />
- <package id="WebGrease" version="1.1.0" targetFramework="net40" />
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="EntityFramework" version="5.0.0" targetFramework="net40" />
+ <package id="jQuery" version="1.7.1.1" targetFramework="net40" />
+ <package id="jQuery.UI.Combined" version="1.8.20.1" targetFramework="net40" />
+ <package id="jQuery.Validation" version="1.9.0.1" targetFramework="net40" />
+ <package id="knockoutjs" version="2.1.0" targetFramework="net40" />
+ <package id="Microsoft.AspNet.Mvc" version="4.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.AspNet.Providers.Core" version="1.1" targetFramework="net40" />
+ <package id="Microsoft.AspNet.Providers.LocalDB" version="1.1" targetFramework="net40" />
+ <package id="Microsoft.AspNet.Razor" version="2.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.AspNet.Web.Optimization" version="1.0.0" targetFramework="net40" />
+ <package id="Microsoft.AspNet.WebApi" version="4.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.AspNet.WebApi.Client" version="4.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.AspNet.WebApi.Core" version="4.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.AspNet.WebApi.WebHost" version="4.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.AspNet.WebPages" version="2.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.jQuery.Unobtrusive.Ajax" version="2.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.jQuery.Unobtrusive.Validation" version="2.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.Net.Http" version="2.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net40" />
+ <package id="Modernizr" version="2.5.3" targetFramework="net40" />
+ <package id="Newtonsoft.Json" version="4.5.8" targetFramework="net40" />
+ <package id="WebApiContrib.Formatting.Html" version="0.9.4" targetFramework="net40" />
+ <package id="WebGrease" version="1.1.0" targetFramework="net40" />
</packages>
View
74 src/WebApiContrib.Formatting.Html/Common/TaskHelpers.cs
@@ -1,74 +0,0 @@
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace WebApiContrib.Formatting.Html.Common
-{
- internal static class TaskHelpers
- {
- private static readonly Task _defaultCompleted = CreateCompleted();
-
-
- internal static Task RunSync(Action action, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (cancellationToken.IsCancellationRequested)
- return Canceled();
-
- try
- {
- action();
- return Completed();
- }
- catch (Exception e)
- {
- return Error(e);
- }
- }
-
-
- internal static Task Canceled()
- {
- return CancelCache<AsyncVoid>.Canceled;
- }
-
-
- internal static Task Completed()
- {
- return _defaultCompleted;
- }
-
-
- private static class CancelCache<TResult>
- {
- public static readonly Task<TResult> Canceled = CreateCancelledTask();
-
- private static Task<TResult> CreateCancelledTask()
- {
- var taskCompletionSource = new TaskCompletionSource<TResult>();
- taskCompletionSource.SetCanceled();
- return taskCompletionSource.Task;
- }
- }
-
-
- internal static Task Error(Exception exception)
- {
- var taskCompletionSource = new TaskCompletionSource<AsyncVoid>();
- taskCompletionSource.SetException(exception);
- return taskCompletionSource.Task;
- }
-
-
- internal static Task CreateCompleted()
- {
- var taskCompletionSource = new TaskCompletionSource<AsyncVoid>();
- taskCompletionSource.SetResult(default(AsyncVoid));
- return taskCompletionSource.Task;
- }
-
-
- private struct AsyncVoid
- {
- }
- }
-}
View
21 src/WebApiContrib.Formatting.Html/Configuration/GlobalViews.cs
@@ -1,21 +0,0 @@
-using System;
-using System.Collections.Generic;
-using WebApiContrib.Formatting.Html.Locators;
-using WebApiContrib.Formatting.Html.ViewParsers;
-
-namespace WebApiContrib.Formatting.Html.Configuration
-{
- public static class GlobalViews
- {
- static GlobalViews()
- {
- Views = new Dictionary<Type, string>();
- }
-
- public static IDictionary<Type, string> Views { get; private set; }
-
- public static IViewLocator DefaultViewLocator { get; set; }
-
- public static IViewParser DefaultViewParser { get; set; }
- }
-}
View
147 src/WebApiContrib.Formatting.Html/Formatters/HtmlMediaTypeViewFormatter.cs
@@ -1,147 +0,0 @@
-using System;
-using System.Configuration;
-using System.IO;
-using System.Net;
-using System.Net.Http;
-using System.Net.Http.Formatting;
-using System.Net.Http.Headers;
-using System.Text;
-using System.Threading.Tasks;
-using System.Linq;
-using WebApiContrib.Formatting.Html.Common;
-using WebApiContrib.Formatting.Html.Configuration;
-using WebApiContrib.Formatting.Html.Locators;
-using WebApiContrib.Formatting.Html.ViewParsers;
-
-namespace WebApiContrib.Formatting.Html.Formatters
-{
- public class HtmlMediaTypeViewFormatter : MediaTypeFormatter
- {
- private readonly string _siteRootPath;
- private readonly IViewLocator _viewLocator;
- private readonly IViewParser _viewParser;
-
- public HtmlMediaTypeViewFormatter(string siteRootPath = null, IViewLocator viewLocator = null, IViewParser viewParser = null)
- {
- SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/html"));
- SupportedMediaTypes.Add(new MediaTypeHeaderValue("application/xhtml"));
- SupportedMediaTypes.Add(new MediaTypeHeaderValue("application/xhtml+xml"));
-
- SupportedEncodings.Add(new UTF8Encoding(encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true));
- SupportedEncodings.Add(new UnicodeEncoding(bigEndian: false, byteOrderMark: true, throwOnInvalidBytes: true));
-
- _viewLocator = viewLocator;
- _viewParser = viewParser;
- _siteRootPath = siteRootPath;
- }
-
-
- public override bool CanWriteType(Type type)
- {
- return true;
- }
-
- public override bool CanReadType(Type type)
- {
- return false;
- }
-
- public override Task<object> ReadFromStreamAsync(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)
- {
- throw new NotSupportedException();
- }
-
- public override MediaTypeFormatter GetPerRequestFormatterInstance(Type type, HttpRequestMessage request, MediaTypeHeaderValue mediaType)
- {
- if (_viewLocator == null || _viewParser == null)
- {
- var config = request.GetConfiguration();
-
- if (config != null)
- {
- IViewLocator viewLocator = null;
- IViewParser viewParser = null;
-
- var resolver = config.DependencyResolver;
-
- if (_viewLocator == null)
- viewLocator = (IViewLocator) resolver.GetService(typeof (IViewLocator));
-
- if (_viewParser == null)
- viewParser = (IViewParser) resolver.GetService(typeof (IViewParser));
-
- return new HtmlMediaTypeViewFormatter(_siteRootPath, viewLocator, viewParser);
- }
- }
-
- return base.GetPerRequestFormatterInstance(type, request, mediaType);
- }
-
- public override Task WriteToStreamAsync(Type type, object value, Stream writeStream, HttpContent content, TransportContext transportContext)
- {
- return TaskHelpers.RunSync(() =>
- {
- var encoding = SelectCharacterEncoding(content.Headers);
-
- var parsedView = ParseView(type, value, encoding);
-
- writeStream.Write(parsedView, 0, parsedView.Length);
- writeStream.Flush();
- });
- }
-
- private byte[] ParseView(Type type, object model, Encoding encoding)
- {
- var view = model as IView ?? new View(GetViewName(model), model, type);
-
- var viewTemplate = ViewLocator.GetView(_siteRootPath, view);
-
- return ViewParser.ParseView(view, viewTemplate, encoding);
- }
-
- private IViewLocator ViewLocator
- {
- get
- {
- if (_viewLocator != null)
- return _viewLocator;
-
- if (GlobalViews.DefaultViewLocator != null)
- return GlobalViews.DefaultViewLocator;
-
- throw new ConfigurationErrorsException("No ViewLocator is specified");
- }
- }
-
- private IViewParser ViewParser
- {
- get
- {
- if (_viewParser != null)
- return _viewParser;
-
- if (GlobalViews.DefaultViewParser != null)
- return GlobalViews.DefaultViewParser;
-
- throw new ConfigurationErrorsException("No ViewParser is specified");
- }
- }
-
- private static string GetViewName(object model)
- {
- var modelType = model.GetType();
-
- var viewAttributes = modelType.GetCustomAttributes(typeof (ViewAttribute), true)
- .OfType<ViewAttribute>()
- .ToArray();
-
- if (viewAttributes.Any())
- return viewAttributes.First().ViewName;
-
- if (GlobalViews.Views.ContainsKey(modelType))
- return GlobalViews.Views[modelType];
-
- return modelType.Name;
- }
- }
-}
View
13 src/WebApiContrib.Formatting.Html/IView.cs
@@ -1,13 +0,0 @@
-using System;
-
-namespace WebApiContrib.Formatting.Html
-{
- public interface IView
- {
- object Model { get; }
-
- Type ModelType { get; }
-
- string ViewName { get; }
- }
-}
View
7 src/WebApiContrib.Formatting.Html/Locators/IViewLocator.cs
@@ -1,7 +0,0 @@
-namespace WebApiContrib.Formatting.Html.Locators
-{
- public interface IViewLocator
- {
- string GetView(string siteRootPath, IView view);
- }
-}
View
36 src/WebApiContrib.Formatting.Html/Properties/AssemblyInfo.cs
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("WebApiContrib.Formatting.Html")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("WebApiContrib.Formatting.Html")]
-[assembly: AssemblyCopyright("Copyright © 2012")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("99263f2c-5f64-494a-814f-bfb1743e6d66")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
View
24 src/WebApiContrib.Formatting.Html/View.cs
@@ -1,24 +0,0 @@
-using System;
-
-namespace WebApiContrib.Formatting.Html
-{
- public class View : IView
- {
- public View(string viewName, object model) : this(viewName, model, null)
- {
- }
-
- internal View(string viewName, object model, Type modelType)
- {
- Model = model;
- ViewName = viewName;
-
- if (modelType != null)
- ModelType = model.GetType();
- }
-
- public object Model { get; protected set; }
- public string ViewName { get; protected set; }
- public Type ModelType { get; protected set; }
- }
-}
View
19 src/WebApiContrib.Formatting.Html/ViewAttribute.cs
@@ -1,19 +0,0 @@
-using System;
-
-namespace WebApiContrib.Formatting.Html
-{
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited= true)]
- public class ViewAttribute : Attribute
- {
- public ViewAttribute(string viewName)
- {
- if (string.IsNullOrWhiteSpace(viewName))
- throw new ArgumentException("Argument viewName can't be null or empty", "viewName");
-
- ViewName = viewName;
- }
-
-
- public string ViewName { get; private set; }
- }
-}
View
9 src/WebApiContrib.Formatting.Html/ViewParsers/IViewParser.cs
@@ -1,9 +0,0 @@
-using System.Text;
-
-namespace WebApiContrib.Formatting.Html.ViewParsers
-{
- public interface IViewParser
- {
- byte[] ParseView(IView view, string viewTemplate, Encoding encoding);
- }
-}
View
78 src/WebApiContrib.Formatting.Html/WebApiContrib.Formatting.Html.csproj
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{1055BCC1-BBB1-45F2-8260-E00959A6AC89}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>WebApiContrib.Formatting.Html</RootNamespace>
- <AssemblyName>WebApiContrib.Formatting.Html</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
- <RestorePackages>true</RestorePackages>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Newtonsoft.Json">
- <HintPath>..\..\packages\Newtonsoft.Json.4.5.8\lib\net40\Newtonsoft.Json.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.configuration" />
- <Reference Include="System.Core" />
- <Reference Include="System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
- <HintPath>..\..\packages\Microsoft.Net.Http.2.0.20710.0\lib\net40\System.Net.Http.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
- <HintPath>..\..\packages\Microsoft.AspNet.WebApi.Client.4.0.20710.0\lib\net40\System.Net.Http.Formatting.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Http.WebRequest, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
- <HintPath>..\..\packages\Microsoft.Net.Http.2.0.20710.0\lib\net40\System.Net.Http.WebRequest.dll</HintPath>
- </Reference>
- <Reference Include="System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
- <HintPath>..\..\packages\Microsoft.AspNet.WebApi.Core.4.0.20710.0\lib\net40\System.Web.Http.dll</HintPath>
- </Reference>
- <Reference Include="Microsoft.CSharp" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Common\TaskHelpers.cs" />
- <Compile Include="Configuration\GlobalViews.cs" />
- <Compile Include="Formatters\HtmlMediaTypeViewFormatter.cs" />
- <Compile Include="IView.cs" />
- <Compile Include="Locators\IViewLocator.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="View.cs" />
- <Compile Include="ViewAttribute.cs" />
- <Compile Include="ViewParsers\IViewParser.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="packages.config" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
View
7 src/WebApiContrib.Formatting.Html/packages.config
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="Microsoft.AspNet.WebApi.Client" version="4.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.AspNet.WebApi.Core" version="4.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.Net.Http" version="2.0.20710.0" targetFramework="net40" />
- <package id="Newtonsoft.Json" version="4.5.8" targetFramework="net40" />
-</packages>
View
24 src/WebApiContrib.Formatting.Razor/WebApiContrib.Formatting.Razor.csproj
@@ -32,16 +32,34 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
+ <Reference Include="Newtonsoft.Json">
+ <HintPath>..\..\packages\Newtonsoft.Json.4.5.8\lib\net40\Newtonsoft.Json.dll</HintPath>
+ </Reference>
<Reference Include="RazorEngine">
<HintPath>..\..\packages\RazorEngine.3.0.8\lib\net40\RazorEngine.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
+ <Reference Include="System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <HintPath>..\..\packages\Microsoft.Net.Http.2.0.20710.0\lib\net40\System.Net.Http.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\..\packages\Microsoft.AspNet.WebApi.Client.4.0.20710.0\lib\net40\System.Net.Http.Formatting.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Net.Http.WebRequest, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <HintPath>..\..\packages\Microsoft.Net.Http.2.0.20710.0\lib\net40\System.Net.Http.WebRequest.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\..\packages\Microsoft.AspNet.WebApi.Core.4.0.20710.0\lib\net40\System.Web.Http.dll</HintPath>
+ </Reference>
<Reference Include="System.Web.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Private>True</Private>
<HintPath>..\..\packages\RazorEngine.3.0.8\lib\net40\System.Web.Razor.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
+ <Reference Include="WebApiContrib.Formatting.Html">
+ <HintPath>..\..\packages\WebApiContrib.Formatting.Html.0.9.4\lib\net40\WebApiContrib.Formatting.Html.dll</HintPath>
+ </Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="EmbeddedResolver.cs" />
@@ -51,12 +69,6 @@
<Compile Include="RazorViewParser.cs" />
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\WebApiContrib.Formatting.Html\WebApiContrib.Formatting.Html.csproj">
- <Project>{1055bcc1-bbb1-45f2-8260-e00959a6ac89}</Project>
- <Name>WebApiContrib.Formatting.Html</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
View
11 src/WebApiContrib.Formatting.Razor/packages.config
@@ -1,4 +1,9 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="RazorEngine" version="3.0.8" targetFramework="net40" />
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="Microsoft.AspNet.WebApi.Client" version="4.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.AspNet.WebApi.Core" version="4.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.Net.Http" version="2.0.20710.0" targetFramework="net40" />
+ <package id="Newtonsoft.Json" version="4.5.8" targetFramework="net40" />
+ <package id="RazorEngine" version="3.0.8" targetFramework="net40" />
+ <package id="WebApiContrib.Formatting.Html" version="0.9.4" targetFramework="net40" />
</packages>
View
9 test/WebApiContrib.Formatting.RazorViewEngine.Tests/WebApiContrib.RazorViewEngine.Tests.csproj
@@ -60,7 +60,7 @@
</Reference>
<Reference Include="System.Web" />
<Reference Include="System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
- <HintPath>..\..\packages\Microsoft.AspNet.WebApi.Core.4.0.20505.0\lib\net40\System.Web.Http.dll</HintPath>
+ <HintPath>..\..\packages\Microsoft.AspNet.WebApi.Core.4.0.20710.0\lib\net40\System.Web.Http.dll</HintPath>
</Reference>
<Reference Include="System.Web.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\packages\RazorEngine.3.0.8\lib\net40\System.Web.Razor.dll</HintPath>
@@ -69,6 +69,9 @@
<Reference Include="System.Xml.Linq" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Xml" />
+ <Reference Include="WebApiContrib.Formatting.Html">
+ <HintPath>..\..\packages\WebApiContrib.Formatting.Html.0.9.4\lib\net40\WebApiContrib.Formatting.Html.dll</HintPath>
+ </Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="ViewEngineTests.cs" />
@@ -81,10 +84,6 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\..\src\WebApiContrib.Formatting.Html\WebApiContrib.Formatting.Html.csproj">
- <Project>{1055BCC1-BBB1-45F2-8260-E00959A6AC89}</Project>
- <Name>WebApiContrib.Formatting.Html</Name>
- </ProjectReference>
<ProjectReference Include="..\..\src\WebApiContrib.Formatting.Razor\WebApiContrib.Formatting.Razor.csproj">
<Project>{8C15B0D3-9108-4EA3-AE19-3C9571266C47}</Project>
<Name>WebApiContrib.Formatting.Razor</Name>
View
20 test/WebApiContrib.Formatting.RazorViewEngine.Tests/packages.config
@@ -1,10 +1,12 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="Microsoft.AspNet.WebApi.Client" version="4.0.20710.0" targetFramework="net40" />
- <package id="Microsoft.Net.Http" version="2.0.20710.0" targetFramework="net40" />
- <package id="Newtonsoft.Json" version="4.5.8" targetFramework="net40" />
- <package id="NUnit" version="2.6.1" targetFramework="net40" />
- <package id="NUnit.Runners" version="2.6.0.12051" />
- <package id="RazorEngine" version="3.0.8" />
- <package id="Should" version="1.1.12.0" />
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="Microsoft.AspNet.WebApi.Client" version="4.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.AspNet.WebApi.Core" version="4.0.20710.0" targetFramework="net40" />
+ <package id="Microsoft.Net.Http" version="2.0.20710.0" targetFramework="net40" />
+ <package id="Newtonsoft.Json" version="4.5.8" targetFramework="net40" />
+ <package id="NUnit" version="2.6.1" targetFramework="net40" />
+ <package id="NUnit.Runners" version="2.6.0.12051" />
+ <package id="RazorEngine" version="3.0.8" />
+ <package id="Should" version="1.1.12.0" />
+ <package id="WebApiContrib.Formatting.Html" version="0.9.4" targetFramework="net40" />
</packages>
Please sign in to comment.
Something went wrong with that request. Please try again.