zs
2025-05-18 4b3fd35893972bb05fd7ab89dc624ab805093ff3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Paths
$rootFolder = (Get-Item -Path "./" -Verbose).FullName
 
$serverFolder = Join-Path $rootFolder ("/server")
 
Set-Location $serverFolder
& dotnet tool install --global dotnet-ef
 
& dotnet restore -s https://nexus.sycdev.com/repository/nuget-group/index.json
 
$migrationFolder = Join-Path $serverFolder ("/src/CMS.Plugin.HIAWms.MySQL")
Set-Location $migrationFolder
dotnet ef migrations add InitialCreate -c CMSPluginDbContext -o Migrations
 
Set-Location $serverFolder
& dotnet build
 
Set-Location $rootFolder