Skip to content

Commit 8b175e4

Browse files
committed
add NuGet package for custom output cache provider
1 parent 83179da commit 8b175e4

4 files changed

Lines changed: 83 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory),Microsoft.Aspnet.OutputCache.sln))\tools\MicrosoftAspNetOutputCache.settings.targets" />
4+
<PropertyGroup>
5+
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
6+
<NuGetPackageId>$(MSBuildProjectName)</NuGetPackageId>
7+
<NuSpecFile>Microsoft.AspNet.OutputCache.CustomOutputCacheProvider.nuspec</NuSpecFile>
8+
</PropertyGroup>
9+
<ItemGroup>
10+
<NuGetContent Include="$(AssemblyName).dll">
11+
<Source>$(AssemblyPath)</Source>
12+
<Destination>lib\Net462</Destination>
13+
</NuGetContent>
14+
<NuGetContent Include="$(AssemblyName).xml">
15+
<Source>$(OutputPath)</Source>
16+
<Destination>lib\Net462</Destination>
17+
</NuGetContent>
18+
<NuGetContent Include="$(AssemblyName).pdb" Condition="'$(NuGetPackSymbols)' == 'true'">
19+
<Source>$(OutputPath)</Source>
20+
<Destination>lib\Net462</Destination>
21+
</NuGetContent>
22+
<NuGetContentProject Include="$(RepositoryRoot)\test\CustomOutputCacheProvider\$(MSBuildProjectName).csproj" Condition="'$(NuGetPackSymbols)' == 'true'" />
23+
<NuGetContent Include="Content\Net462\*">
24+
<Destination>content\Net462</Destination>
25+
</NuGetContent>
26+
</ItemGroup>
27+
<Import Project="$(RepositoryRoot)Tools\NuGetProj.targets"/>
28+
</Project>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
3+
<metadata>
4+
<id>$NuGetPackageId$</id>
5+
<version>$NuGetPackageVersion$</version>
6+
<authors>Microsoft</authors>
7+
<owners>Microsoft</owners>
8+
<copyright>&#169; Microsoft Corporation. All rights reserved.</copyright>
9+
<dependencies>
10+
<dependency id="Microsoft.AspNet.OutputCache.OutputCacheModuleAsync" version="$OutputCacheModuleAsyncNuGetPackageVersion$" />
11+
</dependencies>
12+
<title>Microsoft ASP.NET Custom OutputCache Provider</title>
13+
<description>Async version Custom OutputCache Provider</description>
14+
<summary>Async version CustomOutputCache Provider</summary>
15+
<language>en-US</language>
16+
<projectUrl>http://www.asp.net/</projectUrl>
17+
<licenseUrl>http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm</licenseUrl>
18+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
19+
<tags>ASP.NET Async Custom OutputCache Provider</tags>
20+
</metadata>
21+
</package>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
3+
<system.web>
4+
<caching>
5+
<outputCache xdt:Transform="Remove">
6+
</outputCache>
7+
</caching>
8+
</system.web>
9+
<system.web>
10+
<caching xdt:Transform="InsertIfMissing">
11+
<outputCache defaultProvider="CustomOutputCacheProvider" xdt:Transform="InsertIfMissing">
12+
<providers>
13+
<add name="CustomOutputCacheProvider"
14+
type="Microsoft.AspNet.OutputCache.CustomOutputCacheProvider.CustomOutputCacheProvider, Microsoft.AspNet.OutputCache.CustomOutputCacheProvider"
15+
xdt:Transform="InsertIfMissing" />
16+
</providers>
17+
</outputCache>
18+
</caching>
19+
</system.web>
20+
</configuration>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
3+
<system.web>
4+
<caching>
5+
<outputCache defaultProvider="CustomOutputCacheProvider" xdt:Transform="Remove">
6+
<providers>
7+
<add name="CustomOutputCacheProvider"
8+
type="Microsoft.AspNet.OutputCache.CustomOutputCacheProvider.CustomOutputCacheProvider, Microsoft.AspNet.OutputCache.CustomOutputCacheProvider"
9+
xdt:Transform="Remove" xdt:Locator="Match(type)" />
10+
</providers>
11+
</outputCache>
12+
</caching>
13+
</system.web>
14+
</configuration>

0 commit comments

Comments
 (0)