Points to Note When Developing Extensions for Next Design V4.0


Summary

If you are developing an extension for V4.0 in order to continue using V4.0 without updating to V5.0, you will need to modify the settings of your extension development project.
(No changes are necessary if you are using a pre-built extension as-is.)

subject (of taxation, etc.)

A configuration change is required in one of the following cases

phenomenon

Projects created using the method described above are configured to use the latest version of the extension development package.
With the update to V5.0, the latest version of the extension development package will also be updated to the V5.0 package.
Therefore, if you are building an extension for V4.0, you must change the configuration to use the V4.0-compatible version of the extension development package.

If you build without changing the settings, the package for the latest version, V5.0, will be used. If you install that extension and launch Next Design V4.0, the following error message will appear and the extension will not work.

Failed to activate the "........" extension. (Unable to load one or more of the requested types. Could not load file or assembly 'NextDesign.Desktop, Version=5.0.x.xxxxx, Culture=neutral, PublicKeyToken=null'. The specified file was not found.)

cope

To avoid the above error, please change the settings of your extension development project as follows

Specifying the Target Framework

Please configure the target framework for the extension development project as follows.

Item Name Setting value
Target Framework .NET 8.0

The procedure for changing the settings via Visual Studio is as follows

  1. Open the solution in Visual Studio.
  2. Right-click the project in Solution Explorer and select [Properties].
  3. In the Navigator, select [Application] > [General], and change the [Target Framework] to the setting listed above.

Change target framework

Specifying the version of the package to use

For the following packages used in the extension development project, please explicitly specify the version to ensure you are using the version compatible with V4.0.

Packages Available V4.0 SUPPORTED VERSIONS
NextDesign.Desktop 4.0.4.50616
NextDesign.Core 4.0.4.50616
NextDesign.Desktop.ExtensionPoints (*) 1.2.2.41030

(*) Not required if the ExtensionPoints library is not used.

The procedure for changing the settings via Visual Studio is as follows

  1. Open the solution in Visual Studio.
  2. In the Solution Explorer, right-click on the project and run "Manage NuGet Packages" to display the "NuGet Package Manager".
  3. Select the [Installed] tab, specify the version of the package listed above, and click the [Update] button.
  4. Run the build and verify that it succeeds.

Reinstall the package

supplement

Extensions with the above configuration changes will work with both V4.0 and V5.0.

That is all.