-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOverview.xml
128 lines (128 loc) · 5.13 KB
/
Overview.xml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="../../../../Common/Overview.xsl" type="text/xsl"?>
<VSSDKSample>
<ImagePath>../../../../Common</ImagePath>
<Status>
<Accessibility>true</Accessibility>
<ArchitectureDiagram>true</ArchitectureDiagram>
<Comments>true</Comments>
<Documentation>true</Documentation>
<ErrorHandling>false</ErrorHandling>
<FollowSDKCodingStandards>true</FollowSDKCodingStandards>
<Localizable>true</Localizable>
<Overview>true</Overview>
<ScenarioTests>true</ScenarioTests>
<Supported>true</Supported>
<UnitTests>true</UnitTests>
<Style>Example</Style>
</Status>
<Overview>
<ShortName>C# Example.SingleFileGenerator</ShortName>
<LongName>C# Single File Generator Example</LongName>
<Phrase>Generating a code file from a XML file</Phrase>
</Overview>
<Introduction>
<Summary>
This sample demonstrates how to build a single file generator.
</Summary>
<Goal>Show how to implement a single file generator.</Goal>
<Goal>Show how to use CodeDom to generate source code in Visual Basic, C#, or J#.</Goal>
<Image width="400" height="400">Example.SingleFileGenerator.jpg</Image>
</Introduction>
<SampleInfo>
<State>
</State>
<Type>Example</Type>
<Complexity>2</Complexity>
<Screenshot>Example.SingleFileGenerator.jpg</Screenshot>
<Area>Project</Area>
<Language>C#</Language>
<Folder>VisualStudioIntegration\Samples\Project\CSharp\Example.SingleFileGenerator\</Folder>
<SampleSolution>GeneratorSample.sln</SampleSolution>
<FolderUnitTest>VisualStudioIntegration\Samples\Project\CSharp\Example.SingleFileGenerator\TDD\</FolderUnitTest>
<UnitTestStartup>UnitTests.sln</UnitTestStartup>
<Doc>ms-help://MS.VSCC.v90/MS.VSIPCC.v90/MS.VSSDK.v90/dv_vsintegration/html/54b34cda-8b09-428f-bbe0-536864b911a3.htm</Doc>
<Keywords>
<Keyword>Single</Keyword>
<Keyword>File</Keyword>
<Keyword>Generator</Keyword>
<Keyword>CodeDom</Keyword>
</Keywords>
</SampleInfo>
<GettingStarted>
<Paragraph>
The sample shows how to implement a single file generator.
It demonstrates leveraging CodeDom to generate source code in Visual Basic, C#, or J#.
It also demonstrates how to validate a XML document against a schema and communicate errors through the Error List.
</Paragraph>
</GettingStarted>
<AdditionalResources>
<Resource>
<Title>Visual Studio SDK Website</Title>
<URL>http://msdn.microsoft.com/vstudio/extend</URL>
</Resource>
</AdditionalResources>
<UnitTests>
<Test>Create generator instance.</Test>
<Test>Verify that QI for IVsSingleFileGenerator succeeds.</Test>
<Test>Verify that a single file generator registration attribute is created.</Test>
<Test>Verify that Register method gets appropiately invoked.</Test>
<Test>Verify that Un-Register method gets appropiately invoked.</Test>
</UnitTests>
<FunctionalTests>
<Test>Load the sample</Test>
<Test>Verify the sample builds in Debug Configuration.</Test>
<Test>Verify the sample builds in Release Configuration.</Test>
<Test>Verify that the generator is properly registered when building.</Test>
<Test>Verify that the generator works (C#).</Test>
<Test>Verify that the generator works (Visual Basic).</Test>
<Test>Verify that the generator works (J#).</Test>
<Test>Verify that the generator fails for bad XML (C#).</Test>
<Test>Verify that the generator fails for bad XML (Visual Basic).</Test>
<Test>Verify that the generator fails for bad XML (J#).</Test>
</FunctionalTests>
<ProjectFiles>
<File>
<Name>AssemblyInfo.cs</Name>
<Description>This file contains assembly custom attributes.</Description>
</File>
<File>
<Name>BaseCodeGenerator.cs</Name>
<Description>Abstract class that implements the IVsSingleFileGenerator interface.</Description>
</File>
<File>
<Name>BaseCodeGeneratorWithSite.cs</Name>
<Description>Abstract class that inherits from BaseCodeGenerator and implements the IObjectWithSite interface.</Description>
</File>
<File>
<Name>XmlClassGenerator.cs</Name>
<Description>The single file generator class.</Description>
</File>
<File>
<Name>SourceCodeGenerator.cs</Name>
<Description>Static class that contains the CodeDom code used to generate source code.</Description>
</File>
<File>
<Name>Support.cs</Name>
<Description>Static class containing support functions.</Description>
</File>
<File>
<Name>XmlClassGeneratorSchema.xsd</Name>
<Description>Schema for XML documents that the generator knows how to convert into source code.</Description>
</File>
<File>
<Name>Strings.resx</Name>
<Description>Resource strings (localizable).</Description>
</File>
<File>
<Name>ClassDiagram.cd</Name>
<Description>Class diagram for all types defined in this project.</Description>
</File>
</ProjectFiles>
<History>
<Change>
<Date>2005-10-04</Date>
<Description>Created this example for the Visual Studio 2005 SDK.</Description>
</Change>
</History>
</VSSDKSample>