Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upMake Start-PSPackage give better message about how to fix files.wxs #7841
+30
−27
Conversation
daxian-dbw
added some commits
Sep 22, 2018
daxian-dbw
requested review from
TravisEz13,
anmenaga and
adityapatwardhan
Sep 22, 2018
iSazonov
approved these changes
Sep 24, 2018
| @@ -1743,7 +1745,7 @@ function New-NuSpec { | |||
| $nuspecTemplate = $packagingStrings.NuspecTemplate -f $PackageId,$PackageVersion | |||
| $nuspecObj = [xml] $nuspecTemplate | |||
|
|
|||
| if ( ($Dependency -ne $null) -and $Dependency.Count -gt 0 ) { | |||
| if ( ($null -ne $Dependency) -and $Dependency.Count -gt 0 ) { | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
daxian-dbw
Sep 25, 2018
Author
Member
Do you mean "why we change this"? It's reported as a warning from Script Analyzer.
anmenaga
approved these changes
Sep 24, 2018
TravisEz13
approved these changes
Sep 24, 2018
|
Nothing blocking |
tools/packaging/packaging.psm1
Outdated
| @@ -1519,7 +1521,7 @@ function New-UnifiedNugetPackage | |||
| { | |||
|
|
|||
| $refBinPath = New-TempFolder | |||
| $SnkFilePath = Join-Path $PSScriptRoot -ChildPath '../../src/signing/visualstudiopublic.snk' -Resolve | |||
| $SnkFilePath = (Resolve-Path "$RepoRoot/src/signing/visualstudiopublic.snk").Path | |||
This comment has been minimized.
This comment has been minimized.
TravisEz13
Sep 24, 2018
Member
NIT: Does this really need to be resolved? $RepoRoot was already resolved.
This comment has been minimized.
This comment has been minimized.
daxian-dbw
Sep 25, 2018
Author
Member
I was trying to be safe just in case that it expects the path separator to be platform specific.
Will look into how this path is used and see if it really needs to be resolved.
This comment has been minimized.
This comment has been minimized.
daxian-dbw
Sep 25, 2018
Author
Member
The path is only used in New-ReferenceAssembly, which only runs on windows platform. So I can change it to use \ directory separator.
daxian-dbw
merged commit 4926e15
into
PowerShell:master
Sep 25, 2018
8 checks passed
CodeFactor
No issues found.
Details
PowerShell-CI-linux
#PR-7841-20180925.01 succeeded
Details
PowerShell-CI-macos
#PR-7841-20180925.01 succeeded
Details
PowerShell-CI-spelling
#PR-7841-20180925.01 succeeded
Details
PowerShell-CI-windows
#PR-7841-20180925.01 succeeded
Details
WIP
ready for review
Details
continuous-integration/appveyor/pr
AppVeyor build succeeded
Details
license/cla
All CLA requirements met.
Details
daxian-dbw
deleted the
daxian-dbw:minor
branch
Sep 25, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
daxian-dbw commentedSep 22, 2018
•
edited
PR Summary
Make Start-PSPackage give a better message about how to fix files.wxs
Some minor changes:
files.wxswhen current files don't match the existingfiles.wxs.The messages before this PR: (relative paths)
The message with this PR: (resolved paths)
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests