forked from microsoft/msquic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update QuicTrace app to .NET 6 and QuicTraceLib to newest SDK (micros…
…oft#2123) * Update QuicTrace app to .NET 6, Publish single file versions of app * Run on windows 2022 * Install .NET 6 RC 2 * Fix spacing * Another runtime attempt * Revert updates, fix build * Remove use sdk * Update project to rc1 wpa dependencies * 1 more version update * Remove single file exe
- Loading branch information
1 parent
61432fb
commit c1bd30b
Showing
10 changed files
with
96 additions
and
42 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
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,58 @@ | ||
<# | ||
.SYNOPSIS | ||
.EXAMPLE | ||
public-quictrace.ps1 | ||
#> | ||
|
||
Set-StrictMode -Version 'Latest' | ||
$PSDefaultParameterValues['*:ErrorAction'] = 'Stop' | ||
|
||
$RIDs = @("win-x64", "linux-x64", "osx-x64") | ||
|
||
# Root directory of the project. | ||
$RootDir = Split-Path $PSScriptRoot -Parent | ||
|
||
$ToolDir = Join-Path $RootDir "src/plugins/trace/exe" | ||
$BinFolder = Join-Path $ToolDir "bin" | ||
|
||
$RootOutputFolder = Join-Path $RootDir "artifacts/bin/quictrace/published" | ||
|
||
|
||
foreach ($RID in $RIDs) { | ||
# Clear out bin folder | ||
if (Test-Path $BinFolder) { Remove-Item $BinFolder -Recurse -Force | Out-Null } | ||
|
||
$ExeName = "QuicTrace" | ||
if ($RID.Contains("win")) { | ||
$ExeName = "QuicTrace.exe" | ||
} | ||
|
||
$FullOutputFile = Join-Path $BinFolder "Release/net6.0/$RID/publish/$ExeName" | ||
|
||
# Publish Non Trimmed Non Single File | ||
dotnet publish $ToolDir -r $RID -c Release --self-contained true | ||
|
||
$ArtifactFolder = Join-Path $RootOutputFolder $RID | ||
if (!(Test-Path $ArtifactFolder)) { New-Item -Path $ArtifactFolder -ItemType Directory -Force | Out-Null } | ||
Copy-Item $FullOutputFile $ArtifactFolder | ||
|
||
# # Publish Non Trimmed | ||
# dotnet publish $ToolDir -r $RID -c Release -p:PublishSingleFile=true --self-contained true -p:EnableCompressionInSingleFile=true | ||
|
||
# $ArtifactFolder = Join-Path $RootOutputFolder $RID | ||
# if (!(Test-Path $ArtifactFolder)) { New-Item -Path $ArtifactFolder -ItemType Directory -Force | Out-Null } | ||
# Copy-Item $FullOutputFile $ArtifactFolder | ||
|
||
# # Clear out bin folder | ||
# if (Test-Path $BinFolder) { Remove-Item $BinFolder -Recurse -Force | Out-Null } | ||
|
||
# # Publish Trimmed | ||
# dotnet publish $ToolDir -r $RID -c Release -p:PublishSingleFile=true --self-contained true -p:EnableCompressionInSingleFile=true -p:PublishTrimmed=true | ||
|
||
# $TrimmedArtifactFolder = Join-Path $ArtifactFolder "trimmed" | ||
# if (!(Test-Path $TrimmedArtifactFolder)) { New-Item -Path $TrimmedArtifactFolder -ItemType Directory -Force | Out-Null } | ||
# Copy-Item $FullOutputFile $TrimmedArtifactFolder | ||
} |
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
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
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
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