Skip to content

Commit

Permalink
Added build.bat for CI; +hMSBuild 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
3F committed Jun 4, 2020
1 parent 139bae1 commit 9d7156f
Show file tree
Hide file tree
Showing 4 changed files with 557 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
# in Unix via a file share from Windows, the scripts will work.
*.sh text eol=lf

# batch files requires CRLF https://github.com/3F/hMSBuild/issues/2
*.bat text eol=crlf
*.cmd text eol=crlf

# Ensure .bin files are stored as binary
*.bin binary

Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ Copyright (c) IeXod contributors https://github.com/3F/IeXod/graphs/contributors

🧰 The most portable alternative to Microsoft.Build for evaluating, manipulating, and other progressive data processing in a compatible XML-like syntax.

[![Build status](https://ci.appveyor.com/api/projects/status/mclqcptonbch6jjv/branch/master?svg=true)](https://ci.appveyor.com/project/3Fs/iexod/branch/master)
[![release](https://img.shields.io/github/release/3F/IeXod.svg)](https://github.com/3F/IeXod/releases/latest)
[![License](https://img.shields.io/badge/License-MIT-74A5C2.svg)](https://github.com/3F/IeXod/blob/master/LICENSE)
[![NuGet package](https://img.shields.io/nuget/v/IeXod.svg)](https://www.nuget.org/packages/IeXod/)

[![Build history](https://buildstats.info/appveyor/chart/3Fs/iexod?buildCount=20&includeBuildsFromPullRequest=true&showStats=true)](https://ci.appveyor.com/project/3Fs/iexod/history)

# License

IeXod is licensed under the [MIT license](LICENSE).
Expand Down Expand Up @@ -79,7 +86,7 @@ That continues direction of https://github.com/3F/hMSBuild
This is most important goal for [IeXod](https://github.com/3F/IeXod) project. To help to avoid the following nightmare:

❌ From difficulty use (~[Microsoft.Build.Locator](https://www.nuget.org/packages/Microsoft.Build.Locator/) an official solution) to unpredictable behavior in various products (~ Visual Studio etc) due to active integration inside a single environment with *Microsoft.Build.*
❌ From difficulty use (\~ [Microsoft.Build.Locator](https://www.nuget.org/packages/Microsoft.Build.Locator/) an official solution) to unpredictable behavior in various products (\~ Visual Studio etc) due to active integration inside a single environment with *Microsoft.Build.*

## 🎈 Something More

Expand Down
23 changes: 23 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@echo off

set reltype=%~1
if not defined reltype (
set reltype=Release
)
set platform="Any CPU"

echo Restore packages ...
call hMSBuild -t:restore /v:q /m:8 /p:Configuration="%reltype%" /p:Platform=%platform% /nologo || goto err

echo Build IeXod ...
call hMSBuild IeXod.sln /t:Rebuild /v:m /m:6 /p:Configuration="%reltype%" /p:Platform=%platform% /nologo || goto err

goto exit

:err

echo. Build failed. 1>&2
exit /B 1

:exit
exit /B 0
Loading

0 comments on commit 9d7156f

Please sign in to comment.