-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader.html
More file actions
408 lines (381 loc) · 19.1 KB
/
CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader.html
File metadata and controls
408 lines (381 loc) · 19.1 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class CodeFactoryConfigurationLoader
| CodeFactory for Windows </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class CodeFactoryConfigurationLoader
| CodeFactory for Windows ">
<meta name="generator" content="docfx ">
<link rel="shortcut icon" href="../images/favicon.png">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/night-owl.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" integrity="sha384-EvBWSlnoFgZlXJvpzS+MAUEjvN7+gcCwH+qh7GRFOGgZO0PuwOFro7qPOJnLfe7l" crossorigin="anonymous">
<link rel="stylesheet" href="../styles/config.css">
<link rel="stylesheet" href="../styles/discord.css">
<link rel="stylesheet" href="../styles/singulink.css">
<link rel="stylesheet" href="../styles/main.css">
<meta property="docfx:navrel" content="../toc.html">
<meta property="docfx:tocrel" content="toc.html">
<meta property="docfx:rel" content="../">
<meta property="docfx:newtab" content="true">
</head>
<body>
<div class="top-navbar">
<a class="burger-icon" onclick="toggleMenu()">
<svg name="Hamburger" style="vertical-align: middle;" width="34" height="34" viewbox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M20 6H4V9H20V6ZM4 10.999H20V13.999H4V10.999ZM4 15.999H20V18.999H4V15.999Z"></path></svg>
</a>
<a class="brand" href="../index.html">
<img src="../images/logo.png" alt="CodeFactory for Windows" class="logomark">
<span class="brand-title">CodeFactory for Windows</span>
</a> </div>
<div class="body-content">
<div id="blackout" class="blackout" onclick="toggleMenu()"></div>
<nav id="sidebar" role="navigation">
<div class="sidebar">
<div>
<div class="mobile-hide">
<a class="brand" href="../index.html">
<img src="../images/logo.png" alt="CodeFactory for Windows" class="logomark">
<span class="brand-title">CodeFactory for Windows</span>
</a> </div>
<div class="sidesearch">
<form id="search" role="search" class="search">
<i class="bi bi-search search-icon"></i>
<input type="text" id="search-query" placeholder="Search" autocomplete="off">
</form>
</div>
<div id="navbar">
</div>
</div> <div class="sidebar-item-separator"></div>
<div id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="footer">
<strong><a href='https://www.codefactory.software'>CodeFactory</a></strong>
</div> </nav>
<main class="main-panel">
<div id="search-results" style="display: none;">
<h1 class="search-list">Search Results for <span></span></h1>
<div class="sr-items">
<p><i class="bi bi-hourglass-split index-loading"></i></p>
</div>
<ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
</div>
<div role="main" class="hide-when-search">
<div class="subnav navbar navbar-default">
<div class="container hide-when-search" id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</div>
</div>
<article class="content wrap" id="_content" data-uid="CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader">
<h1 id="CodeFactory_WinVs_Loader_CodeFactoryConfigurationLoader" data-uid="CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader" class="text-break">Class CodeFactoryConfigurationLoader
</h1>
<div class="markdown level0 summary"><p>Utility class that loads a CFA file libraries into memory and creates instances of all the visual studio actions and makes them available to visual studio for usage.</p>
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
<div class="level1"><span class="xref">CodeFactoryConfigurationLoader</span></div>
</div>
<div class="inheritedMembers">
<h5>Inherited Members</h5>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
</div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="CodeFactory.html">CodeFactory</a>.<a class="xref" href="CodeFactory.WinVs.html">WinVs</a>.<a class="xref" href="CodeFactory.WinVs.Loader.html">Loader</a></h6>
<h6><strong>Assembly</strong>: CodeFactory.WinVs.dll</h6>
<h5 id="CodeFactory_WinVs_Loader_CodeFactoryConfigurationLoader_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class CodeFactoryConfigurationLoader</code></pre>
</div>
<h3 id="fields">Fields
</h3>
<h4 id="CodeFactory_WinVs_Loader_CodeFactoryConfigurationLoader_CodeFactoryDirectoryName" data-uid="CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader.CodeFactoryDirectoryName">CodeFactoryDirectoryName</h4>
<div class="markdown level1 summary"><p>Constant that holds the name of the code factory directory.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const string CodeFactoryDirectoryName = "CodeFactory"</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
<td></td>
</tr>
</tbody>
</table>
<h4 id="CodeFactory_WinVs_Loader_CodeFactoryConfigurationLoader_CodeFactoryExtension" data-uid="CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader.CodeFactoryExtension">CodeFactoryExtension</h4>
<div class="markdown level1 summary"><p>Constant that holds the name of the code factory file extension.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const string CodeFactoryExtension = ".cfa"</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="methods">Methods
</h3>
<a id="CodeFactory_WinVs_Loader_CodeFactoryConfigurationLoader_GetAssembliesToLoadFromPackage_" data-uid="CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader.GetAssembliesToLoadFromPackage*"></a>
<h4 id="CodeFactory_WinVs_Loader_CodeFactoryConfigurationLoader_GetAssembliesToLoadFromPackage_System_String_CodeFactory_WinVs_Loader_VsFactoryConfiguration_" data-uid="CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader.GetAssembliesToLoadFromPackage(System.String,CodeFactory.WinVs.Loader.VsFactoryConfiguration)">GetAssembliesToLoadFromPackage(string, VsFactoryConfiguration)</h4>
<div class="markdown level1 summary"><p>Helper method that gets the list of all the assembly files that need to copied from the code factory package.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static List<string> GetAssembliesToLoadFromPackage(string packageDirectory, VsFactoryConfiguration config)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
<td><span class="parametername">packageDirectory</span></td>
<td><p>The target directory all files are to be copied to.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="CodeFactory.WinVs.Loader.VsFactoryConfiguration.html">VsFactoryConfiguration</a></td>
<td><span class="parametername">config</span></td>
<td><p>The factory configuration to load the files from.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></td>
<td><p>List of the assembly and support files to load, or null if a load failure error occurred.</p>
</td>
</tr>
</tbody>
</table>
<a id="CodeFactory_WinVs_Loader_CodeFactoryConfigurationLoader_LoadCodeFactoryConfiguration_" data-uid="CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader.LoadCodeFactoryConfiguration*"></a>
<h4 id="CodeFactory_WinVs_Loader_CodeFactoryConfigurationLoader_LoadCodeFactoryConfiguration_System_String_System_String_CodeFactory_WinVs_IVsActions_" data-uid="CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader.LoadCodeFactoryConfiguration(System.String,System.String,CodeFactory.WinVs.IVsActions)">LoadCodeFactoryConfiguration(string, string, IVsActions)</h4>
<div class="markdown level1 summary"><p>Loads a code factory configuration into memory and returns the target visual studio actions to be used by code factory.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IVsCodeFactoryLoadStatus LoadCodeFactoryConfiguration(string codeFactoryPackageFile, string unpackDirectory, IVsActions actions)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
<td><span class="parametername">codeFactoryPackageFile</span></td>
<td><p>The fully qualified path to the code factory package file.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
<td><span class="parametername">unpackDirectory</span></td>
<td><p>The fully qualified path to the unpackDirectory for the code factory libraries.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="CodeFactory.WinVs.IVsActions.html">IVsActions</a></td>
<td><span class="parametername">actions</span></td>
<td><p>The implementation of the actions interface to be injected into each created visual studio action.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="CodeFactory.WinVs.Loader.IVsCodeFactoryLoadStatus.html">IVsCodeFactoryLoadStatus</a></td>
<td></td>
</tr>
</tbody>
</table>
<a id="CodeFactory_WinVs_Loader_CodeFactoryConfigurationLoader_LoadFactoryLibraries_" data-uid="CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader.LoadFactoryLibraries*"></a>
<h4 id="CodeFactory_WinVs_Loader_CodeFactoryConfigurationLoader_LoadFactoryLibraries_CodeFactory_WinVs_Loader_VsFactoryConfiguration_System_String_" data-uid="CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader.LoadFactoryLibraries(CodeFactory.WinVs.Loader.VsFactoryConfiguration,System.String)">LoadFactoryLibraries(VsFactoryConfiguration, string)</h4>
<div class="markdown level1 summary"><p>Loads the factory libraries into the running visual studio instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static LibraryLoadStatus LoadFactoryLibraries(VsFactoryConfiguration config, string packageDirectory)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="CodeFactory.WinVs.Loader.VsFactoryConfiguration.html">VsFactoryConfiguration</a></td>
<td><span class="parametername">config</span></td>
<td><p>The code factory configuration to load assemblies from.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
<td><span class="parametername">packageDirectory</span></td>
<td><p>The directory where the packages are found.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="CodeFactory.WinVs.Loader.LibraryLoadStatus.html">LibraryLoadStatus</a></td>
<td><p>Data object that holds the status of loaded factory libraries. This will always return an instance of the status.</p>
</td>
</tr>
</tbody>
</table>
<a id="CodeFactory_WinVs_Loader_CodeFactoryConfigurationLoader_LocateFactoryPackage_" data-uid="CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader.LocateFactoryPackage*"></a>
<h4 id="CodeFactory_WinVs_Loader_CodeFactoryConfigurationLoader_LocateFactoryPackage_System_String_" data-uid="CodeFactory.WinVs.Loader.CodeFactoryConfigurationLoader.LocateFactoryPackage(System.String)">LocateFactoryPackage(string)</h4>
<div class="markdown level1 summary"><p>Helper method that determines if a code factory extension file is located in the directory. This will return the first CFA file that is located in the directory.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string LocateFactoryPackage(string sourceDirectory)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
<td><span class="parametername">sourceDirectory</span></td>
<td><p>The directory to search for the code factory extension file.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
<td><p>The fully qualified path to the code factory extension file, or null if no file was found.</p>
</td>
</tr>
</tbody>
</table>
</article>
</div>
<div class="copyright-footer">
<span>© CodeFactory, LLC. All rights reserved.</span>
</div>
</main>
</div>
<script src="https://code.jquery.com/jquery-3.6.3.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js" integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
<script type="text/javascript" src="../styles/jquery.twbsPagination.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mark.js@8.11.1/dist/jquery.mark.min.js"></script>
<script type="text/javascript" src="../styles/url.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/anchor-js@5.0.0/anchor.min.js"></script>
<script type="text/javascript" src="../styles/docfx.js"></script>
<script type="text/javascript" src="../styles/main.js"></script>
<script type="text/javascript" src="../styles/singulink.js"></script> </body>
</html>