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 issueSteps to reproduce
- Go to directory without a project.json
- Type dotnet run -f .NETStandardApp1.5
Expected behavior
Some appropriate error about the current directory not having a project.json
Actual behavior
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:
- Created 7 years ago
- Comments:10 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Using 1.0.0-rc2-002678, simply trying to execute
dotnet run
in an empty directory gives an NRE.Closed, since fixed in preview2.