GlobalParams 1.1.0
See the version list below for details.
dotnet add package GlobalParams --version 1.1.0
NuGet\Install-Package GlobalParams -Version 1.1.0
<PackageReference Include="GlobalParams" Version="1.1.0" />
paket add GlobalParams --version 1.1.0
#r "nuget: GlobalParams, 1.1.0"
// Install GlobalParams as a Cake Addin #addin nuget:?package=GlobalParams&version=1.1.0 // Install GlobalParams as a Cake Tool #tool nuget:?package=GlobalParams&version=1.1.0
GlobalParams
What is it?
An assembly that defines an implementation of the IWizard interface which provides all templates in a multi-project template with access to the parameters of the top level template.
You should probably be familiar with the concepts on these links.
To see some existing implementations you can take a look at the source for these projects.
How to use it?
- Ensure that the GlobalParams assembly is deployed to the GAC on any system that will use the template
- Modify all of the .vstemplate files in the multi-project template to include the
WizardExtension
element from this example
<VSTemplate Type="Project" Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<WizardExtension>
<Assembly>GlobalParams, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ea5a5299819fb7c0</Assembly>
<FullClassName>GlobalParams.WizardMPT</FullClassName>
</WizardExtension>
</VSTemplate>
How to use it with custom UI?
Ensure that the GlobalParams assembly is deployed to the GAC on any system that will use the template
Create a project that will define the wizard implementation
Add a reference to the GlobalParams assembly
Create a class and have it derive from
GlobalParams.WizardMPT
Override the
OnBeforeRunStarted
method- Invoke the custom UI component
- Return
true
if the top level template parameters need to be accessible to all templates orfalse
if they do not.
Modify all of the .vstemplate files in the multi-project template to include a
WizardExtension
element that points to your wizard assembly and class.
Documentation
Visit the GitHub Project for additional documentation.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 3.5
- VSSDK.TemplateWizardInterface.9 (>= 9.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1.1.0
Initial Release