This repository was archived by the owner on Apr 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.anygen
More file actions
41 lines (32 loc) · 1.48 KB
/
sample.anygen
File metadata and controls
41 lines (32 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* Sample anygen Config file */
///
/// Anygen config files must be in the same directory as the .csproj file
/// and have the same name, just use .anygen as the extension
/// so c:\foo\myproj.csproj -> c:\foo\myproj.anygen
///
/*
The format:
.xyz { // the file extension to generate for
// the command is the command to execute to produce the generated code.
// can be a single command or a whole batch script
command: @"sometool.exe --input=%AG_INPUTFILENAME% --namespace=%AG_NAMESPACE% --classname=%AG_CLASSNAME% ";
// where the tool should expect to get the results.
// should either be stdout, stderr or a full path to the generated file
results: stdout;
// where the tool should expect to read errors from
// should either be stdout, stderr or a full path to a file
errors: stdout;
// a .NET regular expression to parse the error messages
// use grouping names to match elements : row, column, message, level
// other groups are ignored.
error-rx: @"(?<filename>[^(]*)\((?<row>\d*),(?<column>\d*)\):(?<code>.*):(?<message>.*)";
}
*/
/*
Additonal environment variables that are exposed:
%AG_PROJECTFILENAME% -- full path to the project file name
%AG_INPUTFILENAME% -- input file for code generation
%AG_OUTPUTFILETYPE% -- expected ouptut type (.cs, .vb)
%AG_NAMESPACE% -- expected namespace
%AG_CLASSNAME% -- expected class name
*/