Make Start-PSPackage give better message about how to fix files.wxs#7841
Merged
daxian-dbw merged 3 commits intoPowerShell:masterfrom Sep 25, 2018
Merged
Make Start-PSPackage give better message about how to fix files.wxs#7841daxian-dbw merged 3 commits intoPowerShell:masterfrom
daxian-dbw merged 3 commits intoPowerShell:masterfrom
Conversation
iSazonov
approved these changes
Sep 24, 2018
| $nuspecObj = [xml] $nuspecTemplate | ||
|
|
||
| if ( ($Dependency -ne $null) -and $Dependency.Count -gt 0 ) { | ||
| if ( ($null -ne $Dependency) -and $Dependency.Count -gt 0 ) { |
Collaborator
There was a problem hiding this comment.
I wonder that we change this.
Member
Author
There was a problem hiding this comment.
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
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 |
Member
There was a problem hiding this comment.
NIT: Does this really need to be resolved? $RepoRoot was already resolved.
Member
Author
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.
Member
Author
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.
This file contains hidden or 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
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.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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