Developing Packages for Select 4.6 and beyond

Discussions related to custom development with Select.
Post Reply
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Developing Packages for Select 4.6 and beyond

Post by BobRichards »

This is the process as of June 25, 2019. As changes occur, this post will be updated. Additional information is attached.

The SoftPro Select SDK VSIX is compatible with VS 2015 only. You should continue to use VS2015 at this time if possible.
  1. Install the SDK VSIX on VS 2015. See topic 4.6 VSIX location for the location of the VS extension.
  2. Use SoftPro project templates installed by the VSIX to create desired Shell/Server/Plugin package projects, etc. in VS 2015.

For developers who want to use VS 2017 for development, there’s a couple of options:
  1. The Easy way:
    1. Install the SDK VSIX on VS 2015. See topic 4.6 VSIX location for the location of the VS extension.
    2. Use SoftPro project templates installed by the VSIX to create desired Shell/Server/Plugin package projects, etc. in VS 2015.
    3. Open the same projects in VS 2017 and let Visual Studio “migrate” those projects natively.
    4. Continue working on that code, debugging the packages in VS 2017.
  2. The Hard way: Create C# class library projects in VS 2017 and install appropriate NuGet packages from nuget.org based on the type of SoftPro package project they want to create.
    1. Shell package project – SoftPro.Select.Shell.Sdk nuget package
    2. Server package project – SoftPro.Select.Server.Sdk nuget package
    3. Plugin package project – SoftPro.Select.Plugin.Sdk nuget package
Attachments
SoftPro Select Plugins 4.6.0.pdf
(961.6 KiB) Downloaded 186 times
Bob Richards, Senior Software Developer, SoftPro
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Developing Packages for Select 4.6 and beyond

Post by BobRichards »

I'd like to thank Todd for sending information that might prove useful to other developers when working with Select 4.6.3 and later:

Using 4.6.3, I built a new shell package project and a new plugin project and had the latter reference the former, as per documentation. Upon building, I received a build error saying it could not locate a particular file (error highlighted):

1> "C:\dev\samples\Ribbon463\packages\SoftPro.Select.Shell.Sdk.4.6.3\build\spctc.exe" /src:"Ribbon463.ctd"
1>C:\dev\samples\Ribbon463\RibbonShell463\Ribbon463.ctd(7): error C0002: Could not find a part of the path
  'C:\dev\samples\Ribbon463\packages\SoftPro.Select.Shell.Sdk.4.6.1\Tools\Shell.cts'.
1>C:\dev\samples\Ribbon463\packages\SoftPro.Select.Shell.Sdk.4.6.3\build\SoftPro.Select.Shell.Sdk.targets(43,5): error MSB3073: The command   ""C:\dev\samples\Ribbon463\packages\SoftPro.Select.Shell.Sdk.4.6.3\build\spctc.exe" /src:"Ribbon463.ctd"" exited with code -1.
1>Done executing task "Exec" -- FAILED.
1>Done building target "CompileCommandTable" in project "RibbonShell463.csproj" -- FAILED.
1>
1>Build FAILED.

The cause was buried in the .ctd file, buried in the shell package project. The hrefs were still referencing the old API. Once these were manually edited and corrected, the build was fine.
tip.png
tip.png (156.89 KiB) Viewed 6149 times
Bob Richards, Senior Software Developer, SoftPro
Post Reply