cake-build / cake

:cake: Cake (C# Make) is a cross platform build automation system.
https://cakebuild.net
MIT License
3.92k stars 729 forks source link

Dependency loading errors with Cake 0.27.1 and Cake.Powershell 0.4.5 #2137

Closed eddie3716 closed 6 years ago

eddie3716 commented 6 years ago

This is related to the ticket I opened against the Cake.Powershell project. https://github.com/SharpeRAD/Cake.Powershell/issues/55

While version 0.27.1 resolves the infinite recursion problem found in 0.27, there's still an issue with resolving dependencies properly. I tested my build scripts against version 0.27.1, and I'm having new problems now.... @SharpeRAD @daveaglick In the mean time, I've stickied my build scripts to Cake version 0.26.1

What You Are Seeing? (when using Cake v 0.27.1)

PS C:\Users\ewood\Source\Repos\Powershell> $PSVersionTable

Name                           Value                                                                                                                                            
----                           -----                                                                                                                                            
PSVersion                      5.1.14409.1012                                                                                                                                   
PSEdition                      Desktop                                                                                                                                          
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                          
BuildVersion                   10.0.14409.1012                                                                                                                                  
CLRVersion                     4.0.30319.42000                                                                                                                                  
WSManStackVersion              3.0                                                                                                                                              
PSRemotingProtocolVersion      2.3                                                                                                                                              
SerializationVersion           1.1.0.1                                                                                                                                          

PS C:\Users\ewood\Source\Repos\Powershell> 
PS C:\Users\ewood\Source\Repos\Powershell> 
PS C:\Users\ewood\Source\Repos\Powershell> .\build.ps1 -Target PackagePowershell
Preparing to run build script...
Running build script...
Analyzing build script...
Processing build script...
Installing tools...
Installing addins...
Compiling build script...
Not running on Jenkins. BuildNumber will remain set to '0'
Not running on Jenkins. Forcing the Major.Minor version to be '0.0'
Version: 0.0.0.22.Branch.VBWP-1129.Sha.16d2bb30dc06f37ab98449406fe2a55564f2ea0b
Numeric Version: 0.0.0
Package Version: 0.0.0

========================================
PackagePowershell
========================================
Executing task: PackagePowershell
Executing: Update-ModuleManifest -Path PT.Handbill.Powershell.PackageVerification/bin/Release/PT.Handbill.Powershell.PackageVerification.psd1 -ModuleVersion 0.0.0
Resolving assembly System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35
Error in PackagePowershell: The type initializer for 'System.Management.Automation.Runspaces.InitialSessionState' threw an exception.    at System.Management.Automation.Runspace
s.PSSnapInHelpers.AnalyzePSSnapInAssembly(Assembly assembly, String name, PSSnapInInfo psSnapInInfo, PSModuleInfo moduleInfo, Boolean isModuleLoad, Dictionary`2& cmdlets, Dictio
nary`2& aliases, Dictionary`2& providers, String& helpFile)
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIn(PSSnapInInfo mshsnapinInfo)
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIns(Collection`1 mshsnapinInfos, PSConsoleLoadException& warning)
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.CreateDefaultConfiguration()
   at System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(PSHost host)
   at Cake.Powershell.PowershellRunner.Invoke(String script, PowershellSettings settings)
   at Submission#0.StartPowershellScript(String script, PowershellSettings settings)
   at Submission#0.<<Initialize>>b__0_6()
Cake.exe : An error occurred when executing task 'PackagePowershell'.
At line:1 char:1
+ & "C:\Users\ewood\Source\Repos\Powershell\tools\Cake\Cake.exe" "build ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (An error occurr...agePowershell'.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

----------------------------------------
Teardown
----------------------------------------
Executing custom teardown action...
Reverting temporary 'AssemblyInfo.cs' files by running command: 'git checkout -- */AssemblyInfo.cs'
Error: 
One or more errors occurred.

The type initializer for 'System.Management.Automation.Runspaces.InitialSessionState' threw an exception.

PS C:\Users\ewood\Source\Repos\Powershell> 
### What is Expected? (when using Cake v 0.26.1)
PS C:\Users\ewood\Source\Repos\Powershell> .\build.ps1 -Target PackagePowershell
Preparing to run build script...
Running build script...
Analyzing build script...
Processing build script...
Installing tools...
Installing addins...
Compiling build script...
Not running on Jenkins. BuildNumber will remain set to '0'
Not running on Jenkins. Forcing the Major.Minor version to be '0.0'
Version: 0.0.0.22.Branch.VBWP-1129.Sha.16d2bb30dc06f37ab98449406fe2a55564f2ea0b
Numeric Version: 0.0.0
Package Version: 0.0.0

========================================
PackagePowershell
========================================
Executing task: PackagePowershell
Executing: Update-ModuleManifest -Path PT.Handbill.Powershell.PackageVerification/bin/Release/PT.Handbill.Powershell.PackageVerificati
on.psd1 -ModuleVersion 0.0.0
Executing: Update-ModuleManifest -Path PT.Handbill.Powershell.SqlUtilities/bin/Release/PT.Handbill.Powershell.SqlUtilities.psd1 -Modul
eVersion 0.0.0
Executing: Update-ModuleManifest -Path PT.Handbill.Powershell.XmlUtilities/bin/Release/PT.Handbill.Powershell.XmlUtilities.psd1 -Modul
eVersion 0.0.0
Executing: Update-ModuleManifest -Path PT.Handbill.Powershell.VisualCron/bin/Release/PT.Handbill.Powershell.VisualCron.psd1 -ModuleVer
sion 0.0.0
Chocolatey v0.10.10
Attempting to build package from 'PT.Handbill.Powershell.temp.nuspec'.
Successfully created package 'C:\Users\ewood\Source\Repos\Powershell\nupkgs\PT.Handbill.Powershell.0.0.0.nupkg'
Finished executing task: PackagePowershell

----------------------------------------
Teardown
----------------------------------------
Executing custom teardown action...
Reverting temporary 'AssemblyInfo.cs' files by running command: 'git checkout -- */AssemblyInfo.cs'

Task                          Duration            
--------------------------------------------------
PackagePowershell             00:00:04.0580340    
--------------------------------------------------
Total:                        00:00:04.0580340    

What version of Cake are you using?

0.27.1

Are you running on a 32 or 64 bit system?

64

What environment are you running on? Windows? Linux? Mac?

Windows

Are you running on a CI Server? If so, which one?

I'm running this on my local workstation, but I'll need it to eventually run on my Jenkins build slave.

How Did You Get This To Happen? (Steps to Reproduce)

In my packages.config, I updated my cake version from 0.26.1 to 0.27.1.

Output Log

PS C:\Users\ewood\Source\Repos\Powershell> .\build.ps1 -Target PackagePowershell -Verbosity Diagnostic
Preparing to run build script...
Running build script...
Module directory does not exist.
NuGet.config not found.
Analyzing build script...
Analyzing C:/Users/ewood/Source/Repos/Powershell/build.cake...
Analyzing C:/Users/ewood/Source/Repos/Powershell/build-ext.cake...
Processing build script...
Installing tools...
  CACHE https://api.nuget.org/v3/registration3-gz-semver2/nunit.consolerunner/index.json
  CACHE <my custom nuget feed>/FindPackagesById()?id='NUnit.ConsoleRunner'&s
emVerLevel=2.0.0
  CACHE <my other custom nuget feed>/FindPackagesById()?id='NUnit.Con
soleRunner'&semVerLevel=2.0.0
Retrieving package 'NUnit.ConsoleRunner 3.8.0' from 'C:\Users\ewood\.nuget\packages\'.
Adding package 'NUnit.ConsoleRunner.3.8.0' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools'
Added package 'NUnit.ConsoleRunner.3.8.0' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools'
Added package 'NUnit.ConsoleRunner.3.8.0' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools' from source 'C:\Users\ewood\.nuge
t\packages\'
Successfully installed 'NUnit.ConsoleRunner 3.8.0' to C:/Users/ewood/Source/Repos/Powershell/tools
Executing nuget actions took 121.13 ms
  CACHE https://api.nuget.org/v3/registration3-gz-semver2/nunit.extension.nunitv2resultwriter/index.json
  CACHE<my custom nuget feed>/FindPackagesById()?id='NUnit.Extension.NUnitV
2ResultWriter'&semVerLevel=2.0.0
  CACHE<my other custom nuget feed>/FindPackagesById()?id='NUnit.Extension.NUnitV2ResultWriter'&semVerLevel=2.0.0
Retrieving package 'NUnit.Extension.NUnitV2ResultWriter 3.6.0' from 'C:\Users\ewood\.nuget\packages\'.
Adding package 'NUnit.Extension.NUnitV2ResultWriter.3.6.0' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools'
Added package 'NUnit.Extension.NUnitV2ResultWriter.3.6.0' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools'
Added package 'NUnit.Extension.NUnitV2ResultWriter.3.6.0' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools' from source 'C:\U
sers\ewood\.nuget\packages\'
Successfully installed 'NUnit.Extension.NUnitV2ResultWriter 3.6.0' to C:/Users/ewood/Source/Repos/Powershell/tools
Executing nuget actions took 28.11 ms
  CACHE https://api.nuget.org/v3/registration3-gz-semver2/vswhere/index.json
  CACHE <my custom nuget feed>/FindPackagesById()?id='vswhere'&semVerLevel=2
.0.0
  CACHE<my other custom nuget feed>/FindPackagesById()?id='vswhere'&
semVerLevel=2.0.0
Retrieving package 'vswhere 2.4.1' from 'C:\Users\ewood\.nuget\packages\'.
Adding package 'vswhere.2.4.1' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools'
Added package 'vswhere.2.4.1' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools'
Added package 'vswhere.2.4.1' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools' from source 'C:\Users\ewood\.nuget\packages\'
Successfully installed 'vswhere 2.4.1' to C:/Users/ewood/Source/Repos/Powershell/tools
Executing nuget actions took 21.29 ms
  CACHE https://api.nuget.org/v3/registration3-gz-semver2/gitversion.commandline/index.json
  CACHE<my custom nuget feed>/FindPackagesById()?id='GitVersion.CommandLine
'&semVerLevel=2.0.0
  CACHE <my other custom nuget feed>/FindPackagesById()?id='GitVersio
n.CommandLine'&semVerLevel=2.0.0
Retrieving package 'GitVersion.CommandLine 3.6.5' from 'C:\Users\ewood\.nuget\packages\'.
Adding package 'GitVersion.CommandLine.3.6.5' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools'
Added package 'GitVersion.CommandLine.3.6.5' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools'
Added package 'GitVersion.CommandLine.3.6.5' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools' from source 'C:\Users\ewood\.n
uget\packages\'
Successfully installed 'GitVersion.CommandLine 3.6.5' to C:/Users/ewood/Source/Repos/Powershell/tools
Executing nuget actions took 217.29 ms
Installing addins...
  CACHE https://api.nuget.org/v3/registration3-gz-semver2/cake.powershell/index.json
  CACHE <my custom nuget feed>/FindPackagesById()?id='Cake.Powershell'&semVe
rLevel=2.0.0
  CACHE <my other custom nuget feed>/FindPackagesById()?id='Cake.Powe
rshell'&semVerLevel=2.0.0
Retrieving package 'Cake.Powershell 0.4.5' from 'C:\Users\ewood\.nuget\packages\'.
Adding package 'Cake.Powershell.0.4.5' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools\Addins'
Added package 'Cake.Powershell.0.4.5' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools\Addins'
Added package 'Cake.Powershell.0.4.5' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools\Addins' from source 'C:\Users\ewood\.n
uget\packages\'
Successfully installed 'Cake.Powershell 0.4.5' to C:/Users/ewood/Source/Repos/Powershell/tools/Addins
Executing nuget actions took 40.8 ms
The addin Cake.Powershell will reference Cake.Powershell.dll.
The addin Cake.Powershell will reference System.Management.Automation.dll.
  CACHE https://api.nuget.org/v3/registration3-gz-semver2/newtonsoft.json/index.json
  CACHE <my custom nuget feed>/FindPackagesById()?id='Newtonsoft.Json'&semVe
rLevel=2.0.0
  CACHE<my other custom nuget feed>/FindPackagesById()?id='Newtonsof
t.Json'&semVerLevel=2.0.0
Retrieving package 'Newtonsoft.Json 11.0.2' from 'C:\Users\ewood\.nuget\packages\'.
Adding package 'Newtonsoft.Json.11.0.2' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools\Addins'
Added package 'Newtonsoft.Json.11.0.2' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools\Addins'
Added package 'Newtonsoft.Json.11.0.2' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools\Addins' from source 'C:\Users\ewood\.
nuget\packages\'
Successfully installed 'Newtonsoft.Json 11.0.2' to C:/Users/ewood/Source/Repos/Powershell/tools/Addins
Executing nuget actions took 115.53 ms
The addin Newtonsoft.Json will reference Newtonsoft.Json.dll.
  CACHE https://api.nuget.org/v3/registration3-gz-semver2/system.net.http/index.json
  CACHE <my custom nuget feed>/FindPackagesById()?id='System.Net.Http'&semVe
rLevel=2.0.0
  CACHE <my other custom nuget feed>/FindPackagesById()?id='System.Ne
t.Http'&semVerLevel=2.0.0
Retrieving package 'System.Net.Http 4.3.3' from 'C:\Users\ewood\.nuget\packages\'.
Adding package 'System.Net.Http.4.3.3' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools\Addins'
Added package 'System.Net.Http.4.3.3' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools\Addins'
Added package 'System.Net.Http.4.3.3' to folder 'C:\Users\ewood\Source\Repos\Powershell\tools\Addins' from source 'C:\Users\ewood\.n
uget\packages\'
Successfully installed 'System.Net.Http 4.3.3' to C:/Users/ewood/Source/Repos/Powershell/tools/Addins
Executing nuget actions took 63.33 ms
The addin System.Net.Http will reference System.Net.Http.dll.
The addin System.Net.Http will reference System.Net.Http.dll.
Verifying assembly 'Cake.Powershell, Version=0.4.5.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Verifying assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.
Verifying assembly 'System.Net.Http, Version=4.1.1.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Verifying assembly 'System.Net.Http, Version=4.1.1.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Adding assembly reference to mscorlib.dll...
Adding assembly reference to System.Core.dll...
Adding assembly reference to Cake.Core.dll...
Adding assembly reference to Cake.Common.dll...
Adding assembly reference to Cake.exe...
Adding assembly reference to System.dll...
Adding assembly reference to System.Xml.dll...
Adding assembly reference to System.Xml.Linq.dll...
Adding assembly reference to System.Data.dll...
Adding assembly reference to System.Runtime.dll...
Adding assembly reference to System.Collections.dll...
Adding assembly reference to Cake.Powershell.dll...
Adding assembly reference to System.Management.Automation.dll...
Adding assembly reference to Newtonsoft.Json.dll...
Adding assembly reference to System.Net.Http.dll...
Importing namespace Cake.Common...
Importing namespace Cake.Common.Build...
Importing namespace Cake.Common.Build.AppVeyor...
Importing namespace Cake.Common.Build.AppVeyor.Data...
Importing namespace Cake.Common.Build.Bamboo...
Importing namespace Cake.Common.Build.Bamboo.Data...
Importing namespace Cake.Common.Build.BitbucketPipelines...
Importing namespace Cake.Common.Build.BitbucketPipelines.Data...
Importing namespace Cake.Common.Build.Bitrise...
Importing namespace Cake.Common.Build.Bitrise.Data...
Importing namespace Cake.Common.Build.ContinuaCI...
Importing namespace Cake.Common.Build.ContinuaCI.Data...
Importing namespace Cake.Common.Build.GitLabCI...
Importing namespace Cake.Common.Build.GitLabCI.Data...
Importing namespace Cake.Common.Build.GoCD...
Importing namespace Cake.Common.Build.GoCD.Data...
Importing namespace Cake.Common.Build.Jenkins...
Importing namespace Cake.Common.Build.Jenkins.Data...
Importing namespace Cake.Common.Build.MyGet...
Importing namespace Cake.Common.Build.TeamCity...
Importing namespace Cake.Common.Build.TFBuild...
Importing namespace Cake.Common.Build.TFBuild.Data...
Importing namespace Cake.Common.Build.TravisCI...
Importing namespace Cake.Common.Build.TravisCI.Data...
Importing namespace Cake.Common.Diagnostics...
Importing namespace Cake.Common.IO...
Importing namespace Cake.Common.IO.Paths...
Importing namespace Cake.Common.Net...
Importing namespace Cake.Common.Security...
Importing namespace Cake.Common.Solution...
Importing namespace Cake.Common.Solution.Project...
Importing namespace Cake.Common.Solution.Project.Properties...
Importing namespace Cake.Common.Solution.Project.XmlDoc...
Importing namespace Cake.Common.Text...
Importing namespace Cake.Common.Tools...
Importing namespace Cake.Common.Tools.Cake...
Importing namespace Cake.Common.Tools.Chocolatey...
Importing namespace Cake.Common.Tools.Chocolatey.ApiKey...
Importing namespace Cake.Common.Tools.Chocolatey.Config...
Importing namespace Cake.Common.Tools.Chocolatey.Download...
Importing namespace Cake.Common.Tools.Chocolatey.Features...
Importing namespace Cake.Common.Tools.Chocolatey.Install...
Importing namespace Cake.Common.Tools.Chocolatey.New...
Importing namespace Cake.Common.Tools.Chocolatey.Pack...
Importing namespace Cake.Common.Tools.Chocolatey.Pin...
Importing namespace Cake.Common.Tools.Chocolatey.Push...
Importing namespace Cake.Common.Tools.Chocolatey.Sources...
Importing namespace Cake.Common.Tools.Chocolatey.Uninstall...
Importing namespace Cake.Common.Tools.Chocolatey.Upgrade...
Importing namespace Cake.Common.Tools.DotCover...
Importing namespace Cake.Common.Tools.DotCover.Analyse...
Importing namespace Cake.Common.Tools.DotCover.Cover...
Importing namespace Cake.Common.Tools.DotCover.Merge...
Importing namespace Cake.Common.Tools.DotCover.Report...
Importing namespace Cake.Common.Tools.DotNetCore...
Importing namespace Cake.Common.Tools.DotNetCore.Build...
Importing namespace Cake.Common.Tools.DotNetCore.Clean...
Importing namespace Cake.Common.Tools.DotNetCore.Execute...
Importing namespace Cake.Common.Tools.DotNetCore.MSBuild...
Importing namespace Cake.Common.Tools.DotNetCore.NuGet.Delete...
Importing namespace Cake.Common.Tools.DotNetCore.NuGet.Push...
Importing namespace Cake.Common.Tools.DotNetCore.Pack...
Importing namespace Cake.Common.Tools.DotNetCore.Publish...
Importing namespace Cake.Common.Tools.DotNetCore.Restore...
Importing namespace Cake.Common.Tools.DotNetCore.Run...
Importing namespace Cake.Common.Tools.DotNetCore.Test...
Importing namespace Cake.Common.Tools.DotNetCore.Tool...
Importing namespace Cake.Common.Tools.DotNetCore.VSTest...
Importing namespace Cake.Common.Tools.DupFinder...
Importing namespace Cake.Common.Tools.Fixie...
Importing namespace Cake.Common.Tools.GitLink...
Importing namespace Cake.Common.Tools.GitReleaseManager...
Importing namespace Cake.Common.Tools.GitReleaseManager.AddAssets...
Importing namespace Cake.Common.Tools.GitReleaseManager.Close...
Importing namespace Cake.Common.Tools.GitReleaseManager.Create...
Importing namespace Cake.Common.Tools.GitReleaseManager.Export...
Importing namespace Cake.Common.Tools.GitReleaseManager.Publish...
Importing namespace Cake.Common.Tools.GitReleaseNotes...
Importing namespace Cake.Common.Tools.GitVersion...
Importing namespace Cake.Common.Tools.ILMerge...
Importing namespace Cake.Common.Tools.ILRepack...
Importing namespace Cake.Common.Tools.InnoSetup...
Importing namespace Cake.Common.Tools.InspectCode...
Importing namespace Cake.Common.Tools.MSBuild...
Importing namespace Cake.Common.Tools.MSpec...
Importing namespace Cake.Common.Tools.MSTest...
Importing namespace Cake.Common.Tools.NSIS...
Importing namespace Cake.Common.Tools.NuGet...
Importing namespace Cake.Common.Tools.NuGet.Add...
Importing namespace Cake.Common.Tools.NuGet.Init...
Importing namespace Cake.Common.Tools.NuGet.Install...
Importing namespace Cake.Common.Tools.NuGet.List...
Importing namespace Cake.Common.Tools.NuGet.Pack...
Importing namespace Cake.Common.Tools.NuGet.Push...
Importing namespace Cake.Common.Tools.NuGet.Restore...
Importing namespace Cake.Common.Tools.NuGet.SetApiKey...
Importing namespace Cake.Common.Tools.NuGet.SetProxy...
Importing namespace Cake.Common.Tools.NuGet.Sources...
Importing namespace Cake.Common.Tools.NuGet.Update...
Importing namespace Cake.Common.Tools.NUnit...
Importing namespace Cake.Common.Tools.OctopusDeploy...
Importing namespace Cake.Common.Tools.OpenCover...
Importing namespace Cake.Common.Tools.ReportGenerator...
Importing namespace Cake.Common.Tools.ReportUnit...
Importing namespace Cake.Common.Tools.Roundhouse...
Importing namespace Cake.Common.Tools.SignTool...
Importing namespace Cake.Common.Tools.SpecFlow...
Importing namespace Cake.Common.Tools.SpecFlow.StepDefinitionReport...
Importing namespace Cake.Common.Tools.SpecFlow.TestExecutionReport...
Importing namespace Cake.Common.Tools.TextTransform...
Importing namespace Cake.Common.Tools.VSTest...
Importing namespace Cake.Common.Tools.VSWhere...
Importing namespace Cake.Common.Tools.VSWhere.All...
Importing namespace Cake.Common.Tools.VSWhere.Latest...
Importing namespace Cake.Common.Tools.VSWhere.Legacy...
Importing namespace Cake.Common.Tools.VSWhere.Product...
Importing namespace Cake.Common.Tools.WiX...
Importing namespace Cake.Common.Tools.WiX.Heat...
Importing namespace Cake.Common.Tools.XBuild...
Importing namespace Cake.Common.Tools.XUnit...
Importing namespace Cake.Common.Xml...
Importing namespace Cake.Core...
Importing namespace Cake.Core.Diagnostics...
Importing namespace Cake.Core.IO...
Importing namespace Cake.Core.Scripting...
Importing namespace Cake.Powershell...
Importing namespace Newtonsoft.Json...
Importing namespace System...
Importing namespace System.Collections.Generic...
Importing namespace System.IO...
Importing namespace System.Linq...
Importing namespace System.Management.Automation...
Importing namespace System.Net.Http...
Importing namespace System.Net.Http.Headers...
Importing namespace System.Text...
Importing namespace System.Text.RegularExpressions...
Importing namespace System.Threading.Tasks...
Importing namespace System.Xml...
Compiling build script...
Executing: "C:/Users/ewood/Source/Repos/Powershell/tools/GitVersion.CommandLine.3.6.5/tools/GitVersion.exe" 
{
  "Major":0,
  "Minor":1,
  "Patch":0,
  "PreReleaseTag":"VBWP-1129.1",
  "PreReleaseTagWithDash":"-VBWP-1129.1",
  "PreReleaseLabel":"VBWP-1129",
  "PreReleaseNumber":1,
  "BuildMetaData":22,
  "BuildMetaDataPadded":"0022",
  "FullBuildMetaData":"22.Branch.VBWP-1129.Sha.16d2bb30dc06f37ab98449406fe2a55564f2ea0b",
  "MajorMinorPatch":"0.1.0",
  "SemVer":"0.1.0-VBWP-1129.1",
  "LegacySemVer":"0.1.0-VBWP-1129-1",
  "LegacySemVerPadded":"0.1.0-VBWP-1129-0001",
  "AssemblySemVer":"0.1.0.0",
  "FullSemVer":"0.1.0-VBWP-1129.1+22",
  "InformationalVersion":"0.1.0-VBWP-1129.1+22.Branch.VBWP-1129.Sha.16d2bb30dc06f37ab98449406fe2a55564f2ea0b",
  "BranchName":"VBWP-1129",
  "Sha":"16d2bb30dc06f37ab98449406fe2a55564f2ea0b",
  "NuGetVersionV2":"0.1.0-vbwp-1129-0001",
  "NuGetVersion":"0.1.0-vbwp-1129-0001",
  "CommitsSinceVersionSource":22,
  "CommitsSinceVersionSourcePadded":"0022",
  "CommitDate":"2018-04-20"
}
Not running on Jenkins. BuildNumber will remain set to '0'
Not running on Jenkins. Forcing the Major.Minor version to be '0.0'
Version: 0.0.0.22.Branch.VBWP-1129.Sha.16d2bb30dc06f37ab98449406fe2a55564f2ea0b
Numeric Version: 0.0.0
Package Version: 0.0.0

========================================
PackagePowershell
========================================
Executing task: PackagePowershell
Executing: Update-ModuleManifest -Path PT.Handbill.Powershell.PackageVerification/bin/Release/PT.Handbill.Powershell.PackageVerificati
on.psd1 -ModuleVersion 0.0.0
Resolving assembly System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35
Error in PackagePowershell: The type initializer for 'System.Management.Automation.Runspaces.InitialSessionState' threw an exception
.    at System.Management.Automation.Runspaces.PSSnapInHelpers.AnalyzePSSnapInAssembly(Assembly assembly, String name, PSSnapInInfo 
psSnapInInfo, PSModuleInfo moduleInfo, Boolean isModuleLoad, Dictionary`2& cmdlets, Dictionary`2& aliases, Dictionary`2& providers, 
String& helpFile)
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIn(PSSnapInInfo mshsnapinInfo)
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIns(Collection`1 mshsnapinInfos, PSConsoleLoadEx
ception& warning)
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.CreateDefaultConfiguration()
   at System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(PSHost host)
   at Cake.Powershell.PowershellRunner.Invoke(String script, PowershellSettings settings)
   at Submission#0.StartPowershellScript(String script, PowershellSettings settings)
   at Submission#0.<<Initialize>>b__0_6()
Cake.exe : An error occurred when executing task 'PackagePowershell'.
At line:1 char:1
+ & "C:\Users\ewood\Source\Repos\Powershell\tools\Cake\Cake.exe" "build ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (An error occurr...agePowershell'.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

----------------------------------------
Teardown
----------------------------------------
Executing custom teardown action...
Reverting temporary 'AssemblyInfo.cs' files by running command: 'git checkout -- */AssemblyInfo.cs'
Executing: "git" checkout -- */AssemblyInfo.cs
Error: 
System.AggregateException: One or more errors occurred. ---> System.TypeInitializationException: The type initializer for 
'System.Management.Automation.Runspaces.InitialSessionState' threw an exception. ---> System.IO.FileNotFoundException: Could not 
load 
file or assembly 'System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35' or one 
of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or 
assembly 'System.Management.Automation.resources' or one of its dependencies. The system cannot find the file specified.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly 
locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean 
suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, 
RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean 
forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, 
IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, 
Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at Cake.Scripting.Roslyn.ScriptAssemblyResolver.AssemblyResolve(Object sender, ResolveEventArgs args)
   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
   --- End of inner exception stack trace ---
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly 
locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean 
suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(String name, CultureInfo culture, Version version, Boolean 
throwOnFileNotFound, StackCrawlMark& stackMark)
   at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(CultureInfo lookForCulture, StackCrawlMark& stackMark)
   at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, 
Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean 
tryParents, StackCrawlMark& stackMark)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
   at System.Management.Automation.Runspaces.InitialSessionState..cctor()
   --- End of inner exception stack trace ---
   at Submission#0.<<Initialize>>b__0_6()
   at Cake.Core.CakeTaskBuilderExtensions.<>c__DisplayClass8_0.<Does>b__0(ICakeContext x)
   at Cake.Core.ActionTask.<Execute>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cake.Core.DefaultExecutionStrategy.<ExecuteAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cake.Core.CakeEngine.<RunTargetAsync>d__18.MoveNext()
--- End of stack trace from previous location where exception was thr
own ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cake.Scripting.BuildScriptHost.<RunTargetAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cake.Core.Scripting.ScriptHost.RunTarget(String target)
   at Submission#0.<<Initialize>>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.<RunSubmissionsAsync>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.Scripting.Script`1.<RunSubmissionsAsync>d__21.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Cake.Scripting.Roslyn.RoslynScriptSession.Execute(Script script)
   at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments)
   at Cake.Commands.BuildCommand.Execute(CakeOptions options)
   at Cake.CakeApplication.Run(CakeOptions options)
   at Cake.Program.Main()
---> (Inner Exception #0) System.TypeInitializationException: The type initializer for 
'System.Management.Automation.Runspaces.InitialSessionState' threw an exception. ---> System.IO.FileNotFoundException: Could not 
load file or assembly 'System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35' or 
one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNo
tFoundException: Could not load file or assembly 'System.Management.Automation.resources' or one of its dependencies. The system 
cannot find the file specified.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidenc
e assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, 
Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, 
RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean 
forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssemb
ly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean 
forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, 
Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at Cake.Scripting.Roslyn.ScriptAssemblyResolver.AssemblyResolve(Object sender, ResolveEventArgs args)
   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
   --- End of inner exception stack trace ---
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly 
locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean 
suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(String name, CultureInfo culture, Version version, Boolean 
throwOnFileNotFound, StackCrawlMark& stackMark)
   at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(CultureInfo lookForCulture, StackCrawlMark& stackMark)
   at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(Cu
ltureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean try
Parents, StackCrawlMark& stackMark)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
   at System.Management.Automation.Runspaces.InitialSessionState..cctor()
   --- End of inner exception stack trace ---
   at Submission#0.<<Initialize>>b__0_6()
   at Cake.Core.CakeTaskBuilderExtensions.<>c__DisplayClass8_0.<Does>b__0(ICakeContext x)
   at Cake.Core.ActionTask.<Execute>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cake.Core.DefaultExecutionStrategy.<ExecuteAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cake.Core.CakeEngine.<RunTargetAsync>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cake.Scripting.BuildScriptHost.<RunTargetAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cake.Core.Scripting.ScriptHost.RunTarget(String target)
   at Submission#0.<<Initialize>>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.<RunSubmissionsAsync>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.Scripting.Script`1.<RunSubmissionsAsync>d__21.MoveNext()<---

PS C:\Users\ewood\Source\Repos\Powershell> 
daveaglick commented 6 years ago

This part is probably the important bit:

Resolving assembly System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35
Error in PackagePowershell: The type initializer for 'System.Management.Automation.Runspaces.InitialSessionState' threw an exception.

It's throwing on a type initializer while attempting to call Assembly.Load() for the missing assembly reference.

Normally not being able to load a referenced assembly would cause other problems later, but resource files play by different rules. The safe move is to probably just ignore all load failures in the runtime assembly resolver. Will submit a PR.

gep13 commented 6 years ago

@daveaglick I am going to create a hotfix 0.27.2 branch, and push to GitHub. If you can then rebase your PR on that branch, we can merge it into the hotfix branch, and then we can get @eddie3716 (assuming he is willing) to test the package from MyGet, and if it works, we can roll out the hotfix.

How does that sound?

gep13 commented 6 years ago

@daveaglick hotfix branch is ready.

daveaglick commented 6 years ago

@gep13 The hotfix branch is a couple commits behind develop - you want me to rebase and bring those in as well or cherry-pick into a branch directly off the hotfix branch?

eddie3716 commented 6 years ago

@gep13 @daveaglick I wouldn't mind helping you test when you get your changes worked out. Though I'm not sure what process I would need to follow get the latest binaries. I'm assuming I could just pull down your branch and build that.

gep13 commented 6 years ago

@daveaglick the hotfix branch comes from the main branch, so there will be commits on the develop branch that don’t exist on it. You can either cherry pick the single commit, or you can use rebase —onto hotfix/0.27.2 develop, either way works.

daveaglick commented 6 years ago

@gep13 Okay, I'll just cherry pick to keep it clean

gep13 commented 6 years ago

@eddie3716 once merged, the nupkg will be pushed to MyGet, and a slight modification to your build.cake file will bring it in. I can provide more details once it is ready.

daveaglick commented 6 years ago

@gep13 Okay, redid this PR #2138 on top of the hotfix branch. Also redid PR #2139 on the hotfix branch for good measure since they're sort of related.

devlead commented 6 years ago

@eddie3716 NuGet packages are now available for testing on our MyGet feed

https://www.myget.org/feed/cake/package/nuget/Cake/0.27.2-beta0001 https://www.myget.org/feed/cake/package/nuget/Cake.CoreCLR/0.27.2-beta0001

eddie3716 commented 6 years ago

I installed those two packages, sticked my Cake version to 0.27.2-beta0001, and re-ran by build script. @devlead @daveaglick @gep13 @SharpeRAD These beta Cake packages produce better results. I'm finally able to invoke the Powershell commands through the Cake.Powershell addin, which allows my jobs to successful complete. I also verified the Update-ModuleManifest command actually does what it's supposed to do. I would be fine if these code changes made it into the next release of Cake.

If you find it informative, here's the verbose output.....

PS C:\Users\ewood\Source\Repos\Powershell> .\build.ps1 -Target Package -Verbose Preparing to run build script... VERBOSE: Trying to find nuget.exe in PATH... VERBOSE: Found in PATH at C:\Program Files (x86)\NuGet\nuget.exe. VERBOSE: Restoring tools from NuGet... VERBOSE: Feeds used: C:\Users\ewood.nuget\packages\ https://api.nuget.org/v3/index.json

C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\ All packages listed in C:\Users\ewood\Source\Repos\Powershell\tools\packages.config are already installed. Running build script... Analyzing build script... Processing build script... Installing tools... Installing addins... Compiling build script... Not running on Jenkins. BuildNumber will remain set to '0' Not running on Jenkins. Forcing the Major.Minor version to be '0.0' Version: 0.0.0.23.Branch.VBWP-1129.Sha.f741ce5a208bb704f4a90c2514a4b787fe49e822 Numeric Version: 0.0.0 Package Version: 0.0.0 ======================================== PackagePowershell ======================================== Executing task: PackagePowershell Executing: Update-ModuleManifest -Path PT.Handbill.Powershell.PackageVerification/bin/Release/PT.Handbill.Powershell.PackageVerification.psd1 -ModuleVersion 0.0.0 Resolving assembly System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35 Exception while resolving assembly System.Management.Automation.resources: Could not load file or assembly 'System.Management.Automation.resources' or one of its dependencies. The s ystem cannot find the file specified. Resolving assembly Microsoft.PowerShell.Security.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35 Exception while resolving assembly Microsoft.PowerShell.Security.resources: Could not load file or assembly 'Microsoft.PowerShell.Security.resources' or one of its dependencies. The system cannot find the file specified. Resolving assembly Microsoft.WSMan.Management.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35 Exception while resolving assembly Microsoft.WSMan.Management.resources: Could not load file or assembly 'Microsoft.WSMan.Management.resources' or one of its dependencies. The syste m cannot find the file specified. Resolving assembly Microsoft.PowerShell.PackageManagement Exception while resolving assembly Microsoft.PowerShell.PackageManagement: Could not load file or assembly 'Microsoft.PowerShell.PackageManagement' or one of its dependencies. The s ystem cannot find the file specified. Resolving assembly Microsoft.PowerShell.Commands.Utility.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35 Exception while resolving assembly Microsoft.PowerShell.Commands.Utility.resources: Could not load file or assembly 'Microsoft.PowerShell.Commands.Utility.resources' or one of its d ependencies. The system cannot find the file specified. Resolving assembly Microsoft.PowerShell.Commands.Management.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35 Exception while resolving assembly Microsoft.PowerShell.Commands.Management.resources: Could not load file or assembly 'Microsoft.PowerShell.Commands.Management.resources' or one of its dependencies. The system cannot find the file specified. Executing: Update-ModuleManifest -Path PT.Handbill.Powershell.SqlUtilities/bin/Release/PT.Handbill.Powershell.SqlUtilities.psd1 -ModuleVersion 0.0.0 Resolving assembly PT.Handbill.Powershell.SqlUtilities Exception while resolving assembly PT.Handbill.Powershell.SqlUtilities: Could not load file or assembly 'PT.Handbill.Powershell.SqlUtilities' or one of its dependencies. The system ca nnot find the file specified. Executing: Update-ModuleManifest -Path PT.Handbill.Powershell.XmlUtilities/bin/Release/PT.Handbill.Powershell.XmlUtilities.psd1 -ModuleVersion 0.0.0 Resolving assembly PT.Handbill.Powershell.XmlUtilities Exception while resolving assembly PT.Handbill.Powershell.XmlUtilities: Could not load file or assembly 'PT.Handbill.Powershell.XmlUtilities' or one of its dependencies. The system ca nnot find the file specified. Executing: Update-ModuleManifest -Path PT.Handbill.Powershell.VisualCron/bin/Release/PT.Handbill.Powershell.VisualCron.psd1 -ModuleVersion 0.0.0 Resolving assembly PT.Handbill.Powershell.VisualCron Exception while resolving assembly PT.Handbill.Powershell.VisualCron: Could not load file or assembly 'PT.Handbill.Powershell.VisualCron' or one of its dependencies. The system cannot find the file specified. Chocolatey v0.10.10 Attempting to build package from 'PT.Handbill.Powershell.temp.nuspec'. Successfully created package 'C:\Users\ewood\Source\Repos\Powershell\nupkgs\PT.Handbill.Powershell.0.0.0.nupkg' Finished executing task: PackagePowershell ======================================== Package ======================================== Executing task: Package Finished executing task: Package ---------------------------------------- Teardown ---------------------------------------- Executing custom teardown action... Reverting temporary 'AssemblyInfo.cs' files by running command: 'git checkout -- */AssemblyInfo.cs' Task Duration -------------------------------------------------- PackagePowershell 00:00:04.1802094 Package 00:00:00.0014901 **Teardown** 00:00:00.0427440 -------------------------------------------------- Total: 00:00:04.2244435