Skip to content

Commit

Permalink
build: fix missing scripts when preparing dev env (#87)
Browse files Browse the repository at this point in the history
The `PrepareDevelopmentEnvironment` task would previously fail if the solution(s) had not been compiled beforehand. This makes the `Compile` task a dependency of the `PrepareDevelopmentEnvironment` task.

[ci skip]
  • Loading branch information
mjahlv authored Aug 10, 2021
1 parent 6533a72 commit e5932f4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class Build : NukeBuild
});

Target PrepareDevelopmentEnvironment => _ => _
.DependsOn(Compile)
.Executes(() =>
{
InstallSolutionAndDependencies(DataverseSolution, SolutionType.Unmanaged);
Expand Down Expand Up @@ -225,10 +226,6 @@ void InstallSolutionAndDependencies(string solution, SolutionType solutionType,
}

var buildConfiguration = solutionType == SolutionType.Managed ? "Release" : "Debug";
DotNetBuild(s => s
.SetProjectFile(SolutionsDirectory / solution / $"{solution}.cdsproj")
.SetConfiguration(buildConfiguration)
.SetDisableParallel(true));

Pac($"solution import --path \"{ SolutionsDirectory / solution / "bin" / buildConfiguration / $"{solution}.zip" }\" -ap -pc -a");
installedSolutions.Add(solution);
Expand Down

0 comments on commit e5932f4

Please sign in to comment.