Skip to content

Commit

Permalink
fix: pack solution arguments for vs code cmd (#90)
Browse files Browse the repository at this point in the history
* debug/utility fix & pack solution fix for vs code cmd

* updated test project build
  • Loading branch information
Dave-Robertson92 authored Nov 10, 2022
1 parent b3a89b8 commit fe1f415
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion __tests__/sample-with-solution/build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Build : NukeBuild
var metadataFolder = SolutionDirectory / "Extract";
var mappingFilePath = SolutionDirectory / "ExtractMappingFile.xml";
var buildConfiguration = SolutionType == SolutionType.Unmanaged ? Configuration.Debug : Configuration.Release;
Pac($"solution pack -z \"{SolutionDirectory / "bin" / buildConfiguration / $"{DataverseSolution}.zip"}\" -f {metadataFolder} -p {SolutionType} -ad Yes -m { mappingFilePath }");
Pac($"solution pack -z \"{SolutionDirectory / "bin" / buildConfiguration / $"{DataverseSolution}.zip"}\" -f {metadataFolder} -p {SolutionType} -ad true -m { mappingFilePath }");
});

Target PrepareDevelopmentEnvironment => _ => _
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"copy-scripts-template": "copyfiles -a -u 4 \"src/generators/scripts/templates/**/*\" \"generators/scripts/templates\" -V",
"copy-data-template": "copyfiles -a -u 4 \"src/generators/data/templates/**/*\" \"generators/data/templates\" -V",
"copy-powerbi-template": "copyfiles -a -u 4 \"src/generators/powerbi/templates/**/*\" \"generators/powerbi/templates\" -V",
"clean-debug": "npx rimraf debug",
"clean-debug": "npx rimraf debug && mkdir debug",
"lint": "eslint .eslintrc.js ./src ./__tests__/"
}
}
2 changes: 1 addition & 1 deletion src/generators/app/templates/source/build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Build : NukeBuild
var metadataFolder = SolutionDirectory / "Extract";
var mappingFilePath = SolutionDirectory / "ExtractMappingFile.xml";
var buildConfiguration = SolutionType == SolutionType.Unmanaged ? Configuration.Debug : Configuration.Release;
Pac($"solution pack -z \"{SolutionDirectory / "bin" / buildConfiguration / $"{DataverseSolution}.zip"}\" -f {metadataFolder} -p {SolutionType} -ad Yes -m { mappingFilePath }");
Pac($"solution pack -z \"{SolutionDirectory / "bin" / buildConfiguration / $"{DataverseSolution}.zip"}\" -f {metadataFolder} -p {SolutionType} -ad true -m { mappingFilePath }");
});

Target PrepareDevelopmentEnvironment => _ => _
Expand Down

0 comments on commit fe1f415

Please sign in to comment.