File tree Expand file tree Collapse file tree 4 files changed +24
-11
lines changed Expand file tree Collapse file tree 4 files changed +24
-11
lines changed Original file line number Diff line number Diff line change 254
254
255
255
<Message Importance =" high" Text =" Running Static Analyser" />
256
256
<CallTarget targets =" DependencyAnalysis" ContinueOnError =" ErrorAndContinue" />
257
- <Exec Command =" " $(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command " . $(LibraryToolsFolder)\CheckAssemblies.ps1 " " />
257
+ <Exec Command =" " $(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command " . $(LibraryToolsFolder)\CheckAssemblies.ps1 -BuildConfig $(Configuration) " " />
258
258
<Exec Command =" " $(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command " . $(LibraryToolsFolder)\CleanupBuild.ps1 -BuildConfig $(Configuration) " " />
259
259
</Target >
260
260
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ CLRVersion = '4.0'
51
51
# ProcessorArchitecture = ''
52
52
53
53
# Modules that must be imported into the global environment prior to importing this module
54
- RequiredModules = @ (@ {ModuleName = ' AzureRM.Profile' ; ModuleVersion = ' 4.1.1 ' ; })
54
+ RequiredModules = @ (@ {ModuleName = ' AzureRM.Profile' ; ModuleVersion = ' 4.5.0 ' ; })
55
55
56
56
# Assemblies that must be loaded prior to importing this module
57
57
RequiredAssemblies = ' .\YamlDotNet.dll' ,
Original file line number Diff line number Diff line change @@ -54,7 +54,10 @@ CLRVersion = '4.0'
54
54
RequiredModules = @ (@ {ModuleName = ' AzureRM.Profile' ; ModuleVersion = ' 4.5.0' ; })
55
55
56
56
# Assemblies that must be loaded prior to importing this module
57
- # RequiredAssemblies = @()
57
+ RequiredAssemblies = ' .\Microsoft.WindowsAzure.Storage.dll' ,
58
+ ' .\Microsoft.WindowsAzure.Storage.DataMovement.dll' ,
59
+ ' .\Microsoft.Azure.KeyVault.Core.dll' ,
60
+ ' .\Microsoft.WindowsAzure.Management.dll'
58
61
59
62
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60
63
# ScriptsToProcess = @()
Original file line number Diff line number Diff line change 11
11
# limitations under the License.
12
12
# ----------------------------------------------------------------------------------
13
13
14
+ [CmdletBinding ()]
15
+ Param
16
+ (
17
+ [Parameter ()]
18
+ [string ]$BuildConfig
19
+ )
20
+
14
21
$ProjectPaths = @ ( " $PSScriptRoot \..\src\ResourceManager" )
15
22
$DependencyMapPath = " $PSScriptRoot \..\src\Package\DependencyMap.csv"
16
23
17
24
$DependencyMap = Import-Csv - Path $DependencyMapPath
18
25
19
- $ModuleManifestFiles = $ProjectPaths | % { Get-ChildItem - Path $_ - Filter " *.psd1" - Recurse | where { $_.FullName -notlike " *Debug *" -and `
26
+ $ModuleManifestFiles = $ProjectPaths | % { Get-ChildItem - Path $_ - Filter " *.psd1" - Recurse | where { $_.FullName -notlike " *$BuildConfig *" -and `
20
27
$_.FullName -notlike " *Netcore*" -and `
21
28
$_.FullName -notlike " *dll-Help.psd1*" -and `
22
29
$_.FullName -notlike " *Stack*" } }
@@ -45,14 +52,17 @@ foreach ($ModuleManifest in $ModuleManifestFiles)
45
52
{
46
53
continue
47
54
}
48
- Import-LocalizedData - BindingVariable ModuleMetadata - BaseDirectory $RequiredModuleManifest.DirectoryName - FileName $RequiredModuleManifest.Name
49
55
50
- if ($ModuleMetadata.RequiredAssemblies.Count -gt 0 )
51
- {
52
- $LoadedAssemblies += $ModuleMetadata.RequiredAssemblies
53
- }
56
+ $RequiredModuleManifest | % {
57
+ Import-LocalizedData - BindingVariable ModuleMetadata - BaseDirectory $_.DirectoryName - FileName $_.Name
54
58
55
- $LoadedAssemblies += $ModuleMetadata.NestedModules
59
+ if ($ModuleMetadata.RequiredAssemblies.Count -gt 0 )
60
+ {
61
+ $LoadedAssemblies += $ModuleMetadata.RequiredAssemblies
62
+ }
63
+
64
+ $LoadedAssemblies += $ModuleMetadata.NestedModules
65
+ }
56
66
}
57
67
}
58
68
@@ -73,4 +83,4 @@ foreach ($ModuleManifest in $ModuleManifestFiles)
73
83
{
74
84
throw
75
85
}
76
- }
86
+ }
You can’t perform that action at this time.
0 commit comments