-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Make Start-PSPackage give better message about how to fix files.wxs #7841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| $nuspecObj = [xml] $nuspecTemplate | ||
|
|
||
| if ( ($Dependency -ne $null) -and $Dependency.Count -gt 0 ) { | ||
| if ( ($null -ne $Dependency) -and $Dependency.Count -gt 0 ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder that we change this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean "why we change this"? It's reported as a warning from Script Analyzer.
TravisEz13
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing blocking
tools/packaging/packaging.psm1
Outdated
|
|
||
| $refBinPath = New-TempFolder | ||
| $SnkFilePath = Join-Path $PSScriptRoot -ChildPath '../../src/signing/visualstudiopublic.snk' -Resolve | ||
| $SnkFilePath = (Resolve-Path "$RepoRoot/src/signing/visualstudiopublic.snk").Path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Does this really need to be resolved? $RepoRoot was already resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The path is only used in New-ReferenceAssembly, which only runs on windows platform. So I can change it to use \ directory separator.
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