File tree Expand file tree Collapse file tree
src/VSSetup.PowerShell/PowerShell Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ phases:
124124 inputs :
125125 SourceFolder : $(Build.SourcesDirectory)\src
126126 Contents : ' **\bin\$(Configuration)\**'
127- TargetFolder : $(Build.ArtifactStagingDirectory)\drop
127+ TargetFolder : $(Build.ArtifactStagingDirectory)\drop\src
128128
129129 - task : CopyFiles@2
130130 displayName : Copy packages
Original file line number Diff line number Diff line change 22# Licensed under the MIT license. See LICENSE.txt in the project root for license information.
33
44Describe ' VSSetupVersionTable' {
5+ BeforeEach {
6+ Import-Module VSSetup
7+ }
8+
59 Context ' ModuleVersion' {
610 It ' Is Version' {
711 $VSSetupVersionTable.ModuleVersion -is [System.Version ] | Should Be $true
@@ -13,4 +17,13 @@ Describe 'VSSetupVersionTable' {
1317 $VSSetupVersionTable.QueryVersion -is [System.Version ] | Should Be $true
1418 }
1519 }
20+
21+ Context ' Variable' {
22+ $Error.Clear ()
23+
24+ It ' Can Be Removed' {
25+ Remove-Module VSSetup
26+ $Error.Count | Should Be 0
27+ }
28+ }
1629}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public sealed class VersionTable : PSVariable
2121 /// Initializes a new instance of the <see cref="VersionTable"/> class.
2222 /// </summary>
2323 public VersionTable ( )
24- : base ( "VSSetupVersionTable" , null , ScopedItemOptions . Constant )
24+ : base ( "VSSetupVersionTable" , null , ScopedItemOptions . None )
2525 {
2626 properties = new Lazy < Hashtable > ( ( ) =>
2727 {
You can’t perform that action at this time.
0 commit comments