Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
image: Visual Studio 2022
version: 1.0.{build}

install:
- choco install dotnet-10.0-sdk

build_script:
- dotnet restore -v quiet
- ps: dotnet build /p:configuration=Release /p:Version=$($env:appveyor_build_version)
Expand Down
11 changes: 5 additions & 6 deletions sample/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using WebEssentials.AspNetCore.OutputCaching;
using Microsoft.Net.Http.Headers;
using Microsoft.AspNetCore.Http.Internal;
using System.Collections.Generic;
using Microsoft.Extensions.Primitives;

Expand Down Expand Up @@ -54,13 +53,13 @@ public IActionResult InvalidateQueryCache()
{
var queryString = new Dictionary<string, StringValues>();
queryString.Add("foo", new StringValues("1"));
var key = _outputCacheKeysProvider.GetRequestCacheKey(HttpContext,
new OutputCacheProfile() {
Duration = 600,
VaryByParam = "foo",
var key = _outputCacheKeysProvider.GetRequestCacheKey(HttpContext,
new OutputCacheProfile() {
Duration = 600,
VaryByParam = "foo",
VaryByHeader = null,
VaryByCustom = null
},
},
System.Net.WebRequestMethods.Http.Get,
Url.Action("Query", "Home"),
new QueryCollection(queryString)
Expand Down
7 changes: 2 additions & 5 deletions sample/Sample.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.9" />
<PackageReference Include="WebMarkupMin.AspNetCore2">
<Version>2.4.2</Version>
</PackageReference>
<PackageReference Include="WebMarkupMin.AspNetCoreLatest" Version="2.20.0" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 3 additions & 5 deletions sample/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System.Collections.Generic;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using WebEssentials.AspNetCore.OutputCaching;
using WebMarkupMin.AspNetCore2;
using WebMarkupMin.AspNetCoreLatest;

namespace Sample
{
Expand All @@ -13,7 +12,7 @@ public class Startup
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.AddMvc(options => options.EnableEndpointRouting = false);
services.AddOutputCaching(options =>
{
options.Profiles["default"] = new OutputCacheProfile
Expand All @@ -37,7 +36,6 @@ public void ConfigureServices(IServiceCollection services)
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app.UseBrowserLink();
app.UseDeveloperExceptionPage();

app.UseOutputCaching();
Expand Down
5 changes: 3 additions & 2 deletions src/WebEssentials.AspNetCore.OutputCaching.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net8.0;net9.0;net10.0</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageTags>asp.net, performance, speed, cache, caching</PackageTags>
<Version>1.0.0</Version>
Expand All @@ -22,7 +22,8 @@
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.3.9" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' != 'netstandard2.0'">
Expand Down