Skip to content

Commit 98e4fec

Browse files
committed
Fix warnings
1 parent a9c4ec0 commit 98e4fec

File tree

8 files changed

+104
-4
lines changed

8 files changed

+104
-4
lines changed

projects/endpoint-routing/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,4 @@
130130

131131
Use Parameter Transformer to control the creation of route token `[area]`, `[controller]` and `[action]`. In this example we use it on `[controller]` and `[action]`.
132132

133-
dotnet6
133+
dotnet8
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"activityBar.activeBackground": "#aa94f4",
4+
"activityBar.background": "#aa94f4",
5+
"activityBar.foreground": "#15202b",
6+
"activityBar.inactiveForeground": "#15202b99",
7+
"activityBarBadge.background": "#fce8e2",
8+
"activityBarBadge.foreground": "#15202b",
9+
"commandCenter.border": "#e7e7e799",
10+
"sash.hoverBorder": "#aa94f4",
11+
"statusBar.background": "#8566ef",
12+
"statusBar.debuggingBackground": "#d0ef66",
13+
"statusBar.debuggingForeground": "#15202b",
14+
"statusBar.foreground": "#e7e7e7",
15+
"statusBarItem.hoverBackground": "#aa94f4",
16+
"statusBarItem.remoteBackground": "#8566ef",
17+
"statusBarItem.remoteForeground": "#e7e7e7",
18+
"titleBar.activeBackground": "#8566ef",
19+
"titleBar.activeForeground": "#e7e7e7",
20+
"titleBar.inactiveBackground": "#8566ef99",
21+
"titleBar.inactiveForeground": "#e7e7e799"
22+
},
23+
"peacock.color": "#8566ef"
24+
}

projects/endpoint-routing/new-routing-11/Pages/about.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace PracticalAspNetCore
77
[Message(Content = "Hello world message from attribute")]
88
public class AboutModel : PageModel
99
{
10-
public async Task OnGetAsync()
10+
public void OnGet()
1111
{
1212

1313
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.002.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "new-routing-11", "new-routing-11.csproj", "{AA9F3970-577F-4ADB-AC5F-B9E7D441819D}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{AA9F3970-577F-4ADB-AC5F-B9E7D441819D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{AA9F3970-577F-4ADB-AC5F-B9E7D441819D}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{AA9F3970-577F-4ADB-AC5F-B9E7D441819D}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{AA9F3970-577F-4ADB-AC5F-B9E7D441819D}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {790B1FCA-227F-4E9A-8A06-C9E7696B0885}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"activityBar.activeBackground": "#c766b5",
4+
"activityBar.background": "#c766b5",
5+
"activityBar.foreground": "#15202b",
6+
"activityBar.inactiveForeground": "#15202b99",
7+
"activityBarBadge.background": "#bbcc73",
8+
"activityBarBadge.foreground": "#15202b",
9+
"commandCenter.border": "#e7e7e799",
10+
"sash.hoverBorder": "#c766b5",
11+
"statusBar.background": "#b743a2",
12+
"statusBar.debuggingBackground": "#43b758",
13+
"statusBar.debuggingForeground": "#15202b",
14+
"statusBar.foreground": "#e7e7e7",
15+
"statusBarItem.hoverBackground": "#c766b5",
16+
"statusBarItem.remoteBackground": "#b743a2",
17+
"statusBarItem.remoteForeground": "#e7e7e7",
18+
"titleBar.activeBackground": "#b743a2",
19+
"titleBar.activeForeground": "#e7e7e7",
20+
"titleBar.inactiveBackground": "#b743a299",
21+
"titleBar.inactiveForeground": "#e7e7e799"
22+
},
23+
"peacock.color": "#b743a2"
24+
}

projects/endpoint-routing/new-routing-12/Pages/about.cshtml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ public class AboutModel : PageModel
99
{
1010
public string Message { get; set; }
1111

12-
public async Task OnGetAsync()
12+
public void OnGet()
1313
{
1414
Message = HttpContext.Items["GreetingFromMiddleWare"] as string;
1515
}
1616

17-
public async Task OnPostAsync()
17+
public void OnPost()
1818
{
1919
Message = HttpContext.Items["GreetingFromMiddleWare"] as string;
2020
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.002.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "new-routing-12", "new-routing-12.csproj", "{CA42C8C6-20F5-4F11-BD41-64880CDC6164}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{CA42C8C6-20F5-4F11-BD41-64880CDC6164}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{CA42C8C6-20F5-4F11-BD41-64880CDC6164}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{CA42C8C6-20F5-4F11-BD41-64880CDC6164}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{CA42C8C6-20F5-4F11-BD41-64880CDC6164}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {F135872C-C9AD-4853-BB6D-E7F97B3E5671}
24+
EndGlobalSection
25+
EndGlobal

projects/exception-handler-middleware/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
* [Multiple IExceptionHandler](iexception-handler-2)
88

99
Implement multiple `IExceptionHandler` to handle ASP.NET Core exceptions.
10+
11+
dotnet8

0 commit comments

Comments
 (0)