You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
655 B

  1. # This approach still has issues, but would be the simplest approach for this script
  2. # See: https://github.com/dotnet/eShopOnContainers/issues/74
  3. Param([string] $rootPath)
  4. $scriptPath = Split-Path $script:MyInvocation.MyCommand.Path
  5. Write-Host "Current script directory is $scriptPath" -ForegroundColor Yellow
  6. if ([string]::IsNullOrEmpty($rootPath)) {
  7. $rootPath = "$scriptPath\.."
  8. }
  9. Write-Host "Root path used is $rootPath" -ForegroundColor Yellow
  10. $SolutionFilePath = [IO.Path]::Combine($rootPath, "eShopOnContainers-ServicesAndWebApps.sln")
  11. dotnet restore $SolutionFilePath
  12. dotnet publish $SolutionFilePath -c Release -o .\obj\Docker\publish