diff --git a/root/ContrattoSEI/C6Contract/App.config b/root/ContrattoSEI/C6Contract/App.config
index 759d11d..3a7d487 100644
--- a/root/ContrattoSEI/C6Contract/App.config
+++ b/root/ContrattoSEI/C6Contract/App.config
@@ -2,6 +2,6 @@
-
+
\ No newline at end of file
diff --git a/root/ContrattoSEI/EmailManager/app.config b/root/ContrattoSEI/EmailManager/app.config
index 8437208..c288c5a 100644
--- a/root/ContrattoSEI/EmailManager/app.config
+++ b/root/ContrattoSEI/EmailManager/app.config
@@ -14,7 +14,7 @@
-
+
diff --git a/root/ContrattoSEI/SavePdf/SavePdf/app.config b/root/ContrattoSEI/SavePdf/SavePdf/app.config
index 03f74eb..bfcee72 100644
--- a/root/ContrattoSEI/SavePdf/SavePdf/app.config
+++ b/root/ContrattoSEI/SavePdf/SavePdf/app.config
@@ -13,7 +13,7 @@
-
+
diff --git a/root/Powershell/arm_build.ps1 b/root/Powershell/arm_build.ps1
index 0ffd18c..5682be4 100644
--- a/root/Powershell/arm_build.ps1
+++ b/root/Powershell/arm_build.ps1
@@ -1,6 +1,6 @@
# Build script for GestoreTrimestrale
param(
- [string]$LocalWorkspace = "C:\TFS Fideuram\TP_SEI_Project\root",
+ [string]$LocalWorkspace = (Split-Path $PSScriptRoot -Parent),
[switch]$SkipTests = $true,
[switch]$RunApp
)
@@ -19,7 +19,7 @@ function Write-ErrorAndExit {
# Validate paths
$AppConfigTest = Join-Path $LocalWorkspace "ContrattoSEI\GestoreTrimestrale.Test\app.config"
-$AppConfigApp = Join-Path $LocalWorkspace "ContrattoSEI\GestoreTrimestrale\app.config"
+$AppConfigApp = Join-Path $LocalWorkspace "ContrattoSEI\GestoreTrimestrale_branch_applyingMVVM\app.config"
$Solution = Join-Path $LocalWorkspace "ContrattoSEI\GestoreTrimestrale\GestoreTrimestrale.sln"
$TestDll = Join-Path $LocalWorkspace "ContrattoSEI\GestoreTrimestrale.Test\bin\Debug\GestoreTrimestrale.Test.dll"
$ProjectExe = Join-Path $LocalWorkspace "ContrattoSEI\GestoreTrimestrale\bin\Debug\GestoreTrimestrale.exe"
@@ -167,12 +167,24 @@ Write-Host "Restoring NuGet packages..." -ForegroundColor Yellow
Write-Host "Building solution..." -ForegroundColor Yellow
# Build with original framework versions
-$buildOutput = & $msBuildPath $Solution /p:Configuration=Debug /nologo /p:Platform="Any CPU" /t:Clean,Rebuild /m /verbosity:detailed 2>&1
-$buildOutput | ForEach-Object { Write-Host $_ }
-if ($LASTEXITCODE -ne 0) {
- Write-ErrorAndExit "Build failed with exit code: $LASTEXITCODE"
+$projects = @(
+ "$LocalWorkspace\ContrattoSEI\PDFGenerator\PDFGenerator.csproj",
+ "$LocalWorkspace\ContrattoSEI\GestorePDF\GestorePDF.csproj",
+ "$LocalWorkspace\ContrattoSEI\EnforceIDXApp\EnforceIDXApp.csproj",
+ "$LocalWorkspace\ContrattoSEI\GestoreTrimestrale_branch_applyingMVVM\GestoreTrimestraleMVVM.csproj",
+ "$LocalWorkspace\Batch\DTSXRunner\ConsoleApplication2\DTSXRunner.csproj"
+)
+
+foreach ($project in $projects) {
+ Write-Host "Building $project..." -ForegroundColor Yellow
+ $buildOutput = & $msBuildPath $project /p:Configuration=Debug /nologo /p:Platform="Any CPU" /t:Clean,Rebuild /m /verbosity:detailed "/p:SkipInvalidConfigurations=true" "/p:BuildProjectReferences=true" "/p:CopyLocalLockFileAssemblies=true" "/p:SkipCopyBuildProduct=false" "/p:DisableFastUpToDateCheck=true" "/p:CopyRetryCount=0" 2>&1
+ $buildOutput | ForEach-Object { Write-Host $_ }
+ if ($LASTEXITCODE -ne 0) {
+ Write-ErrorAndExit "Build failed for $project with exit code: $LASTEXITCODE"
+ }
}
+
# Run tests if not skipped
if (-not $SkipTests) {
Write-Host "Running tests..." -ForegroundColor Yellow