Skip to content

msbuild task running order #38

Description

@jwu-au

I'm using msbuild.npm and gulp in my projects.
And I also have Octopack task to pack my artifacts which will run at the end.

I saw in the in the msbuild.gulp.targets there is BeforeTargets="Build", but I don't know why msbuild trigger it in a wrong order. It triggers it after the Octopack task.

After a while, I come up a workaround by defining below property in the project file:

  <PropertyGroup>
    <BuildDependsOn>
      RunNpm;
      RunGulpBuild;
      $(BuildDependsOn)
    </BuildDependsOn>
  </PropertyGroup>

Above property to make sure it runs before build. Can @KMees have a look?
Thank you for your great lib.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions