Plugins for Linux

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
один год назад
By default, nopcommerce works on Linux.
But there is a problem with my developed Plugin which does not work on clients install
Its a fresh install of v4.4.40
Looks like override functions do not work ?
Restarted / Stoped start webserver nothing fixes the problem

Is there a special build required for plugins to run on Linux ?
один год назад
If I look at the download page then there is a seperate install file for Linux

nopCommerce_4.50.2_NoSource_win_x64.zip (for Windows x64) - Download this package if you want to quickly deploy your site to a web server. No developer skills are required.

nopCommerce_4.50.2_NoSource_linux_x64.zip (for Linux) - Download this package if you want to quickly deploy your site to a web server. No developer skills are required.

Does anyone know what to do which is different for this build ?
Is anyone building from source to run on Linux ?
один год назад
Hi. For plugins, there is no difference on what operating system they work on, if you have specified anycpu for PlatformTarget project setting. If, for some reason, you chose a different type, then compatibility problems are possible on not suitable hardware. But in that case, most likely the site would not start at all.

Theoretically the only reason this can happen is if your plugin overrides some of the functionality overridden by another plugin. In version 4.40 you can check this in /Admin/Common/Warnings page

Yidna wrote:
By default, nopcommerce works on Linux.
But there is a problem with my developed Plugin which does not work on clients install
Its a fresh install of v4.4.40
Looks like override functions do not work ?
Restarted / Stoped start webserver nothing fixes the problem

Is there a special build required for plugins to run on Linux ?
один год назад
Although the nopCommerce code, like the .Net code itself, is cross-platform, it cannot run regardless of the operating system. Therefore, when preparing assemblies for deployment, we prepare two separate archives aimed at working on a particular system (details can be found in this article)

These differences concern only the Nop.Web project and the .Net runtime libraries. all other projects including plugins remain platform independent

Yidna wrote:
If I look at the download page then there is a seperate install file for Linux

nopCommerce_4.50.2_NoSource_win_x64.zip (for Windows x64) - Download this package if you want to quickly deploy your site to a web server. No developer skills are required.

nopCommerce_4.50.2_NoSource_linux_x64.zip (for Linux) - Download this package if you want to quickly deploy your site to a web server. No developer skills are required.

Does anyone know what to do which is different for this build ?
Is anyone building from source to run on Linux ?
один год назад
Thanks
RE Sergei-k wrote:
https://docs.microsoft.com/en-us/dotnet/core/deploying/deploy -with-vs?tabs=vs156)

This link does not work.
Is this the link you were refer to ?
https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy

I tried following the build instructions for Linux detailed here
https://www.nopcommerce.com/en/boards/topic/94305/blog-post-running-nopcommerce-on-linux-vps-part-2#295975

I am overriding functions that are in Nop.Services.dll
The override functions  do not work
Nothing in warnings
один год назад
Hi. A space crept into the address here is the correct link.

You overridden the method and what Order did you assign to your INopStartup implementation? It must be greater than 2000

Yidna wrote:
Thanks
RE https://docs.microsoft.com/en-us/dotnet/core/deploying/deploy -with-vs?tabs=vs156)
This link does not work.
Is this the link you were refer to ?
https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy

I tried following the build instructions for Linux detailed here
https://www.nopcommerce.com/en/boards/topic/94305/blog-post-running-nopcommerce-on-linux-vps-part-2#295975

I am overriding functions that are in Nop.Services.dll
The override functions  do not work
Nothing in warnings
один год назад
public int Order => 3000;
The plugin works fine in Windows

Is there a way to setup a Linux development enviroment to carry out debugging with Visual Studio ?
один год назад
I have had a second client confirm the behaviour
Two different operating systems - same version of .Net


Overrides can be troublesome generally getting them to load. It usually takes a restart of IIS and/or restart of the AppPool to load a plugin that has override functions.
I guess with Unix they just do not load at all ?

Is there some setting for the Plugin Project that could be used to target Unix ?
один год назад
I don't know about visual studio, it's better to use visual studio code

Yidna wrote:
public int Order => 3000;
The plugin works fine in Windows

Is there a way to setup a Linux development enviroment to carry out debugging with Visual Studio ?
один год назад
Could you send me your plugin by PM, I'll try check it too

Yidna wrote:
I have had a second client confirm the behaviour
Two different operating systems - same version of .Net


Overrides can be troublesome generally getting them to load. It usually takes a restart of IIS and/or restart of the AppPool to load a plugin that has override functions.
I guess with Unix they just do not load at all ?

Is there some setting for the Plugin Project that could be used to target Unix ?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.