1 Star 0 Fork 0

吉良吉影/MoreLINQ

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.cmd 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
Atif Aziz 提交于 2024-12-28 21:26 +08:00 . Update .NET SDK to 9, including dependencies
@echo off
pushd "%~dp0"
call :main %*
popd & exit /b %ERRORLEVEL%
:main
setlocal
set MSBUILDTERMINALLOGGER=off
for %%i in (dotnet.exe) do set dotnet=%%~dpnx$PATH:i
if "%dotnet%"=="" goto :nodotnet
if "%1"=="docs" shift & goto :docs
:build
dotnet restore && dotnet tool restore ^
&& call :codegen MoreLinq\Extensions.g.cs -x "[/\\]ToDataTable\.cs$" -u System.Linq -u System.Collections MoreLinq ^
&& call :codegen MoreLinq\Extensions.ToDataTable.g.cs -i "[/\\]ToDataTable\.cs$" -u System.Data -u System.Linq.Expressions MoreLinq ^
&& call MoreLinq\tt ^
&& for %%i in (debug release) do dotnet build -c %%i --no-restore %* || exit /b 1
exit /b %ERRORLEVEL%
:docs
call :build && call msbuild.cmd MoreLinq.shfbproj %1 %2 %3 %4 %5 %6 %7 %8 %9
exit /b %ERRORLEVEL%
:nodotnet
echo>&2 dotnet executable not found in PATH
echo>&2 For more on dotnet, see https://www.microsoft.com/net/core
exit /b 2
:codegen
echo | set /p=Generating extensions wrappers (%1)...
dotnet build bld\ExtensionsGenerator\MoreLinq.ExtensionsGenerator.csproj -c Release >build.log 2>&1 || (
echo Failed!
type build.log
del build.log
exit /b 1
)
del build.log
dotnet bld\ExtensionsGenerator\bin\Release\MoreLinq.ExtensionsGenerator.dll %2 %3 %4 %5 %6 %7 %8 %9 > "%temp%\%~nx1" ^
&& move "%temp%\%~nx1" "%~dp1" > nul ^
&& echo Done.
exit /b %ERRORLEVEL%
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hopefsharp/MoreLINQ.git
git@gitee.com:hopefsharp/MoreLINQ.git
hopefsharp
MoreLINQ
MoreLINQ
master

搜索帮助