sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Null reference exception during compilation.

Open sirentek opened this issue 10 years ago • 6 comments

Steps to reproduce

Change directory to parent (or any directory) from terminal, execute "dotnet run".

Expected behavior

project.json not found or similar warning.

Actual behavior

object reference not set to an instance of an object message appears and it doesn't compile.

Environment data

dotnet --info output:

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

Product Information: Version: 1.0.0-rc2-002543 Commit Sha: 38d0c28a1e

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

sirentek avatar May 02 '16 11:05 sirentek

This is a fit n' finish type scenario as if there is no project.json in your directory, I think it's fairly unsurprising that things don't work.

bumping this out to rtm.

brthor avatar May 02 '16 20:05 brthor

Ok, I am closing this for now then.

sirentek avatar May 02 '16 21:05 sirentek

I think we want to keep this issue open, at the very least least for our own tracking purposes, since we eventually need to fix it.

I just hit this as well. To clarify, the scenario is "run dotnet run from any directory that doesn't have a project.json in it"

mellinoe avatar May 02 '16 23:05 mellinoe

Thanks for reopening @mellinoe

@sirentek I didn't mean to imply that it wasn't important, just that this won't be able to make it into RC2 given the time and resources available 😄

brthor avatar May 03 '16 00:05 brthor

@brthor :+1:

sirentek avatar May 05 '16 11:05 sirentek

Closing it as a duplicate of https://github.com/dotnet/cli/issues/2965

Sridhar-MS avatar May 11 '16 00:05 Sridhar-MS