.NET Core will install and run on macOS - and just about any other desktop OS. IDEs are available for the mac, including: Visual Studio for Mac; VS Code (free, but not as professional/focused as VS) JetBrains Rider (paid) Mono is a good option that I've used in the past. But with Core 3.0 out now, I would go that route. Hi frnd, This is my first Post in this forum, I have the same problem as Vikas M had. I developed a application in Dotnet(C#) 2005 and successfully created a msi installer for windows and its working fine. But now i have to Create a setup for MAC and LINUX. So i searched internet and found MONO. Last year, I wrote an article about “.NET Core On Mac - Building An ASP.NET Core App With Web API, EF, PostgreSQL And Running It On Docker”. The article was using.NET Core 1.1 version and If you’ve been following the same steps mentioned from the article using.NET Core/ ASP.NET Core 2.0, then it’s expected that the steps won’t work anymore.
Re: Creating ASP.NET MVC Core app on Mac OSx with MS SQL Server db on Azure
Jan 05, 2017 02:44 AM|mattyochung|LINK
Hi, I'm facing the same problem as you did before. I've followed all your steps but no luck.
Everything looks good and works perfectly on localhost. But when I go to the website hosted on Azure, it just shows: 'An error occurred while starting the application.' without any details. I checked that there are file uploaded to my Azure web service, but I think there is something wrong with my Azure SQL so that the webpage cannot start? Would it possible that my database has never been loaded on Azure SQL Database?
Please help!!!! I stuck on this problem for 2 days.
What I did was:
1. dotnet ef migrations add InitialCreate -c ApplicationDbContext > Compilation succeeded.
2. dotnet ef database update -c ApplicationDbContext > Compilation succeeded.
3. dotnet run > Compilation succeeded.
Output of step 3:
Output of step 3:
info: Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory[1]
Executed DbCommand (373ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE') SELECT 1 ELSE SELECT 0
Executed DbCommand (373ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE') SELECT 1 ELSE SELECT 0
.... // doing DB seeding
info: Microsoft.Extensions.DependencyInjection.DataProtectionServices[0]
User profile is available. Using '/Users/matt/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
Hosting environment: Production
Content root path: /Users/matt/Documents/MyApp
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
User profile is available. Using '/Users/matt/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
Hosting environment: Production
Content root path: /Users/matt/Documents/MyApp
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
4. git push -u azure master > Deployment successful.
Output of step 4:
Output of step 4:
.... // doing remote stuffs
remote: Finished successfully.
remote: Running post deployment command(s).
remote: Deployment successful.
To https://myapp.scm.azurewebsites.net:443/myapp.git
85eecb5.914a2a0 master -> master
Drawing pad mac app. Branch master set up to track remote branch master from azure.
remote: Finished successfully.
remote: Running post deployment command(s).
remote: Deployment successful.
To https://myapp.scm.azurewebsites.net:443/myapp.git
85eecb5.914a2a0 master -> master
Drawing pad mac app. Branch master set up to track remote branch master from azure.
------------------------------------------------------------------------------------------
Even when the Control panel is minimized into the Grab tab, the most critical features remain accessible with just one click: Mute, Share Screen and Share Camera. To shrink the Control Panel into the Grab Tab, click the Shrink icon in the left menu. To expand the Grab Tab into the Control Panel (e.g., show all panes), click the Expand icon. How to move app panel on mac. To open a window and see the files on your Mac, switch to the Finder by clicking the Finder icon (pictured above) in the Dock. Switching to the Finder also reveals any Finder windows that might be hidden behind the windows of other apps. You can drag to resize windows and use the buttons to close, minimise or maximise windows. . Panelicious can hold everything: Keep files or apps in your panels. You can even have both in the same panel. Panelicious is customizable: Change the appearance of your panels to make them look the way you want. Panelicious doesn’t distract you: Hide all panels when you don’t need them.
In my appsetting.json:
{
'ConnectionStrings': {
'DefaultConnection': 'Server=tcp:myapp-test.database.windows.net,1433 ;Initial Catalog=myapp-test;Persist Security Info=False;User ID=<remove from blog>;Password=<remove from blog>;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;'
}, How to download free microsoft word in mac.
'ConnectionStrings': {
'DefaultConnection': 'Server=tcp:myapp-test.database.windows.net,1433 ;Initial Catalog=myapp-test;Persist Security Info=False;User ID=<remove from blog>;Password=<remove from blog>;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;'
}, How to download free microsoft word in mac.
'Logging': {
'IncludeScopes': false,
'LogLevel': {
'Default': 'Debug',
'System': 'Information',
'Microsoft': 'Information'
}
}
}
'IncludeScopes': false,
'LogLevel': {
'Default': 'Debug',
'System': 'Information',
'Microsoft': 'Information'
}
}
}
Sponsored By
Just in case you missed it, .NET is all open source now and .NET Core is a free, open source, cross-platform framework that you can download and start with in <10 minutes. You can get it on Mac, Windows, and a half-dozen Unixes at http://dot.net. Take that along with the free, cross-platform Visual Studio Code and you'll be writing C# and F# all over the place.
Ok, that said, there's two ways to deploy a .NET Core application. There's FDD and SCD. Since TLAs (three letter acronyms) are stupid, that's Framework-dependent and Self-contained. When .NET Core is installed it ends up in C:program filesdotnet on Windows, for example. In the 'Shared' folder there's a bunch of .NET stuff that is, well, shared. There may be multiple folders, as you can see in my folder below. You can have many and multiple installs of .NET Core.
![Run Net Core App On Mac Run Net Core App On Mac](/uploads/1/3/4/1/134186643/658615560.png)
When you're installing your app and its dependencies BUT NOT .NET Core itself, you're dependent on .NET Core already being on the target machine. That's fine for Web Apps or systems with lots of apps, but what if I want to write an app and give it to you as zip or on a USB key and and I just want it to work. I'll include .NET Core as well so the whole thing is a Self Contained Deployment.
It will make my 'Hello World' application larger than if I was using an existing system-wide install, but I know it'll Just Work because it'll be totally self-contained.
If I deploy my app along with .NET Core it's important to remember that I'll be responsible for servicing .NET Core and keeping it up to date. I also need to decide on my target platforms ahead of time. If I want it to run on Windows, Mac, and Linux AND just work, I'll need to include those target platforms and build deployment packages for them. This all makes mostly intuitive sense but it's good to know.
I'll take my little app (I'm just using a 'dotnet new' app) and I'll modify project.json in a text editor.
My app is a .NETCore.App, but it's not going to use the .NET Core platform that's installed. It'll use a local version so I'll remove 'type='platform' from this dependency. Mac torrent download unzip password.
Next I'll make a runtimes section to specify which ones I want to target. There's a list of ALL the Runtime IDs here.
After running 'dotnet restore' you'll want to build for each of these like this:
And then publish release versions after you've tested, etc.
Once this is done, I've got my app self-contained in n folders, ready to deploy to whatever systems I want.
You can see in the Win10 folder there's my 'MYAPPLICATION.exe' (mine is called scd.exe) that can be run, rather than running things like developers do with 'dotnet run.'
The software comes in 12 languages and is compatible with OS X 10.10 or later.Gemini 2 not only finds Duplicate Photos from Mac but also takes care of music, docs, video and other types of files. Organize your photos and music library by sorting them in the right order and never lose on any important file. Remove photos from photos app on mac. It also takes care of duplicate folders from all types of internal or external storage devices.
![Run net core app on mac computer Run net core app on mac computer](/uploads/1/3/4/1/134186643/515795164.png)
There's lots of good documentation about how you can tune and define exactly what gets deployed with your self contained application over at the .NET Core Docs. You can do considerable trimming to .NET Core, and there's talk of that becoming more and more automated in the future, possibly down to the method level.
Sponsor: Block nokia 200 downlond. Big thanks to Redgate for sponsoring the feed this week. Discover the world’s most trusted SQL Server comparison tool. Enjoy a free trial of SQL Compare, the industry standard for comparing and deploying SQL Server schemas.
About Scott
Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.