Skip to content

Commit 3fcd02a

Browse files
authored
Merge pull request #3 from githubabcs-devops/feature/add-packages
Add package references for Microsoft.Data.SqlClient and System.Text.Json
2 parents 7979d53 + 0ff487a commit 3fcd02a

File tree

5 files changed

+46
-1
lines changed

5 files changed

+46
-1
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ updates:
1616
schedule:
1717
interval: weekly
1818
open-pull-requests-limit: 15
19+
- package-ecosystem: "github-actions"
20+
directory: "/"
21+
schedule:
22+
# Check for updates to GitHub Actions every weekday
23+
interval: "daily"

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
# Prefix the list here with "+" to use these queries and those in the config file.
6868

6969
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
70-
# queries: security-extended,security-and-quality
70+
queries: security-and-quality
7171

7272
# If the analyze step fails for one of the languages you are analyzing with
7373
# "We were unable to automatically build your code", modify the matrix above

gh-aspnet-webapp-01.sln

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}"
6+
EndProject
7+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "webapp01", "src\webapp01\webapp01.csproj", "{F2764B25-696E-F627-F6C5-7B44C866BCFE}"
8+
EndProject
9+
Global
10+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
11+
Debug|Any CPU = Debug|Any CPU
12+
Release|Any CPU = Release|Any CPU
13+
EndGlobalSection
14+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15+
{F2764B25-696E-F627-F6C5-7B44C866BCFE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{F2764B25-696E-F627-F6C5-7B44C866BCFE}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{F2764B25-696E-F627-F6C5-7B44C866BCFE}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{F2764B25-696E-F627-F6C5-7B44C866BCFE}.Release|Any CPU.Build.0 = Release|Any CPU
19+
EndGlobalSection
20+
GlobalSection(SolutionProperties) = preSolution
21+
HideSolutionNode = FALSE
22+
EndGlobalSection
23+
GlobalSection(NestedProjects) = preSolution
24+
{F2764B25-696E-F627-F6C5-7B44C866BCFE} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B}
25+
EndGlobalSection
26+
GlobalSection(ExtensibilityGlobals) = postSolution
27+
SolutionGuid = {7851C106-5284-4807-BCEF-4B450A66CF69}
28+
EndGlobalSection
29+
EndGlobal

src/webapp01/Pages/Index.cshtml.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ public class IndexModel : PageModel
1010
public IndexModel(ILogger<IndexModel> logger)
1111
{
1212
_logger = logger;
13+
14+
string drive = Request.Query.ContainsKey("drive") ? Request.Query["drive"] : "C";
15+
16+
var str = $"/C fsutil volume diskfree {drive}:";
17+
18+
_logger.LogInformation($"Command str: {str}");
1319
}
1420

1521
public void OnGet()

src/webapp01/webapp01.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.0.2" />
11+
<PackageReference Include="System.Text.Json" Version="8.0.4" />
12+
</ItemGroup>
13+
914
</Project>

0 commit comments

Comments
 (0)