Skip to content

Commit 4787918

Browse files
committed
add NuGet package for SQL provider
1 parent a2e8883 commit 4787918

16 files changed

Lines changed: 111 additions & 26 deletions

Microsoft.AspNet.OutputCache.SQLOutputCacheAsyncProvider/packages.config

Lines changed: 0 additions & 4 deletions
This file was deleted.

Microsoft.AspNet.OutputCache.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AspNet.OutputCach
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AspNet.OutputCache.CustomOutputCacheProvider", "test\CustomOutputCacheProvider\Microsoft.AspNet.OutputCache.CustomOutputCacheProvider.csproj", "{A8F3E399-BCAF-4F3E-BC16-5CA98A779916}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AspNet.OutputCache.SQLAsyncOutputCacheProvider", "Microsoft.AspNet.OutputCache.SQLOutputCacheAsyncProvider\Microsoft.AspNet.OutputCache.SQLAsyncOutputCacheProvider.csproj", "{062FD141-4E51-4943-8C69-385DDE3D2792}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.AspNet.OutputCache.SQLAsyncOutputCacheProvider", "src\SQLOutputCacheAsyncProvider\Microsoft.AspNet.OutputCache.SQLAsyncOutputCacheProvider.csproj", "{062FD141-4E51-4943-8C69-385DDE3D2792}"
1111
EndProject
1212
Global
1313
GlobalSection(SolutionConfigurationPlatforms) = preSolution

MicrosoftAspNetOutputCache.msbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<ItemGroup>
55
<AssemblyProject Include="src\OutputCacheModuleAsync\Microsoft.AspNet.OutputCache.OutputCacheModuleAsync.csproj" />
6+
<AssemblyProject Include="src\SQLOutputCacheAsyncProvider\Microsoft.AspNet.OutputCache.SQLAsyncOutputCacheProvider.csproj" />
67
<AssemblyProject Include="test\CustomOutputCacheProvider\Microsoft.AspNet.OutputCache.CustomOutputCacheProvider.csproj" />
78
</ItemGroup>
89
<ItemGroup>

src/OutputCacheModuleAsync/Microsoft.AspNet.OutputCache.OutputCacheModuleAsync.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<DefineConstants>DEBUG;TRACE</DefineConstants>
2828
<ErrorReport>prompt</ErrorReport>
2929
<WarningLevel>4</WarningLevel>
30+
<DocumentationFile>..\..\bin\Debug\Microsoft.AspNet.OutputCache.OutputCacheModuleAsync.xml</DocumentationFile>
3031
</PropertyGroup>
3132
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3233
<DebugType>pdbonly</DebugType>

Microsoft.AspNet.OutputCache.SQLOutputCacheAsyncProvider/BinarySerializer.cs renamed to src/SQLOutputCacheAsyncProvider/BinarySerializer.cs

File renamed without changes.

Microsoft.AspNet.OutputCache.SQLOutputCacheAsyncProvider/Microsoft.AspNet.OutputCache.SQLAsyncOutputCacheProvider.csproj renamed to src/SQLOutputCacheAsyncProvider/Microsoft.AspNet.OutputCache.SQLAsyncOutputCacheProvider.csproj

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" />
4-
<Import Project="..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props" Condition="Exists('..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props')" />
53
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
64
<PropertyGroup>
75
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -29,10 +27,11 @@
2927
<DebugSymbols>true</DebugSymbols>
3028
<DebugType>full</DebugType>
3129
<Optimize>false</Optimize>
32-
<OutputPath>bin\</OutputPath>
30+
<OutputPath>..\..\bin\Debug\</OutputPath>
3331
<DefineConstants>DEBUG;TRACE</DefineConstants>
3432
<ErrorReport>prompt</ErrorReport>
3533
<WarningLevel>4</WarningLevel>
34+
<DocumentationFile>..\..\bin\Debug\Microsoft.AspNet.OutputCache.SQLAsyncOutputCacheProvider.XML</DocumentationFile>
3635
</PropertyGroup>
3736
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3837
<DebugType>pdbonly</DebugType>
@@ -42,32 +41,28 @@
4241
<ErrorReport>prompt</ErrorReport>
4342
<WarningLevel>4</WarningLevel>
4443
</PropertyGroup>
45-
<ItemGroup>
46-
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
47-
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
48-
<Private>True</Private>
49-
</Reference>
50-
<Reference Include="System.Data" />
51-
<Reference Include="System.Runtime.Caching" />
52-
<Reference Include="System" />
53-
<Reference Include="System.Web" />
54-
<Reference Include="System.Configuration" />
55-
</ItemGroup>
5644
<ItemGroup>
5745
<Compile Include="BinarySerializer.cs" />
5846
<Compile Include="SQLAsyncOutputCacheProvider.cs" />
5947
<Compile Include="Properties\AssemblyInfo.cs" />
6048
<Compile Include="SQLHelper.cs" />
6149
</ItemGroup>
6250
<ItemGroup>
63-
<Content Include="packages.config" />
64-
</ItemGroup>
65-
<ItemGroup>
66-
<ProjectReference Include="..\src\OutputCacheModuleAsync\Microsoft.AspNet.OutputCache.OutputCacheModuleAsync.csproj">
51+
<ProjectReference Include="..\OutputCacheModuleAsync\Microsoft.AspNet.OutputCache.OutputCacheModuleAsync.csproj">
6752
<Project>{3b446e33-7b1c-4a32-aeb8-92dc6ce94f77}</Project>
6853
<Name>Microsoft.AspNet.OutputCache.OutputCacheModuleAsync</Name>
6954
</ProjectReference>
7055
</ItemGroup>
56+
<ItemGroup>
57+
<Content Include="packages.config" />
58+
</ItemGroup>
59+
<ItemGroup>
60+
<Reference Include="System" />
61+
<Reference Include="System.Configuration" />
62+
<Reference Include="System.Data" />
63+
<Reference Include="System.Runtime.Caching" />
64+
<Reference Include="System.Web" />
65+
</ItemGroup>
7166
<PropertyGroup>
7267
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
7368
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
@@ -97,8 +92,10 @@
9792
<PropertyGroup>
9893
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
9994
</PropertyGroup>
100-
<Error Condition="!Exists('..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props'))" />
101-
<Error Condition="!Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props'))" />
95+
<Error Condition="!Exists('..\..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props'))" />
96+
<Error Condition="!Exists('..\..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props'))" />
97+
<Error Condition="!Exists('..\..\packages\Microsoft.Net.Compilers.2.1.0\build\Microsoft.Net.Compilers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.Net.Compilers.2.1.0\build\Microsoft.Net.Compilers.props'))" />
98+
<Error Condition="!Exists('..\..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props'))" />
10299
</Target>
103100
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
104101
Other similar extension points exist, see Microsoft.Common.targets.

Microsoft.AspNet.OutputCache.SQLOutputCacheAsyncProvider/Properties/AssemblyInfo.cs renamed to src/SQLOutputCacheAsyncProvider/Properties/AssemblyInfo.cs

File renamed without changes.

Microsoft.AspNet.OutputCache.SQLOutputCacheAsyncProvider/SQLAsyncOutputCacheProvider.cs renamed to src/SQLOutputCacheAsyncProvider/SQLAsyncOutputCacheProvider.cs

File renamed without changes.

Microsoft.AspNet.OutputCache.SQLOutputCacheAsyncProvider/SQLHelper.cs renamed to src/SQLOutputCacheAsyncProvider/SQLHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
namespace Microsoft.AspNet.OutputCache.SQLAsyncOutputCacheProvider {
22
using System;
3-
using System.Data.SqlClient;
43
using System.Threading.Tasks;
54
using System.Collections.Specialized;
65
using System.Configuration;
6+
using System.Data.SqlClient;
77

88
class SQLHelper {
99
public ConnectionStringSettings ConnectionStringInfo { get; set; }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net462" developmentDependency="true" />
4+
</packages>

0 commit comments

Comments
 (0)