question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to dotnet run with framework from non-project.json directory causes `Object reference not set to an instance of an object.` error.

See original GitHub issue

Steps to reproduce

  1. Go to directory without a project.json
  2. Type dotnet run -f .NETStandardApp1.5

Expected behavior

Some appropriate error about the current directory not having a project.json

Actual behavior

image

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-rc2-002349)

Product Information:
 Version:     1.0.0-rc2-002349
 Commit Sha:  ed9309b90b

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 RID:         win10-x64

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rojicommented, May 6, 2016

Using 1.0.0-rc2-002678, simply trying to execute dotnet run in an empty directory gives an NRE.

0reactions
TheRealPiotrPcommented, May 26, 2016

Closed, since fixed in preview2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trying to dotnet run with framework from non-project.json ...
Trying to dotnet run with framework from non-project.json directory causes Object reference not set to an instance of an object. error.
Read more >
DotNet Core: Object reference not set to an instance of an ...
I have reverted to the initial version of the project.json (cancelled all the updates of the nuget packages) and the code is working...
Read more >
How to solve error object reference not set to an instance of ...
I work on csharp i get error object reference not set to an instance of an object code give me error var Data...
Read more >
Still having big problems with Object reference not set to an ...
The error means that your code is trying to access/reference an object that is a null valued object that is not there in...
Read more >
Fix “Object Reference Not Set to an Instance of an ... - YouTube
The error is triggered when the object that you are referring to ... not set to an instance of an object vb. net...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found