Created
September 5, 2015 11:16
-
-
Save teyc/1a8a5ce733f4e427027a to your computer and use it in GitHub Desktop.
DotNet CoreCLR dnxcore50 on OS X console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.0.0", | |
"dependencies": { | |
}, | |
"frameworks": { | |
"dnxcore50": { | |
"dependencies": { | |
"System.Runtime": "4.0.0-beta-*" | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace CLibrary | |
{ | |
public class Sample | |
{ | |
public string OperatingSystem | |
{ | |
get | |
{ | |
return "OS X"; | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ConsoleTest | |
{ | |
using System; | |
using CLibrary; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
var os = new Sample().OperatingSystem; | |
System.Console.Out.WriteLine("Hello " + os); | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.0.0-*", | |
"dependencies": { | |
"CLibrary": "" | |
}, | |
"frameworks": { | |
"dnxcore50": { | |
"dependencies": { | |
"System.Console": "4.0.0-beta-22231" | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"projects": [ | |
"CLibrary", | |
"ConsoleTest" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
dnu restore | |
dnu build CLibrary --out bin/ | |
dnu build ConsoleTest --out bin/ | |
dnx bin/Debug/dnxcore50/ConsoleTest.dll | |
clean: | |
rm -rf bin/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment