Commit 428e5618 authored by gdlcf88's avatar gdlcf88

Fix push_packages.ps1

parent bdab2902
. ".\common.ps1"
# Get the version
[xml]$commonPropsXml = Get-Content (Join-Path $rootFolder "common.props")
$version = $commonPropsXml.Project.PropertyGroup.Version
$keywords = ".Application.Contracts", ".Domain.Shared", ".HttpApi.Client", ".Application", ".Domain", ".EntityFrameworkCore", ".HttpApi", ".MongoDB", ".Web"
# Publish all packages
foreach($project in $projects) {
$projectName = $project.Substring($project.LastIndexOf("/") + 1)
$moduleName = $projectName
foreach($keyword in $keywords) {
$moduleName = $moduleName.Replace($keyword, "")
}
$moduleFolder = Join-Path (Join-Path $rootFolder "modules") $moduleName
Write-Host $moduleFolder
# Get the version
[xml]$commonPropsXml = Get-Content (Join-Path $moduleFolder "common.props")
$version = $commonPropsXml.Project.PropertyGroup.Version
& dotnet nuget push ($projectName + "." + $version + ".nupkg") -s https://api.nuget.org/v3/index.json
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment