Skip to content

Commit e970579

Browse files
author
AI Assistant
committed
feat: hello world
1 parent 795ceb1 commit e970579

File tree

4 files changed

+65
-0
lines changed

4 files changed

+65
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
# lab_vs-code-copilot_csharp-ask-bot
22
Demo laboratory for VSCode Copilot course CSharp edition
33

4+
## Dev workflow
5+
6+
```bash
7+
# Clone repository
8+
git clone https://github.com/AiCodeAcademy/lab_vs-code-copilot_csharp-ask-bot.git
9+
cd lab_vs-code-copilot_csharp-ask-bot
10+
# Open in VSCode
11+
code .
12+
# Open terminal
13+
# Compile C# code
14+
dotnet build ./src/ask-bot
15+
# Run C# code
16+
dotnet run --project ./src/ask-bot
17+
```
18+
419
## AskBot CLI
520

621
A CLI educational tool that queries public APIs to provide basic information about the user's IP and associated services: location, weather, currency, time, and sun.

src/ask-bot.sln

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ask-bot", "ask-bot\ask-bot.csproj", "{1665FE2D-AD1F-6D9D-C7EE-B07BEA16B8FC}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{1665FE2D-AD1F-6D9D-C7EE-B07BEA16B8FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{1665FE2D-AD1F-6D9D-C7EE-B07BEA16B8FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{1665FE2D-AD1F-6D9D-C7EE-B07BEA16B8FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{1665FE2D-AD1F-6D9D-C7EE-B07BEA16B8FC}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {CD761A4E-8D26-48BA-B1AB-9DB53ACD1D30}
23+
EndGlobalSection
24+
EndGlobal

src/ask-bot/Program.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
3+
class Program
4+
{
5+
static void Main(string[] args)
6+
{
7+
if (args.Length > 0)
8+
{
9+
Console.WriteLine($"Hello, {args[0]}!");
10+
}
11+
else
12+
{
13+
Console.WriteLine("Hello, World!");
14+
}
15+
}
16+
}

src/ask-bot/ask-bot.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net9.0</TargetFramework>
6+
<RootNamespace>ask-bot</RootNamespace>
7+
<AssemblyName>ask-bot</AssemblyName>
8+
</PropertyGroup>
9+
10+
</Project>

0 commit comments

Comments
 (0)