Skip to content

Commit 385f0d1

Browse files
committed
Create release
2 parents 8d5e881 + 56e01bb commit 385f0d1

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

.vsts-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

docker/Tests/VersionTable.Tests.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# Licensed under the MIT license. See LICENSE.txt in the project root for license information.
33

44
Describe '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
}

src/VSSetup.PowerShell/PowerShell/VersionTable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)