20 lines
1.3 KiB
Bash
20 lines
1.3 KiB
Bash
#!/bin/bash
|
|
# 用 .NET 2.0 编译器验证当前目录代码(等效 csproj 的 Debug 配置)
|
|
cd "$(dirname "$0")"
|
|
export MSYS2_ARG_CONV_EXCL="*"
|
|
CSC="C:/Windows/Microsoft.NET/Framework/v2.0.50727/csc.exe"
|
|
BIN="../../Bin"
|
|
rm -f _compile_test.dll
|
|
"$CSC" -nologo -t:library -out:_compile_test.dll "-define:TRACE;DEBUG;GTIPS8NET" -warn:0 \
|
|
-r:System.dll -r:System.Data.dll -r:System.Web.dll -r:System.Xml.dll -r:System.Drawing.dll \
|
|
-r:System.Configuration.dll -r:System.Web.Services.dll -r:System.EnterpriseServices.dll \
|
|
-r:"$BIN/N_CONTROL8.dll" -r:"$BIN/N_FRAMEWORK8.dll" -r:"$BIN/N_MISPRO8.dll" \
|
|
-r:"$BIN/N_MISPROAS8.dll" -r:"$BIN/N_MODEL8.dll" -r:"$BIN/N_PUBLIC8.dll" \
|
|
-r:"$BIN/N_PUBLIC28.dll" -r:"$BIN/N_WORKFLOW8.dll" -r:"$BIN/N_COMPRESS8.dll" \
|
|
-r:"C:/Windows/assembly/GAC_MSIL/System.Web.Extensions/1.0.61025.0__31bf3856ad364e35/System.Web.Extensions.dll" -r:"$BIN/Newtonsoft.Json.dll" \
|
|
-r:"$BIN/PdfSharp.dll" -r:"$BIN/PdfSharp.Charting.dll" \
|
|
MAC8.cs XLBJD.cs XLBJD_M.cs BJDCache.cs BJDEntity.cs XLBJDUtils.cs XLBJDCalcUtils.cs XLBJD_BDOBill.cs \
|
|
XLBJDList.aspx.cs XLBJDList.aspx.designer.cs XLBJDQuery.aspx.cs XLBJDQuery.aspx.designer.cs \
|
|
XLBJDInfo.aspx.cs XLBJDInfo.aspx.designer.cs _compile_stub.cs 2>&1 | head -40
|
|
if [ -f _compile_test.dll ]; then echo "=== COMPILE OK ==="; rm -f _compile_test.dll; else echo "=== COMPILE FAILED ==="; fi
|