Page 1 of 1

Registering a package

Posted: Mon Feb 19, 2024 1:42 am
by dn_garza
When trying to add the attributes to register the package, the below attributes, except for 'Guid' are showing the error "The type or namespace name could not be found (are you missing a using directive or assembly reference". However, as there are no potential fixes suggested, I'm unsure which using directives to add or assembly references to add if needed.

Code: Select all

[RegisterPackage("XXXXXX", "XXXXXX Orders Extension", "1.0.0.0", "PackageLicense", true)]
[ProvideResources("XXXXXXExtension.Properties.Resources")]
[RegisterProduct("XXXXXX", "XXXXXX Orders Extension", "1.0.0.0", "This package retrieves orders from XXXXXX.", "")]
[Guid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")]

Re: Registering a package

Posted: Mon Feb 19, 2024 9:08 pm
by BobRichards
If you look up the attributes in the Select SDK Help file (SelectSdk.chm), you will see that all three are defined in SoftPro.Select.Shell.dll in the namespace SoftPro.Select.Shell.Registration. Add the DLL as a project reference and add "using SoftPro.Select.Shell.Registration;" to the top of the source file.

The SDK Help file is a wealth of information about Select public libraries. If classes or attributes are not part of .NET, try looking them up in the SDK.

Re: Registering a package

Posted: Wed Feb 21, 2024 12:48 am
by dn_garza
Thanks, Bob! That worked.