-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a script file for validating absence of pdb file
- Loading branch information
1 parent
ae48a20
commit 211424a
Showing
5 changed files
with
39 additions
and
30 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Define the path to the VSIX file - after building the project in Release mode | ||
$vsixPath = "JfrogVSExtension\bin\Release\JfrogVSExtension.vsix" | ||
$pdbExists = $false | ||
$fileName = "" | ||
|
||
# Check if the .vsix file contains the PDB file | ||
if (Test-Path $vsixPath) { | ||
$zipContent = [System.IO.Compression.ZipFile]::OpenRead($vsixPath) | ||
foreach ($entry in $zipContent.Entries) { | ||
if ($entry.FullName -like "*JfrogVSExtension.pdb") { | ||
$pdbExists = $true | ||
$fileName = $entry.FullName | ||
break | ||
} | ||
} | ||
$zipContent.Dispose() | ||
} else { | ||
Write-Error "VSIX file does not exist in the following path: $vsixPath." | ||
exit 1 # Fail the workflow if the .vsix file is not found | ||
} | ||
|
||
if ($pdbExists) { | ||
Write-Error "PDB file exists in VSIX. file name = $fileName Please check your project settings." | ||
exit 1 # Fail the workflow if the PDB file is found | ||
} else { | ||
Write-Host "PDB file not found in VSIX. Build is clean." | ||
} |