first commit
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
@echo off
|
||||
setlocal
|
||||
title Build ChartAnalysis.exe
|
||||
|
||||
set "APP_DIR=%~dp0"
|
||||
set "CSC=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe"
|
||||
if not exist "%CSC%" set "CSC=C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe"
|
||||
|
||||
if not exist "%CSC%" (
|
||||
echo [ERROR] csc.exe not found. .NET Framework 4.x required to build.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
set "REF=%APP_DIR%tools\ref"
|
||||
set "LIB=%APP_DIR%lib"
|
||||
|
||||
echo Building ChartAnalysis.exe ...
|
||||
pushd "%LIB%"
|
||||
|
||||
"%CSC%" /nologo /noconfig /nostdlib+ /target:winexe /platform:anycpu /optimize+ ^
|
||||
/out:"%APP_DIR%ChartAnalysis.exe" ^
|
||||
/reference:"%REF%\mscorlib.dll" ^
|
||||
/reference:"%REF%\System.dll" ^
|
||||
/reference:"%REF%\System.Core.dll" ^
|
||||
/reference:"%REF%\System.Data.dll" ^
|
||||
/reference:"%REF%\System.Drawing.dll" ^
|
||||
/reference:"%REF%\System.Windows.Forms.dll" ^
|
||||
/reference:"%REF%\System.Windows.Forms.DataVisualization.dll" ^
|
||||
/reference:"%LIB%\MySqlConnector.dll" ^
|
||||
/resource:"%LIB%\MySqlConnector.dll" ^
|
||||
/resource:"%LIB%\Microsoft.Extensions.Logging.Abstractions.dll" ^
|
||||
/resource:"%LIB%\Microsoft.Extensions.DependencyInjection.Abstractions.dll" ^
|
||||
/resource:"%LIB%\System.Diagnostics.DiagnosticSource.dll" ^
|
||||
/resource:"%LIB%\System.Threading.Tasks.Extensions.dll" ^
|
||||
/resource:"%LIB%\System.Runtime.CompilerServices.Unsafe.dll" ^
|
||||
/resource:"%LIB%\Microsoft.Bcl.AsyncInterfaces.dll" ^
|
||||
/resource:"%LIB%\System.Memory.dll" ^
|
||||
/resource:"%LIB%\System.Buffers.dll" ^
|
||||
/resource:"%LIB%\System.Numerics.Vectors.dll" ^
|
||||
/win32icon:"%APP_DIR%hamster.ico" ^
|
||||
/resource:"%APP_DIR%hamster.ico" ^
|
||||
"%APP_DIR%Program.cs"
|
||||
|
||||
set "RC=%ERRORLEVEL%"
|
||||
popd
|
||||
|
||||
if %RC% NEQ 0 (
|
||||
echo [FAILED] Build failed. See errors above.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo [OK] Built: %APP_DIR%ChartAnalysis.exe
|
||||
echo Target: .NET Framework 4.6.2 (Win7 SP1 - Win11)
|
||||
pause
|
||||
exit /b 0
|
||||
Reference in New Issue
Block a user