Software Developer and Curious Person sharing personal discoveries and making a bookmarks for the future.
Wednesday, July 22, 2015
Tuesday, July 21, 2015
Сборка\компиляция проекта через batch
1. build.target
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Default"> <ItemGroup> <AllFiles Include="E:\work\TV_CDN\src\CDN.sln"/> <AllFiles Include="E:\work\TV_PlatformAPI\src\API.sln"/> </ItemGroup> <Target Name="Default"> <MSBuild Projects="@(AllFiles)"/> </Target> </Project>
2. build.cmd
@REM - set this variable
SET PD=D:\work\
@if exist "%windir%\Microsoft.NET\Framework64\v4.0.30319\" (
@set "MSBUILD=%windir%\Microsoft.NET\Framework64\v4.0.30319\"
) ELSE (
@set "MSBUILD=%windir%\Microsoft.NET\Framework\v4.0.30319\"
)
@rem restore nugets
%PD%TV_CDN\src\.nuget\NuGet.exe restore %PD%TV_CDN\src\CDN.sln
%PD%TV_PlatformAPI\src\.nuget\NuGet.exe restore %PD%TV_PlatformAPI\src\API.sln
@rem build
%MSBUILD%msbuild "%PD%build.targets" /p:VisualStudioVersion=12.0
3. Done!
Subscribe to:
Posts (Atom)