I am making my first .net core app. I just created the default asp.net core web app inside visual studio template and then tried dotnet publish but I get this error:
PM> dotnet publish
dotnet : 'D:\Projects\coreTest\CoreTest' does not contain a project.json file
At line:1 char:1
+ dotnet publish
+ ~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ('D:\Projects\co...oject.json file:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
I haven't changed anything. The default template includes a project.json file with dependencies listed. Why doesn't it want to publish?
project.jsonfile exists and is valid?D:\Projects\coreTest\CoreTest\src\CoreTestso I think its looking in wrong path when im running this in package manager console.dotnet restoreanddotnet buildwork on that exact folder?dotnet restoreworks fine on the projects.json file in nested folder but bothdotnet restoreanddotnet buildcomplain there is no projects.json file as it is looking one level up. I am able to build project from menu and also preview it fine by hitting play. It's just these commands in package manager console seem to be looking in wrong place.