Skip to content

Instantly share code, notes, and snippets.

@caindy
Created July 15, 2014 19:01
Show Gist options
  • Save caindy/d0d70f5d098bc8c65cfa to your computer and use it in GitHub Desktop.
Save caindy/d0d70f5d098bc8c65cfa to your computer and use it in GitHub Desktop.
Attempting to define symbol MONO using FAKE fsiargs in bash
#!/bin/bash
if [ ! -e packages/FAKE/tools/FAKE.exe ]; then
mono .nuget/NuGet.exe install FAKE -OutputDirectory packages -ExcludeVersion
fi
if [ ! -e packages/SourceLink.Fake/Tools/Fake.fsx ]; then
mono .nuget/NuGet.exe install SourceLink.Fake -OutputDirectory packages -ExcludeVersion
fi
if [ ! -e build.fsx ]; then
fsharpi init.fsx
fi
#workaround assembly resolution issues in build.fsx
mono packages/FAKE/tools/FAKE.exe --fsiargs build.fsx -d:MONO $@
@caindy
Copy link
Author

caindy commented Jul 15, 2014

The MONO symbol isn't defined when build.fsx is executed

@caindy
Copy link
Author

caindy commented Jul 15, 2014

From --version
FakePath: /Users/ca/Code/FSharp.ProjectScaffold/packages/FAKE/tools/FakeLib.dll
FAKE - F# Make "3.2.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment