mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-05 05:29:47 +08:00
28 lines
674 B
Batchfile
28 lines
674 B
Batchfile
@echo off
|
|
if "%1" == "" (
|
|
echo Please provider ProjectName like: "BootstrapBlazor Debug|Release"
|
|
exit /B
|
|
)
|
|
set config=%2
|
|
if "%ProjectFolder%" == "" (
|
|
set "ProjectFolder=%BB%"
|
|
)
|
|
if "%ProjectFolder%" == "" (
|
|
echo Please set ProjectFolder evniroment Variables
|
|
exit /B
|
|
)
|
|
if "%config%" == "" (
|
|
set "config=Debug"
|
|
)
|
|
cd %ProjectFolder%\%1
|
|
dotnet pack -c %config% %ProjectFolder%\%1\
|
|
copy %ProjectFolder%\%1\bin\%config%\%1*.nupkg %NugetLib% /y
|
|
del %ProjectFolder%\%1\bin\%config%\%1*.nupkg
|
|
cd %NugetLib%
|
|
set config=
|
|
echo Ready to DELETE %USERPROFILE%\.nuget\packages\%1 /S /F /Q
|
|
pause
|
|
|
|
del %USERPROFILE%\.nuget\packages\%1 /S /F /Q
|
|
dir %NugetLib%\%1*.nupkg
|