Is it possible to develop NopCommerce on MAC? - macos

After I found NopCommerces on open source projects I'm trying to debug and run this projects on MAC machine and got below error.
I'm using MACOS Sierra version 10.12.5 with Microsoft Visual Studio 2017, Mono version 5.0.1.
However, I'm trying to search some tutorial they said We could not run NopCommerces on MAC osx so I want to verify here it is true or not.

I'm not sure with using mono!
But the last official release of nopCommerce is 3.90, which is targeting .NET Framework 4.5.1. And if you want to run it on mac, definitely you cannot.
But now as nopCommerce team announced upcoming version with .NET Core, yes you will be able to run it on mac too!
You can try to clone your project from GitHub/nopCommerce.
Note: upcoming version is still under development, so you may face some error and issues.
Hope this helps!
Edit:
nopCommerce 4.0 has been released, but still its targeting to .NET Framework 4.6 and not .NET Core. So you cannot run nopCommerce 4.0 to MAC or Linux.

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)"' />

Related

Unable to Pair to Mac with Visual Studio 2022 17.3 - .NET MAUI

I'm trying to pair with my Mac to build the iOS version of a MAUI application. I'm running VS2022 17.3 on both PC and Mac but getting this:
Kind of stumped as to why on a brand new Windows install and fresh versions of VS this basic function doesn't work.
Anyone know what to do to resolve this?
UPDATE:
The reason this was not working was that the OP did not have Mono installed on their System.
OG answer:
So I just tried it out on the following versions of VS MAC 17.3(Build 2102) with VS Windows 17.3 and it seems to be working
Steps I recommend you took to make sure this worked for you as well:
Make sure both PC are on the same network(LAN/WIFI)
Make sure there are no updates left over at your end.
If this was connected on a previous version of VS then you might have to disconnect/delete and reconnect this device.
Hope this helps!

How to use an older version of Xamarin.iOS with Visual Studio Mac?

Hi i mistakenly upgraded Visual Studio for Mac to 8.5.2 (build 13) which has Xamarin.iOS Version: 13.16.0.13 (Visual Studio Community).
Turns out this doesn't work with XCode 11.3.1 and needs XCode 11.4, which means I will need to upgrade the OS from Mojave to Catalina; i'm not ready to upgrade the OS just yet..
I have tried searching on the Microsoft website, but cant see any obvious links to downgrade or select a different Xamarin.iOS version
How can i roll back the Xamarin.iOS to a version that is compatible with XCode 11.3?
To use an older version of Xamarin.iOS you need to download it from a link.
It's very difficult to answer this question, because the answer need a link..
And Link-only answers can become invalid if the linked page changes...
So, First you need to find the version number of your wanted Xamarin.iOS.
Here you can see all release Version tags from the official
xamarin github repository.
https://github.com/xamarin/xamarin-macios/tags
Then you need to found the Microsoft official patern link from their official download .pkg repository used by Visual Studio.
The official Microsoft pkg repository : https://aka.ms/xvs/pkg
The patern link : https://aka.ms/xvs/pkg/<framework>/<version>.
Finally, you need to create your own link regardless you framework and version
Example:
Xamarin.iOS: https://aka.ms/xvs/pkg/macios/15.4.0.0
But you need to found out your own link by your self.
You can also try from the github
Xamarin.iOS https://github.com/xamarin/xamarin-macios/blob/main/DOWNLOADS.md

Can't connect PC to Mac (Xamarin.iOS versions mismatch)

I'm trying to connect my Windows 10 to my Mac to build a Xamarin.Forms app as I've done in the past. However, I'm getting the following error:
Xamarin.iOS versions mismatch The Xamarin.iOS SDK version installed on
Mac is not compatible with this version of Visual Studio. Would you
like us to install Xamarin.iOS '11.14' for you? This will overwrite
any existing Xamarin.iOS installation on your Mac.
Indeed, the version on the Mac is 11.12.0.4. I'm on the stable channel, and it's telling me there are no updates. and I'm on the latest VS on my PC - 15.8.1.
I tried clicking 'Install' but it fails telling me that
There were problems installing...
Is there a way to solve this without uninstalling and reinstalling Visual Studio (which might not even help)?
After further searching the only solution at the moment seems to be to use the beta channel in order to install Xamarin.iOS 11.14 on the Mac.
However, the better solution seems to be to wait. It's supposed to be updated
really soon [Yes. That's a quote.]
Sources for all of that (and how to upgrade using the beta channel):
https://github.com/xamarin/xamarin-macios/issues/4623
https://developercommunity.visualstudio.com/content/problem/311561/installing-xamarinios-1114-from-the-vs4win-connect.html
EDIT
Visual Studio for Mac has been updated. We're supposed to be able to update it and it's supposed to work now.

CodeTaskFactory" could not be found in the assembly"

I'm new in Dot net after I cloned some project from GitHub, I try to run then got below error.
OS: Mac 10.12.6 (16G29)
Tool version: Visual stuido 2017
SDK: 2
/Volumes/Users/Administrator/Documents/My Web Sites/nopCommerce-develop
/nopCommerce-develop/src/Build/ClearPluginAssemblies.proj(5,5): Error MSB4174:
The task factory "CodeTaskFactory" could not be found in the assembly "/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Micro
soft.Build.Tasks.v4.0.dll". (MSB4174) (Nop.Web)
As per the previous answer:
nopCommerce 4.0 has developed with .NET core, but still its targeting to .NET Framework 4.6 and not .NET Core. So you cannot run nopCommerce 4.0 to MAC or Linux.
Still if you would like to run it to cross platform, you can change the targeted framework to .NET Core and solve the errors may you face.

Xamarin.Forms project cannot be opened in VS2013 after install VS2015

I have a Xamarin.Forms project based on the shared template and VS2013.
I first have updated my machine from Win 8.1 to Win 10.
After doing that, I have tested the projects to my VS2013 installation. All projects including the .forms project have worked without problems.
Then I have installed VS2015 (unter Win 10).
After doing that, I cannot open my .forms-project unter VS2013 anymore.
Error message (translated to English):
Title: Check changes on project and solution.
This projects are not supported or there are changes needed that influences the project behavior so that the projects can be opened in this version of Visual studio.
Changes are automatically applied, so that the behavior is not influenced.
Not supported:
- Android-project
- iOS-Project
So… it seems as something from the VS2015 installation causes this error message in VS2013.
What do I have to do, to bring my project unter VS2013 to work again?
Done...
First, I have tried to remove the VS2013 add-on package “Get Xamarin” and reinstall the add-on package "Xamarin" (what - I think so - should be the new name of the Xamarin integration SW package).
This has not worked...
The installation then have crashed and showed a form with download-links for each piece of SW (including the Integration-SW Xamarin V3.11.1589).
I then have downloaded only the .msi to V3.11.1589 and started it.
By the setup, I was able to select the VS-Version where to install the SW (selected VS2013 as under VS2015 the SW already was installed).
After the installation, I was able again to open my project under VS2013 without error-message.
As I only had the chance to install the newest IS version and the newest V3.11.1589 have dependencies on the MAC (MAC OS at least Mac OS X 10.10.5, XCode at least 7, Xamarin.iOS at least 9.1), I was not able to connect to the MAC BH and had to update the MAC first to XCode 7.1 and the latest Xamarin Studio (about 4,5 gig to install).
After doing that, I have rebooted the MAC and also my PC, un-paired and re-paired the MAC Build Host with my PC and then was able to work again with my VS2013 installation.
Conclusion:
It seems, as the installation of VS2015 with Xamarin (at least on Win
10) removes an already installed Xamarin on an already installed
VS2013, so that the Xamarin projects cannot be opened anymore.
If VS2015 is installed (with Xamarin option), the Xamarin Integration SW V. V3.11.1589 is
installed to VS2015 (today). This is also the latest “stable”
release on the Xamarin page (but I don’t have found a dedicated
download-link for the .msi on the Xamarin pages).
So… as I think, that for VS2015 the
latest “official” version should be used, I think, you also should
install the latest version for the older VS version (so that you are
able to develop with the “old” VS version but also to migrate your
project to VS2015 what should be the target normally).
But, if you want to use this version (V3.11.1589) you also have to update XCode and Xamarin Studio on the MAC (what - depending on your Internet
connection - can take a few hours).
So… if you have the same problem, I suggest you to:
Search for the .msi to V3.11.1589 and install it (select only your “old” VS-Installation in the setup).
As I don’t have found a download link, I have posted in this thread (I think that an answer from Xamarin with a download-link should be added soon)
Update the MAC to XCode 7.1 and Xamarin Studio to the latest stable version (Xamarin.iOS, Version: 9.1.0.27)
Unpair the Build Host in the MAC
Reboot MAC and your development PC
Re-Pair the Build Host
After doing that, my VS2013 installation (Xamarin.Forms project) now works again.

Resources