Make Start-PSPackage give better message about how to fix files.wxs - #7841
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.
I wonder that we change this.
There was a problem hiding this comment.
Do you mean "why we change this"? It's reported as a warning from Script Analyzer.
Travis Plunk (TravisEz13)
left a comment
There was a problem hiding this comment.
Nothing blocking
|
|
||
| $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.
NIT: Does this really need to be resolved? $RepoRoot was already resolved.
There was a problem hiding this comment.
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.
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