4 ms·
Sigh. Different release. Different error trying to get the hello world application running on a mac. One day...
by euroclydon 11y ago
Sigh. Different release. Different error trying to get the hello world application running on a mac. One day...
- Locke1689 11y agoDid you try https://dotnet.github.io/getting-started/ https://dotnet.github.io/getting-started/? Can I help with getting it running?
- euroclydon 11y agoI did that the other day, on beta8 or whatever. In that case, I could run a console app. Then I tried the Yeoman setup [1] for a simple website without auth. It failed to run. Today, I uninstalled mono, previous dmx stuff, and ran the package linked in this story. Same result. Yeoman website failed. It's failing to resolve the fx dependencies. Also, it's difficult for me to understand if I need mono or not. I have it. [1] https://docs.asp.net/en/latest/tutorials/your-first-mac-aspnet.html https://docs.asp.net/en/latest/tutorials/your-first-mac-aspn...
- Locke1689 11y agoAh, sorry, I know nothing about Yeoman -- I'm only familiar with console applications :)
- soccerdave 11y agoI followed the steps here. Do you happen to know how to build the command-line app in to an executable? I was able to run it with 'dnx run', but not sure how to build it
- edgyswingset 11y agoYou have to use dnu. To restore packages: $ dnu restore To build: $ dnu build To run: $ dnx run To run some other command: $ dnx <COMMAND_HERE>
- soccerdave 11y agoI was able to use 'dnu build', but that looks like it builds a dll and places it in a folder. I was curious if it's possible to build a single executable (similar to go) that can be run. Also, 'dnx run' is slightly slow so I wanted to see if the performance hit was less after building an exe.
- edgyswingset 11y agoAh! What you're looking for is dotnet/cli[0]. [0] https://github.com/dotnet/cli https://github.com/dotnet/cli
- shanselman 11y agoSoon, but not quite yet. you'll be able to "dotnet compile" in a folder and that'll make stuff, and then "dotnet compile --native" will give you a single linked executable.
- voltagex_ 11y agoHappy to help if I can - it's also worth a bug report as there will be an RC2.
- euroclydon 11y agoWhen running: dnu build, here are the first problems: ... Using Package dependency System.Threading 4.0.0 Source: /Users/joshuapearce/.dnx/packages/System.Threading/4.0.0 Unable to resolve dependency fx/mscorlib Unable to resolve dependency fx/System Unable to resolve dependency fx/System.Core Unable to resolve dependency fx/Microsoft.CSharp Unable to resolve dependency fx/System.IO Unable to resolve dependency fx/System.Security Unable to resolve dependency fx/System.Xml Unable to resolve dependency fx/System.Xml.Linq Unable to resolve dependency fx/System.Runtime Unable to resolve dependency fx/System.ComponentModel.DataAnnotations Unable to resolve dependency fx/System.Collections Unable to resolve dependency fx/System.Text.Encoding Unable to resolve dependency fx/System.Threading.Tasks Unable to resolve dependency fx/System.Collections.Concurrent ...
- voltagex_ 11y agoI think setting DNX_TRACE=1 will give you some more info. Probably better to open an issue and discuss there - at least because it's easier to read large amounts of text on GitHub