Skip to content

Commit

Permalink
Update to .NET 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrainger committed Nov 14, 2023
1 parent 1739173 commit 3907b30
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

- uses: actions/checkout@v3

- name: Set up .NET 7.0
- name: Set up .NET 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

- name: Build
run: |
Expand Down
2 changes: 1 addition & 1 deletion Controllers/BadgeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public async Task<ActionResult> GetBadgeAsync (string id, string v)

var content = DrawBadge (package);

HttpContext.Response.Headers.Add ("Cache-Control", "max-age=3600");
HttpContext.Response.Headers["Cache-Control"] = "max-age=3600";
var r = Content(content);
r.ContentType = "image/svg+xml";
return r;
Expand Down
4 changes: 2 additions & 2 deletions Data/PackageDependents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class PackageDependentsCache : DataCache<string, PackageDependents>
{
public PackageDependentsCache () : base (TimeSpan.FromMinutes (20)) { }

protected override async Task<PackageDependents> GetValueAsync (string lowerId, HttpClient httpClient, CancellationToken token)
protected override Task<PackageDependents> GetValueAsync (string lowerId, HttpClient httpClient, CancellationToken token)
{
//
// ISSUE #155: Diabled due to database corruption.
Expand All @@ -48,7 +48,7 @@ protected override async Task<PackageDependents> GetValueAsync (string lowerId,
//catch (Exception ex) {
// Console.WriteLine (ex);
//}
return deps;
return Task.FromResult(deps);
}
}
}
Expand Down
20 changes: 10 additions & 10 deletions FuGetGallery.csproj
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<LangVersion>9.0</LangVersion>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>11.0</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ICSharpCode.Decompiler" Version="3.2.0.3856" />
<PackageReference Include="Mono.Cecil" Version="0.10.4" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="7.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NGraphics" Version="0.6.0-beta1" />
<PackageReference Include="NuGet.Versioning" Version="5.3.0" />
<PackageReference Include="sqlite-net-pcl" Version="1.6.258-beta" />
<PackageReference Include="System.CodeDom" Version="7.0.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="7.0.0" />
<PackageReference Include="sqlite-net-pcl" Version="1.8.116" />
<PackageReference Include="System.CodeDom" Version="8.0.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0" />
<PackageReference Include="System.IO.Pipes.AccessControl" Version="5.0.0" />
<PackageReference Include="System.IO.Ports" Version="7.0.0" />
<PackageReference Include="System.Security.Permissions" Version="7.0.0" />
<PackageReference Include="System.Threading.AccessControl" Version="7.0.0" />
<PackageReference Include="System.IO.Ports" Version="8.0.0" />
<PackageReference Include="System.Security.Permissions" Version="8.0.0" />
<PackageReference Include="System.Threading.AccessControl" Version="8.0.0" />
<PackageReference Include="ListDiff" Version="1.0.7" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit 3907b30

Please sign in to comment.