Aside: If that's your real name, ...
> Aside: If that's your real name, ...
It is, without the [C# MVP] part of course, ;).
What brings that up?
>> > I've tried associating a batch file with the project, but there's a
>> > problem: VS.NET doesn't detect that source code files have changed as a
[quoted text clipped - 8 lines]
> I do, both the higher level "Detect changes" and the sub-tick
> "Automatically load if not changed".
Hmm, that is odd. I was compiling a compiler using a pre-build step before
and that was working ok, and I have one project inwhich I build my files
externally.
How did you associate the bat file?
Barry Kelly - 26 Oct 2004 16:47 GMT
>> Aside: If that's your real name, ...
>
> It is, without the [C# MVP] part of course, ;).
>
> What brings that up?
Well, here in Ireland, it would be a little too grand to be believed. You'd
have been bullied at school for having pompous, hubristic, over-proud
parents :)
>>> > I've tried associating a batch file with the project, but there's a
>>> > problem: VS.NET doesn't detect that source code files have changed as
[quoted text clipped - 15 lines]
>
> How did you associate the bat file?
Project | Properties | Build Events | Pre-build event command line:
$(ProjectDir)build-grammar.cmd
Contents of build-grammar.cmd:
---8<---
@echo off
rem First, go to the project directory.
cd ../..
rem Next, build the grammar.
antlr pipe-expr.g
antlr type-checker.g
--->8---
On second glance, "../.." looks Unix, but it works perfectly fine.
-- Barry Kelly
Barry Kelly - 26 Oct 2004 17:04 GMT
> ---8<---
> @echo off
[quoted text clipped - 8 lines]
> antlr type-checker.g
> --->8---
Even when I insert commands to delete the generated files (in case ANTLR
does something odd which makes the files look unchanged) before running
ANTLR, it still takes two cycles.
-- Barry Kelly