In particular, as in the screenshot (sorry, no screenshot, seems that this website does not allow uploading screenshots), this was my setting. First I had trouble getting the custom build action to run, I solved this per the instructions on http://www.ncrunch.net/documentation/considerations-and-constraints_implicit-file-dependencies. But now I still receive a file not found error for this file. It is included in the project file, so my assumption is, NCrunch ignores this dependency, even though it uses the standard syntax in the fsproj file.
Any workarounds to this?
Settings:
Build Action: FsLex
Copy to Output directory: Do Not Copy
File Name: AstLexer.fsl
In code:
<ItemGroup>
<Compile Include="PredefinedAst.fs" />
<Compile Include="CompiledFiles\AstParser.fs">
<Visible>false</Visible>
<Link>AstParser.fs</Link>
</Compile>
<Compile Include="CompiledFiles\AstLexer.fs">
<Visible>false</Visible>
<Link>AstLexer.fs</Link>
</Compile>
<FsYacc Include="AstParser.fsy">
<OtherFlags>--module Exselt.XPath.Parser.AstParser</OtherFlags>
</FsYacc>
<FsLex Include="AstLexer.fsl">
<OtherFlags>--unicode</OtherFlags>
</FsLex>
<Compile Include="Common.fs" />
<Compile Include="Parser.fs" />
</ItemGroup>