Skip to content

Commit bf5f6a4

Browse files
authored
Adjust build output (#307)
1 parent eb19fcb commit bf5f6a4

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,29 +61,21 @@ jobs:
6161

6262
- name: Run Unit Tests (.NET Framework)
6363
if: ${{ matrix.name == 'Windows' }}
64-
run: dotnet test --logger trx --no-restore --no-build --framework net472 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net472.binlog"
64+
run: dotnet test --no-restore --no-build --framework net472 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net472.binlog"
6565

6666
- name: Run Unit Tests (.NET 6)
6767
if: ${{ matrix.name != 'MacOS' }}
68-
run: dotnet test --logger trx --no-restore --no-build --framework net6.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net6.0.binlog"
68+
run: dotnet test --no-restore --no-build --framework net6.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net6.0.binlog"
6969

7070
- name: Run Unit Tests (.NET 8)
71-
run: dotnet test --logger trx --no-restore --no-build --framework net8.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net8.0.binlog"
71+
run: dotnet test --no-restore --no-build --framework net8.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net8.0.binlog"
7272

7373
- name: Run Unit Tests (.NET 9)
74-
run: dotnet test --logger trx --no-restore --no-build --framework net9.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net9.0.binlog"
75-
76-
- name: Upload Test Results
77-
uses: actions/upload-artifact@v4
78-
if: success() || failure()
79-
with:
80-
name: test-results-${{ matrix.name }}
81-
path: '**/TestResults/*.trx'
82-
if-no-files-found: error
74+
run: dotnet test --no-restore --no-build --framework net9.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net9.0.binlog"
8375

8476
- name: Upload Artifacts
8577
uses: actions/upload-artifact@v4
86-
if: success() || failure()
78+
if: success()
8779
with:
8880
name: ${{ env.ArtifactsDirectoryName }}-${{ matrix.name }}
8981
path: ${{ env.ArtifactsDirectoryName }}

.github/workflows/Official.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747

4848
- name: Upload Artifacts
4949
uses: actions/upload-artifact@v4
50-
if: success() || failure()
50+
if: success()
5151
with:
5252
name: ${{ env.ArtifactsDirectoryName }}
5353
path: ${{ env.ArtifactsDirectoryName }}

Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@
1111
<Nullable>enable</Nullable>
1212
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
1313
<SignAssembly>true</SignAssembly>
14+
<VsTestUseMSBuildOutput>true</VsTestUseMSBuildOutput>
15+
<_MSBUILDTLENABLED>1</_MSBUILDTLENABLED>
1416
</PropertyGroup>
1517
</Project>

Directory.Build.rsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/ConsoleLoggerParameters:Verbosity=Minimal;Summary;ForceNoAlign
33
/MaxCPUCount
44
/NodeReuse:false
5+
/TerminalLogger:off

Directory.Solution.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
<PropertyGroup>
3+
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
4+
<VsTestUseMSBuildOutput>true</VsTestUseMSBuildOutput>
5+
<_MSBUILDTLENABLED>1</_MSBUILDTLENABLED>
6+
</PropertyGroup>
7+
</Project>

MSBuildProjectCreator.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{8339FD67
1515
Directory.Build.props = Directory.Build.props
1616
Directory.Build.rsp = Directory.Build.rsp
1717
Directory.Packages.props = Directory.Packages.props
18+
Directory.Solution.props = Directory.Solution.props
1819
global.json = global.json
1920
key.snk = key.snk
2021
LICENSE = LICENSE

0 commit comments

Comments
 (0)