Skip to content

Parse timing of configuration script  #1

Description

@dibbdob

First, I'd like to offer my appreciation to you for making this open source.

We have a slight issue where we are getting different results when building in visual studio as opposed to building from the command line.

The build process has been slightly customised to prepare the ssdt.migration.scripts.json file in the PreBuildEvent. This does the job when building within Visual Studio, but when we kick off via msbuild then ssdt.migration.scripts.json is read before the PreBuildEvent is executed. Here's how the msbuild output looks:

Build started .....
.
.
.
AddCustomSSDTPreAndPostScripts:
  JsonSettingsProvider: Found settings file C:\source\Client\ssdt.migration.scripts.json    
  JsonSettingsProvider: Settings successfully deserialized.
  {
    "PostScripts": {
      "ScriptBaseDirectory": "Scripts.604"
    }
  }
  .
  .
  .
PreBuildEvent:
  copy 604.ssdt.migration.scripts.json C:\source\Client\ssdt.migration.scripts.json /Y

To handle this, is the best way to update the automation script to issue a copy before the build is starts or could there be a better solution?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions