DNX/CoreClr: and again…

A couple of months is a while when you haven’t touched things… so I needed a refresh on this set of errors:

dnx -p .\project.json run

DnxRevisited01

The current runtime target framework is not compatible with 'GroundTrucks'

dnvm list

DnxRevisited02

dnvm install latest -r coreclr

DnxRevisited03

dnx -p .\project.json run

DnxRevisited04

“…does not contain a static ‘Main’ method suitable for an entry point”

Fair enough…

DnxRevisited05

DnxRevisited06

Code.

Out of interest, I backspaced on the 23427 above, to see if anything newer is on offer. There is, so I’ll take that:

DnxRevisited07

That leads to this error:

DnxRevisited08

“Error: Dependencies in project.json were modified. Please run “dnu restore” to generate a new lock file.”

DnxRevisited09

Key commands again then (I know I’m repeating stuff, but this might in fact be the first time I’ve put them in one place):

dnu  restore
dnvm list
dnvm install latest -r coreclr
dnvm install latest -r clr
dnx -p .\project.json run dnu pack --configuration release

 

And finally for tonight, I wanted to find out where the DLLs get stored by default. While this does not directly answer that, it is good enough (thanks, Author).

That means I can run..

dnu pack –configuration release

DnxRevisited10

DnxRevisited12

Run a bit of ildasm to see how it all looks:

DnxRevisited13

DnxRevisited15

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s