From fd505f2090be0c034016a2ad24e9ad74834f73d6 Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 6 Jan 2025 17:05:18 +0800 Subject: [PATCH] Remove `wpf` from build process if os is not windows. --- build/common.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/common.ps1 b/build/common.ps1 index 85f18edb21..f1cc59cf6c 100644 --- a/build/common.ps1 +++ b/build/common.ps1 @@ -34,11 +34,13 @@ if ($full -eq "-f") "../templates/module/aspnet-core", "../templates/app/aspnet-core", "../templates/console", - "../templates/wpf", "../templates/app-nolayers/aspnet-core", "../abp_io/AbpIoLocalization", "../source-code" - ) + ) + if ($env:OS -eq "Windows_NT") { + solutionPaths += "../templates/wpf" + } }else{ Write-host "" Write-host ":::::::::::::: !!! You are in development mode !!! ::::::::::::::" -ForegroundColor red -BackgroundColor yellow