Skip to content

Commit

Permalink
Merge pull request #5 from MORYX-Industry/fix/reuse-wwwroot
Browse files Browse the repository at this point in the history
Move wwwroot to project folder for `dotnet pack`
  • Loading branch information
seveneleven authored Dec 4, 2024
2 parents 7a82d74 + f689f88 commit e12f3e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .build/BuildToolkit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ function Invoke-PackSdkProject($CsprojItem, [bool]$IncludeSymbols = $False) {
$objPath = [System.IO.Path]::Combine($CsprojItem.DirectoryName, "obj");
$projectObjArtifacts = [System.IO.Path]::Combine($artifacts, $projectName, "obj");
CopyAndReplaceFolder $projectObjArtifacts $objPath;
$wwwrootPath = [System.IO.Path]::Combine($CsprojItem.DirectoryName, "wwwroot");
$projectWwwrootArtifacts = [System.IO.Path]::Combine($artifacts, $projectName, "wwwroot");
if(Test-Path $projectWwwrootArtifacts) {
CopyAndReplaceFolder $projectWwwrootArtifacts $wwwrootPath;
}


if (IsLicensedProject $CsprojItem) {
Expand Down Expand Up @@ -366,6 +371,7 @@ function Invoke-PackSdkProject($CsprojItem, [bool]$IncludeSymbols = $False) {
$packargs += "-p:PackageVersion=$env:MORYX_PACKAGE_VERSION";
$packargs += "--verbosity", "$env:MORYX_NUGET_VERBOSITY";
$packargs += "--no-build";
$packargs += "--no-restore";

if ($IncludeSymbols) {
$packargs += "--include-symbols";
Expand Down

0 comments on commit e12f3e9

Please sign in to comment.