-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakeRelease.ps1
35 lines (29 loc) · 858 Bytes
/
MakeRelease.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$solutionPath = Get-Location
pushd $solutionPath
try
{
$version = "0.0.8"
$modulePath = "$solutionPath\PoshDotnetDumpAnalyzeViewerModule"
$configuration = "Release"
$output = "$solutionPath\Releases\publish"
dotnet publish $modulePath -c $configuration -o $output
cd "$solutionPath\Releases"
Remove-Item $version -Force -Recurse -ErrorAction SilentlyContinue
mkdir $version
cd $version
mkdir "PoshDotnetDumpAnalyzeViewerModule"
cd "PoshDotnetDumpAnalyzeViewerModule"
$dllNames =
"NStack.dll",
"PoshDotnetDumpAnalyzeViewer.dll",
"PoshDotnetDumpAnalyzeViewerModule.dll",
"Terminal.Gui.dll"
foreach ($file in $dllNames) {
Copy-Item "$output\$file" -Destination ".\"
}
Copy-Item "$modulePath\PoshDotnetDumpAnalyzeViewerModule.psd1" -Destination ".\"
}
finally
{
popd
}