Skip to content

Commit

Permalink
build: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
marklechtermann committed May 8, 2023
1 parent 14d6eaf commit a2826b9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 15 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/code-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,17 @@ jobs:
- name: Restore dependencies
run: dotnet restore

- name: Check dotnet version
run: dotnet --version
- name: Install trace
run: dotnet tool install --global dotnet-trace

- name: Test version
run: dotnet run --project .\test\test.csproj

- name: Test version
run: echo $env:PATH

- name: Test version
run: gcm dotnet

- name: dir
run: 'dir "c:\Program Files\dotnet"'
- name: run trace
run: dotnet-trace collect -- dotnet format --verify-no-changes

- name: Check code format (editorconfig)
run: dotnet format --verify-no-changes

- name: Save artifact
uses: actions/upload-artifact@v2
with:
name: trace
path: "*.nettrace"
Binary file added test.exe_20230508_093007.nettrace
Binary file not shown.
16 changes: 14 additions & 2 deletions test/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@ internal class Program
{
private static int Main(string[] args)
{
TryGetDotNetCliVersion(out string a);
Console.WriteLine(a);

try
{
throw new ExecutionEngineException();
}
catch
{
Console.WriteLine("Huch!");
}



// TryGetDotNetCliVersion(out string a);
// Console.WriteLine(a);

return 0;
}
Expand Down

0 comments on commit a2826b9

Please sign in to comment.