Skip to content

Commit 8f790a1

Browse files
authored
Update the LibMan sample app (#35497)
1 parent 4490851 commit 8f790a1

3 files changed

Lines changed: 9 additions & 18 deletions

File tree

aspnetcore/client-side/libman/samples/LibManSample/LibManSample.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.1</TargetFramework>
5-
<TypeScriptToolsVersion>3.0</TypeScriptToolsVersion>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.AspNetCore.App" />
109
<!-- <snippet_RestoreOnBuildPackage> -->
11-
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="1.0.113" />
10+
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="3.0.71" />
1211
<!-- </snippet_RestoreOnBuildPackage> -->
1312
</ItemGroup>
1413

aspnetcore/client-side/libman/samples/LibManSample/Startup.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@
66
using Microsoft.AspNetCore.Hosting;
77
using Microsoft.AspNetCore.Http;
88
using Microsoft.Extensions.DependencyInjection;
9+
using Microsoft.Extensions.Hosting;
910

1011
namespace LibManSample
1112
{
1213
public class Startup
1314
{
1415
// This method gets called by the runtime. Use this method to add services to the container.
1516
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
16-
public void ConfigureServices(IServiceCollection services)
17+
public void ConfigureServices()
1718
{
1819
}
1920

2021
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
21-
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
22+
public void Configure(IApplicationBuilder app, IHostEnvironment env)
2223
{
2324
if (env.IsDevelopment())
2425
{

aspnetcore/client-side/libman/samples/LibManSample/libman.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"defaultProvider": "cdnjs",
44
"libraries": [
55
{
6-
"library": "jquery@3.3.1",
6+
"library": "jquery@3.7.1",
77
"files": [
88
"jquery.min.js",
99
"jquery.js",
@@ -13,17 +13,8 @@
1313
},
1414
{
1515
"provider": "unpkg",
16-
"library": "bootstrap@4.1.3",
16+
"library": "bootstrap@5.3.6",
1717
"destination": "wwwroot/lib/bootstrap/"
18-
},
19-
{
20-
"provider": "filesystem",
21-
"library": "C:\\temp\\lodash\\",
22-
"files": [
23-
"lodash.js",
24-
"lodash.min.js"
25-
],
26-
"destination": "wwwroot/lib/lodash/"
2718
}
2819
]
29-
}
20+
}

0 commit comments

Comments
 (0)