diff --git a/scripts/generate-vs-projects.bat b/scripts/generate-vs-projects.bat index 0f5ccf5e..6c81bfb5 100644 --- a/scripts/generate-vs-projects.bat +++ b/scripts/generate-vs-projects.bat @@ -150,8 +150,17 @@ if exist "%EXISTING_SOLUTION_FILE%" ( findstr /C:"YAZE.vcxproj" "%EXISTING_SOLUTION_FILE%" >nul if not errorlevel 1 ( echo ✅ Solution file references YAZE.vcxproj correctly + + REM Check if project configurations are set up + findstr /C:"ProjectConfigurationPlatforms" "%EXISTING_SOLUTION_FILE%" >nul + if not errorlevel 1 ( + echo ✅ Project configurations are properly set up + ) else ( + echo ⚠️ Warning: Project configurations may not be set up + ) ) else ( - echo ⚠️ Warning: Solution file may not reference YAZE.vcxproj properly + echo ❌ Solution file does not reference YAZE.vcxproj + echo Please ensure the solution file includes the YAZE project ) REM Try to open solution in Visual Studio diff --git a/scripts/generate-vs-projects.ps1 b/scripts/generate-vs-projects.ps1 index adefe726..48b7382c 100644 --- a/scripts/generate-vs-projects.ps1 +++ b/scripts/generate-vs-projects.ps1 @@ -202,8 +202,16 @@ if (Test-Path $ExistingSolutionFile) { $SolutionContent = Get-Content $ExistingSolutionFile -Raw if ($SolutionContent -match "YAZE\.vcxproj") { Write-Host "✅ Solution file references YAZE.vcxproj correctly" -ForegroundColor Green + + # Check if project configurations are set up + if ($SolutionContent -match "ProjectConfigurationPlatforms") { + Write-Host "✅ Project configurations are properly set up" -ForegroundColor Green + } else { + Write-Host "⚠️ Warning: Project configurations may not be set up" -ForegroundColor Yellow + } } else { - Write-Host "⚠️ Warning: Solution file may not reference YAZE.vcxproj properly" -ForegroundColor Yellow + Write-Host "❌ Solution file does not reference YAZE.vcxproj" -ForegroundColor Red + Write-Host "Please ensure the solution file includes the YAZE project" -ForegroundColor Yellow } # Open solution in Visual Studio if available