diff --git a/.github/workflows/code-style.yaml b/.github/workflows/code-style.yaml index 77b7cc3..7472b3c 100644 --- a/.github/workflows/code-style.yaml +++ b/.github/workflows/code-style.yaml @@ -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" diff --git a/test.exe_20230508_093007.nettrace b/test.exe_20230508_093007.nettrace new file mode 100644 index 0000000..3c069a1 Binary files /dev/null and b/test.exe_20230508_093007.nettrace differ diff --git a/test/Program.cs b/test/Program.cs index 7f3a9b3..e490c07 100644 --- a/test/Program.cs +++ b/test/Program.cs @@ -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; }