Build server pipeline failing after auto-update of SQL Change Automation (v 4.4.22194.30982)
PDQ
Posts: 8 Bronze 1
Our build servers are failing after the auto-update of SQL Change Automation (v 4.4.22194.30982) this morning. In our Azure Dev Ops pipelines, we have a specific step for SCA (that is NOT failing). However, when the Visual Studio Build "Build solution" step is executed, the SCA build fails because te DBClean task cannot locate a specific version of Newtonsoft.Json. (See error from build below).
I know that I could rework my VS solution configuration to bypass the SCA build in the "Build solution" step, however, this feels like a bug in SCA and I really don't want to have to edit many, many, many solutions and pipelines to get this fixed.
Anyone else out there have this issue? Any ideas for resolution (without reworking the solution Build Configuration)?
Thanks,
Pam
I know that I could rework my VS solution configuration to bypass the SCA build in the "Build solution" step, however, this feels like a bug in SCA and I really don't want to have to edit many, many, many solutions and pipelines to get this fixed.
Anyone else out there have this issue? Any ideas for resolution (without reworking the solution Build Configuration)?
Thanks,
Pam
##[error]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\SqlChangeAutomation\SqlChangeAutomation.Data.Schema.Ssdt.targets(455,5): Error MSB4018: The "DBCleanTask" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
File name: 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
at RedGate.Versioning.Engine.Shared.Logging.Api.Configuration.LoggerConfigurationManager.GetLogLevel(IServiceIdentifier serviceIdentifier)
at RedGate.Versioning.Engine.Shared.Logging.Serilog.SerilogLoggerConfiguration..ctor(IServiceIdentifier serviceId, ILoggerConfigurationManager configurationManager)
at RedGate.Versioning.Engine.Shared.Logging.Serilog.SerilogLoggerConfiguration..ctor(IServiceIdentifier serviceId)
at RedGate.Versioning.Client.MsBuild.MsBuildModule.Load(ContainerBuilder builder)
at Autofac.Module.Configure(IComponentRegistry componentRegistry)
at Autofac.ContainerBuilder.Build(IComponentRegistry componentRegistry, Boolean excludeDefaultModules)
at Autofac.ContainerBuilder.UpdateRegistry(IComponentRegistry componentRegistry)
at Autofac.Core.Lifetime.LifetimeScope.CreateScopeRestrictedRegistry(Object tag, Action`1 configurationAction)
at Autofac.Core.Lifetime.LifetimeScope.BeginLifetimeScope(Object tag, Action`1 configurationAction)
at Autofac.Core.Lifetime.LifetimeScope.BeginLifetimeScope(Action`1 configurationAction)
at Autofac.Core.Container.BeginLifetimeScope(Action`1 configurationAction)
at RedGate.Versioning.Client.MsBuild.SqlChangeAutomationTask`2.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
Tagged:
Answers
--Avonelle
I am invoking MSBuild of VS2017 on a SQLChangeAutomation solution.
https://download.red-gate.com/checkforupdates/SQLChangeAutomation/SQLChangeAutomation_4.4.22184.30843.exe [download.red-gate.com]
For what it is worth, I find it strange that the version of assembly Newtonsoft.Json in the MSBuild\SqlChangeAutomation\ folder is the same on my development computer as on my build computer, but while it builds fine on my development computer, I get this error on the build server. (It is a substantially newer version than 6.0.0.0, but it doesn't seem to be an issue locally. Hmmmm....)
--Avonelle
Please note that if you have multiple versions of VS in the same computer (let's say you have VS2017 and VS2019), the installation of the older version did not properly override both extensions, just the latest VS. It was a painful trial and error to guarantee that both VS had the older extension.
Sorry to hear you're experiencing this issue!
The long term fix would be to move to using the latest SQL Change Automation PowerShell tasks as ReadyRoll is no longer supported
https://documentation.red-gate.com/sca/deploying-database-changes/add-ons/azure-devops
If you wish to workaround this until you can make the transition, you will need to lockdown to the following version:
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
Sorry...my original post must have been misleading. We are using on-prem Azure Dev Ops server (or what used to be called TFS). We have not used ReadyRoll for quite some time (years?).
The only Redgate component that is accessed from my pipeline is "Redgate SQL Change Automation Build", with the version setting of "Latest". According to the VS Marketplace, this plugin has not be updated since 5/11/2022, so I do not perceive that the version of SCA Build is the issue.
Where would you expect that I might see the "ReadyRoll" reference that you're referring to above?
Thanks,
Pam
The only way I could get a previous version working on my build server was:
- I uninstalled SQL Change Automation completely from the server
- Since we have multiple versions of VS on the server, I confirmed that the extension is not still being referenced in any of the versions of VS. (If it is, remove the extension from VS)
- I Installed the specific version of SCA that most recently worked in a successful build. Thanks to clopez above, I used the link that he added to his post (minus the exe) and found the Redgate downloads directory that allowed me to locate the version I was looking for (https://download.red-gate.com/checkforupdates/SQLChangeAutomation)
- Installed this version. When prompted, take one of the options that installed the component into VS. After installation, all versions of VS were using the specific version that I wanted.
Other things to note:- You'll likely want to turn off the "Automatic-update" option in VS for this component, or it will be overwritten the next time that Redgate auto-updater runs
- The uninstall / reinstall of SCA required reboots of the build server
Hope this helps,Pam
I am invoking MSBuild of VS2017 on a SQLChangeAutomation solution.
https://download.red-gate.com/checkforupdates/SQLChangeAutomation/SQLChangeAutomation_4.4.22184.30843.exe [download.red-gate.com]
I am invoking MSBuild of VS2017 on a SQLChangeAutomation solution.
https://download.red-gate.com/checkforupdates/SQLChangeAutomation/SQLChangeAutomation_4.4.22184.30843.exe [download.red-gate.com]
I'm not sure what your pipelines look like, you may have a task inside which uses the ReadyRoll.
I've done some testing and using purely the PowerShell addons it's working as expecting with the latest versions
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
I hate to belabor the point, but my original post describes the pipeline issues I am having. And, per posts from other users, they also are experiencing the same issue.
"...we have a specific step for SCA (that is NOT failing). However, when the Visual Studio Build "Build solution" step is executed, the SCA build fails because te DBClean task cannot locate a specific version of Newtonsoft.Json..."
So, the task that is failing is the Microsoft "Build solution" task. It worked prior to the latest update of Redgate tools and now is failing. I do not have the ability to control how the "Build solution" task interfaces with Redgate tools.
Would it be possible for Redgate to weigh in on why the "Build solution" task is failing since this is the error that was introduced with the most recent update of SCA?
Best regards,
Pam
I now understand what's happening here, the Visual Studio MSBuild "Build Solution" step is no longer supported and is a legacy method, however, there is a bug report for investigating this and I'm waiting on further information
Instead, the currently supported method of build and deployments is using the Redgate PowerShell add-ons and will avoid this issue, these are defined in the following documentation.
https://documentation.red-gate.com/sca/deploying-database-changes/add-ons/azure-devops/use-the-azure-devops-build-extension-with-sql-change-automation-project
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
The link to the documentation refers to AzureDevOps -- not Azure DevOPS Server (formally known as TFS). I believe that all of us having this issue are using on-prem build machines.
I read that Redgate will not longer support the MS Build task. However, since this step is a required step for building other projects in my solution, I'm not at liberty to simply exclude this task from my pipeline. I also know that there is a very painful workaround that would require creating VS configurations to specifically exclude building the SCA project during the MS Build task. However, the impact of making this change to many, many, many solutions is untenable.
I would respectfully request that Redgate consider the impact of this change on its users and perhaps, with the end of your support of the MS Build task, at least provide code that does not otherwise break pipelines.
Thanks,
Pam
--Avonelle
I'm sorry this isn't ideal and is a frustrating issue, however, the Visual Studio MSBuild has been legacy for a few years now and was replaced by the Invoke-DatabaseBuild and the Azure DevOps SCA Build Task which is now the supported method of building your projects.
I would argue the new method of using the SCA Build Tasks is easy to use and we have a lot of documentation and support on this to help you transition towards it. Please see the documentation here: https://documentation.red-gate.com/sca/deploying-database-changes/add-ons/azure-devops/use-the-azure-devops-build-extension-with-sql-change-automation-project
Alternatively, you can use a PowerShell step in your pipeline and use the Invoke-DatabaseBuild which achieves the same objective:
https://documentation.red-gate.com/sca/reference/powershell-cmdlets/invoke-databasebuild
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
I still do not think that you're completely understanding the issue. My pipelines are using the SCA Build Task as is described in your previous post above--we have been for years.
The issue remains this:
- The SCA project is part of the VS solution.
- The VS Build task started failing with the release of SCA 4.4.22194.30982
- The VS Build task does not allow for exclusion of the SCA project from the solution--instead would require me to rework/redefine the VS configurations for approximately 50 solutions, then updating the 150 pipelines (50 each of WIP, QA, and Prod).
- The fact that Redgate chooses to remove the support for VS Build is totally fine with me--but it is NOT fine that this release of SCA has broken 150 pipelines.
We can agree to disagree on this topic--I just won't do it on a public forum any longer. Instead, will work through our support agreement with Redgate so that I can talk directly to someone to perhaps better explain the issue.Thanks much for your responses,
Pam
Thank you for reporting this issue. We are taking a closer look at this in the development team, but need a bit of time to understand exactly what's going on. In the meantime, please consider installing a previous version - https://download.red-gate.com/checkforupdates/SQLChangeAutomation. Pam has provided great instructions above if you have multiple Visual Studios installed and it seems like users have had success with v 4.4.22184.30843.
Pam - Thank you for working directly with support on this. I think seeing exactly what you have in your pipeline will help us work through this.
Thanks you!
Stephanie M. Herr :-)
Product Manager Database DevOps
We have a new version "4.5.22292" which contains the fix for DbCleanTask failing due to "Could not load file or assembly Newtonsoft.Json"
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
Would you be able to share the log output for this error with the version?
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
Error output is below:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\SqlChangeAutomation\SqlChangeAutomation.Data.Schema.Ssdt.targets(455, 5): error MSB4018: The "DBCleanTask" task failed unexpectedly.
Thank you, going to forward this onto the team now!
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
[15:38:07] : [Step 1/6] WARNING: Microsoft.Build.Exceptions.InvalidProjectFileException: The expression
[15:38:07] : [Step 1/6] "[Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToStandardLibraries(.NETFramework, v4.5.2, '', '', '', '')"
[15:38:07] : [Step 1/6] cannot be evaluated. Could not load type 'Microsoft.Build.Framework.NativeMethods' from assembly
[15:38:07] : [Step 1/6] 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. C:\Program Files
[15:38:07] : [Step 1/6] (x86)\Microsoft Visual Studio\2017\SQL\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName,
[15:38:07] : [Step 1/6] IElementLocation elementLocation, String resourceName, Object[] args)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject[T1,T2](IElementLocation elementLocation, String
[15:38:07] : [Step 1/6] resourceName, T1 arg0, T2 arg1)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Expander`2.Function`1.Execute(Object objectInstance, IPropertyProvider`1 properties,
[15:38:07] : [Step 1/6] ExpanderOptions options, IElementLocation elementLocation)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertyBody(String propertyBody, Object
[15:38:07] : [Step 1/6] propertyValue, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation,
[15:38:07] : [Step 1/6] UsedUninitializedProperties usedUninitializedProperties, IFileSystem fileSystem)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveTypedAndEscaped(String expression,
[15:38:07] : [Step 1/6] IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties
[15:38:07] : [Step 1/6] usedUninitializedProperties, IFileSystem fileSystem)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveEscaped(String expression,
[15:38:07] : [Step 1/6] IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties
[15:38:07] : [Step 1/6] usedUninitializedProperties, IFileSystem fileSystem)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Expander`2.ExpandIntoStringLeaveEscaped(String expression, ExpanderOptions options,
[15:38:07] : [Step 1/6] IElementLocation elementLocation)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluatePropertyElement(ProjectPropertyElement propertyElement)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluatePropertyGroupElement(ProjectPropertyGroupElement
[15:38:07] : [Step 1/6] propertyGroupElement)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile,
[15:38:07] : [Step 1/6] ProjectImportElement importElement)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile,
[15:38:07] : [Step 1/6] ProjectImportElement importElement)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile,
[15:38:07] : [Step 1/6] ProjectImportElement importElement)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile,
[15:38:07] : [Step 1/6] ProjectImportElement importElement)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile,
[15:38:07] : [Step 1/6] ProjectImportElement importElement)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile,
[15:38:07] : [Step 1/6] ProjectImportElement importElement)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(ILoggingService loggingService, BuildEventContext
[15:38:07] : [Step 1/6] buildEventContext)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings
[15:38:07] : [Step 1/6] loadSettings, EvaluationContext evaluationContext)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation,
[15:38:07] : [Step 1/6] ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Project.Initialize(IDictionary`2 globalProperties, String toolsVersion, String
[15:38:07] : [Step 1/6] subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion,
[15:38:07] : [Step 1/6] String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext
[15:38:07] : [Step 1/6] evaluationContext)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary`2 globalProperties, String
[15:38:07] : [Step 1/6] toolsVersion)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at RedGate.Versioning.Automation.EngineFacade.Settings.PowerShellSettingStrategy..ctor(String filePath,
[15:38:07] : [Step 1/6] IDictionary`2 properties)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at RedGate.Versioning.Automation.EngineFacade.Settings.PowerShellSettingStrategyFactory.GetSettingsStrategy(String
[15:38:07] : [Step 1/6] filePath)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at RedGate.Versioning.Engine.Projects.ProjectSettings.SqlProj.ObjectMapping.MsBuildProjectMapper.MapTo(String
[15:38:07] : [Step 1/6] filePath, IMsBuildSettingsRepresentation msBuildDatabaseProjectSettings)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at
[15:38:07] : [Step 1/6] RedGate.Versioning.Engine.Projects.ProjectSettings.SqlProj.ObjectMapping.MsBuildSettingsLoader`2.LoadSettings(String
[15:38:07] : [Step 1/6] filePath, IProgressLogger progress)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at RedGate.Versioning.Automation.Compare.Projects.ProjectFactory.HasScaProperty(String sqlProjFilePath)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at RedGate.Versioning.Automation.Compare.Projects.ProjectFactory.GetScaProject(String path)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at RedGate.Versioning.Automation.Compare.Projects.ProjectFactory.CreateProjectPathFromPath(String path)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at RedGate.Versioning.Automation.Compare.Projects.ProjectFactory.CreateFromPath(String path)
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at RedGate.Versioning.Automation.PowerShell.Commands.InvokeDatabaseBuildCommandImpl.Process()
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at RedGate.Versioning.Automation.PowerShell.DlmAutomationCommandImpl`1.ProcessRecord()
[15:38:07] : [Step 1/6]
[15:38:07] : [Step 1/6] at RedGate.PowerShell.CommandBase`2.DelegateTo(Action doImplementation)
[15:38:08] : [Step 1/6] Invoke-DatabaseBuild : An unhandled error occurred: Microsoft.Build.Exceptions.InvalidProjectFileException: The
[15:38:08] : [Step 1/6] expression "[Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToStandardLibraries(.NETFramework, v4.5.2, '', '',
[15:38:08] : [Step 1/6] '', '')" cannot be evaluated. Could not load type 'Microsoft.Build.Framework.NativeMethods' from assembly
[15:38:08] : [Step 1/6] 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. C:\Program Files
[15:38:08] : [Step 1/6] (x86)\Microsoft Visual Studio\2017\SQL\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets
[15:38:08] : [Step 1/6] at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName,
[15:38:08] : [Step 1/6] IElementLocation elementLocation, String resourceName, Object[] args)
[15:38:08] : [Step 1/6] at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject[T1,T2](IElementLocation elementLocation, String
[15:38:08] : [Step 1/6] resourceName, T1 arg0, T2 arg1)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Expander`2.Function`1.Execute(Object objectInstance, IPropertyProvider`1 properties,
[15:38:08] : [Step 1/6] ExpanderOptions options, IElementLocation elementLocation)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertyBody(String propertyBody, Object
[15:38:08] : [Step 1/6] propertyValue, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation,
[15:38:08] : [Step 1/6] UsedUninitializedProperties usedUninitializedProperties, IFileSystem fileSystem)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveTypedAndEscaped(String expression,
[15:38:08] : [Step 1/6] IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties
[15:38:08] : [Step 1/6] usedUninitializedProperties, IFileSystem fileSystem)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveEscaped(String expression,
[15:38:08] : [Step 1/6] IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties
[15:38:08] : [Step 1/6] usedUninitializedProperties, IFileSystem fileSystem)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Expander`2.ExpandIntoStringLeaveEscaped(String expression, ExpanderOptions options,
[15:38:08] : [Step 1/6] IElementLocation elementLocation)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluatePropertyElement(ProjectPropertyElement propertyElement)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluatePropertyGroupElement(ProjectPropertyGroupElement
[15:38:08] : [Step 1/6] propertyGroupElement)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile,
[15:38:08] : [Step 1/6] ProjectImportElement importElement)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile,
[15:38:08] : [Step 1/6] ProjectImportElement importElement)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile,
[15:38:08] : [Step 1/6] ProjectImportElement importElement)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile,
[15:38:08] : [Step 1/6] ProjectImportElement importElement)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile,
[15:38:08] : [Step 1/6] ProjectImportElement importElement)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile,
[15:38:08] : [Step 1/6] ProjectImportElement importElement)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(ILoggingService loggingService, BuildEventContext
[15:38:08] : [Step 1/6] buildEventContext)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings
[15:38:08] : [Step 1/6] loadSettings, EvaluationContext evaluationContext)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation,
[15:38:08] : [Step 1/6] ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Project.Initialize(IDictionary`2 globalProperties, String toolsVersion, String
[15:38:08] : [Step 1/6] subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String
[15:38:08] : [Step 1/6] toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings,
[15:38:08] : [Step 1/6] EvaluationContext evaluationContext)
[15:38:08] : [Step 1/6] at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary`2 globalProperties, String
[15:38:08] : [Step 1/6] toolsVersion)
[15:38:08] : [Step 1/6] at RedGate.Versioning.Automation.EngineFacade.Settings.PowerShellSettingStrategy..ctor(String filePath,
[15:38:08] : [Step 1/6] IDictionary`2 properties)
[15:38:08] : [Step 1/6] at RedGate.Versioning.Automation.EngineFacade.Settings.PowerShellSettingStrategyFactory.GetSettingsStrategy(String
[15:38:08] : [Step 1/6] filePath)
[15:38:08] : [Step 1/6] at RedGate.Versioning.Engine.Projects.ProjectSettings.SqlProj.ObjectMapping.MsBuildProjectMapper.MapTo(String
[15:38:08] : [Step 1/6] filePath, IMsBuildSettingsRepresentation msBuildDatabaseProjectSettings)
[15:38:08] : [Step 1/6] at
[15:38:08] : [Step 1/6] RedGate.Versioning.Engine.Projects.ProjectSettings.SqlProj.ObjectMapping.MsBuildSettingsLoader`2.LoadSettings(String
[15:38:08] : [Step 1/6] filePath, IProgressLogger progress)
[15:38:08] : [Step 1/6] at RedGate.Versioning.Automation.Compare.Projects.ProjectFactory.HasScaProperty(String sqlProjFilePath)
[15:38:08] : [Step 1/6] at RedGate.Versioning.Automation.Compare.Projects.ProjectFactory.GetScaProject(String path)
[15:38:08] : [Step 1/6] at RedGate.Versioning.Automation.Compare.Projects.ProjectFactory.CreateProjectPathFromPath(String path)
[15:38:08] : [Step 1/6] at RedGate.Versioning.Automation.Compare.Projects.ProjectFactory.CreateFromPath(String path)
[15:38:08] : [Step 1/6] at RedGate.Versioning.Automation.PowerShell.Commands.InvokeDatabaseBuildCommandImpl.Process()
[15:38:08] : [Step 1/6] at RedGate.Versioning.Automation.PowerShell.DlmAutomationCommandImpl`1.ProcessRecord()
[15:38:08] : [Step 1/6] at RedGate.PowerShell.CommandBase`2.DelegateTo(Action doImplementation)
[15:38:08] : [Step 1/6] At C:\TeamCity\buildAgent\plugins\sqlchangeautomation-teamcity-agent\SqlCi.ps1:193 char:39
[15:38:08] : [Step 1/6] + ... ptsFolder | Invoke-DatabaseBuild @temporaryConnection @queryBatchTime ...
[15:38:08] : [Step 1/6] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[15:38:08] : [Step 1/6] + CategoryInfo : NotSpecified: (:) [Invoke-DatabaseBuild], InvalidProjectFileException
[15:38:08] : [Step 1/6] + FullyQualifiedErrorId : UnhandledException,RedGate.Versioning.Automation.PowerShell.Commands.InvokeDatabaseBuild
[15:38:08] : [Step 1/6] Command
[15:38:08]W: [Step 1/6] C:\TeamCity\buildAgent\plugins\sqlchangeautomation-teamcity-agent\SqlChangeAutomationRunner.ps1 : Error running SQL
[15:38:08]W: [Step 1/6] Change Automation action: see build log for error details
[15:38:08]W: [Step 1/6] + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
[15:38:08]W: [Step 1/6] + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,SqlChangeAutomationRunner.ps1