-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spruce up the c-sharp template and bump to .NET 8
- Loading branch information
1 parent
0529a95
commit 9032854
Showing
10 changed files
with
45 additions
and
46 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.vscode | ||
localstack/data | ||
.mypy_cache | ||
target | ||
target |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
bin | ||
obj | ||
obj |
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
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 |
---|---|---|
@@ -1,19 +1,18 @@ | ||
using Xunit; | ||
|
||
namespace Check.Tests | ||
namespace Check.Tests; | ||
|
||
public class GeneratorTests | ||
{ | ||
public class GeneratorTests | ||
[Fact] | ||
public void GetGreeting_ReturnsCorrectGreeting() | ||
{ | ||
[Fact] | ||
public void GetGreeting_ReturnsCorrectGreeting() | ||
{ | ||
Assert.Equal("Hello", Generator.GetGreeting()); | ||
} | ||
Assert.Equal("Hello", Generator.GetGreeting()); | ||
} | ||
|
||
[Fact] | ||
public void GetName_ReturnsCorrectName() | ||
{ | ||
Assert.Equal("World", Generator.GetName()); | ||
} | ||
[Fact] | ||
public void GetName_ReturnsCorrectName() | ||
{ | ||
Assert.Equal("World", Generator.GetName()); | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
namespace Check | ||
namespace Check; | ||
|
||
public static class Generator | ||
{ | ||
public static class Generator | ||
public static string GetGreeting() | ||
{ | ||
public static string GetGreeting() | ||
{ | ||
return "Hello"; | ||
} | ||
return "Hello"; | ||
} | ||
|
||
public static string GetName() | ||
{ | ||
return "World"; | ||
} | ||
public static string GetName() | ||
{ | ||
return "World"; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
using System; | ||
|
||
namespace Check | ||
namespace Check; | ||
|
||
public class Program | ||
{ | ||
class Program | ||
public static void Main(string[] args) | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
Console.WriteLine($"{Generator.GetGreeting()} {Generator.GetName()}"); | ||
} | ||
Console.WriteLine($"{Generator.GetGreeting()} {Generator.GetName()}"); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
init: | ||
dotnet restore; | ||
dotnet build | ||
|
||
verify: | ||
dotnet test | ||
|
||
.PHONY: init verify | ||
.PHONY: init verify |
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# C# Project | ||
|
||
## Tech Stack | ||
- .NET 7 | ||
- C# 11 | ||
|
||
- .NET 8 | ||
- C# 12 | ||
- xUnit | ||
|
||
## Common Commands | ||
|
||
- `make init` | ||
- build the project | ||
- build the project | ||
|
||
- `make verify` | ||
- run tests | ||
- run tests |
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,6 @@ | ||
{ | ||
"sdk": { | ||
"version": "8.0.403", | ||
"rollForward": "latestMajor" | ||
} | ||
} |