Visual Studio On Mac

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
It seems we have to wait for 4.20 so Im going down the VMWare route for now.

"NOP 4.1 finally moved to .NET Core. But Linux and Mac are not supported right now"
https://www.nopcommerce.com/boards/t/50215/nopcommerce-41-information-or-roadmap.aspx?p=2#206006

HTH
5 years ago
it's the file path analysis problem

edit NopFileProvider line 438 like this
        /// <summary>
        /// Maps a virtual path to a physical disk path.
        /// </summary>
        /// <param name="path">The path to map. E.g. "~/bin"</param>
        /// <returns>The physical path. E.g. "c:\inetpub\wwwroot\bin"</returns>
        public virtual string MapPath(string path)
        {
            path = path.Replace("~/", string.Empty).TrimStart('/');   //.Replace('/', '\\');
            return Path.Combine(BaseDirectory ?? string.Empty, path);
        }

it will work
5 years ago
whut_ray wrote:
it's the file path analysis problem

edit NopFileProvider line 438 like this...

it will work


@whut_ray With this fix, is development fully working for you now on the Mac with Visual Studio?
5 years ago
We made 4.1 run on MAC doing the following:

Edited the path below to (NopFileProvider line 438) to:

public virtual string MapPath(string path)
{
      path = path.Replace("~/", string.Empty).TrimStart('/');   //.Replace('/', '\\');
      return Path.Combine(BaseDirectory ?? string.Empty, path);
}
and in project src/Build/ClearPluginAssemblies.proj we removed the following:

<Exec Command='dotnet "$(MSBuildProjectDirectory)\ClearPluginAssemblies.dll" "OutputPath=$(OutputPath)|PluginPath=$(PluginPath)|SaveLocalesFolders=$(SaveLocalesFolders)"' />
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.