zs
2025-06-04 37bb9829b97a98fc1e02c166656c943165e0c614
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