I am deploying a .NET Core console app as a standalone build to multiple platforms. I am having trouble getting the macOS version to run. When I run the executable, I get the following error:
"Error: assembly specified in the dependencies manifest was not found -- package: 'runtime.osx.10.10-x64.runtime.native.System', version: '4.3.0', path: 'runtimes/osx.10.10-x64/native/System.Native.a'"
I have built and deployed the app to win7-x86, win7-x64, win10-x86, win10-x64, centos.7-x64, all without any problems.
I am attempting to run the mac build on a Mac mini running macOS 10.12 (Sierra). I have tried targeting osx.10.10-x64 and osx.10.12-x64 and get the same error. I have also tried to build and publish under .NET Core 1.0.1, and 1.1.0, again with the same error.
I am building on a Windows 10 system, creating standalone builds in each case. I did get my app to run properly when I installed the .NET Core framework on the Mac (and built the app as a framework build), but I need to run standalone builds.
I have installed OpenSSL on the Mac through Homebrew, which is the only external dependency I'm aware of. My project.json file is below.
Any help would be appreciated!
{
"version": "1.1.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.NETCore.App": "1.1.0",
"Newtonsoft.Json": "9.0.1",
"System.Xml.XmlSerializer": "4.3.0"
},
"frameworks": {
"netcoreapp1.1": {
"imports": "dnxcore50"
}
},
"runtimes": {
"centos.7-x64": {},
"win10-x64": {},
"win10-x86": {},
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.12-x64": {}
},
"description": "XXX gameplay instance server.",
"title": "XXX"
}