-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
XuanThuLab
committed
Aug 8, 2020
1 parent
a4a4257
commit 87d3f59
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
|
||
namespace CS001_HelloWorld { | ||
class Program // Đây là một ghi chú 1 dòng, đặt ngay sau lệnh C# | ||
{ | ||
static void Main (string[] args) { | ||
// Đây là một dòng ghi chú 1 dòng riêng biệt - dòng này không ảnh hưởng đến code | ||
|
||
Console.WriteLine ("Xin chào C# NET CORE!"); | ||
} | ||
|
||
/// <summary> | ||
/// Tính tổng hai số nguyên | ||
/// </summary> | ||
/// <param name="a">số thứ nhất</param> | ||
/// <param name="b">số thứ hai</param> | ||
/// <returns>giá trị a + b</returns> | ||
static int TongHaiSo (int a, int b) { | ||
return a + b; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
https://xuanthulab.net/gioi-thieu-c-va-viet-chuong-trinh-cs-dau-tien.html | ||
|
||
## Create App Console | ||
``` | ||
dotnet new console | ||
``` | ||
|
||
## Create .gitignore for C# - Net Core | ||
``` | ||
dotnet new gitignore | ||
``` | ||
|
||
## Build, Publush, Run | ||
``` | ||
dotnet buid | ||
dotnet publish | ||
dotnet run | ||
``` |