I have an FSharp project that doesn't build because it does not include referenced files from the project file. While I have found a workaround (include these files manually in the NCrunch settings), this is not a long-term solution, because that requires us to remember to add dependencies not only in the project, but also in NCrunch.
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/d...icit-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:
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>