Registering a package

Discussions related to SoftPro Select Server development.

Moderator: Phil Barton

Post Reply
dn_garza
Posts: 25
Joined: Wed Jan 10, 2024 11:16 pm

Registering a package

Post 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")]
BobRichards
Posts: 1377
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Registering a package

Post 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.
Bob Richards, Senior Software Developer, SoftPro
dn_garza
Posts: 25
Joined: Wed Jan 10, 2024 11:16 pm

Re: Registering a package

Post by dn_garza »

Thanks, Bob! That worked.
Post Reply