Project.deps.json could not be found - timjames.me

 Hey I would love to know what you think while reading my posts. Please comment!.

Project.deps.json could not be found

Project.deps.json could not be found

Project.deps.json could not be found

Project.deps.json could not be found

So you are creating a new ASP.NET Core Web Application (.Net Framework) through visual studio, so select “New Project > Select Template > Name > Ok”, then select the Template you want to use. Then run your shiny new website.

BOOM! Build Error

Build Error

There are no errors in the Error List, no warnings and no messages? So you check the build ouput to find

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(262,5): error : C:\Projects\My Project\error CS2001: Source file ‘C:\Projects\My Project\Project.deps.json’ could not be found.

So what is this? Well in my instance, I created the project with the name “My Project” and it turns out that currently you can’t have spaces in the folder name! So you will need to recreate your project without spaces in the name.


About Me

Tim James I'm Tim, a web applications developer from Glasgow, Scotland. Currently working for Kingfisher Systems Ltd, building bespoke systems within the Car Auction industry.

  • C#
  • VB.NET
  • ASP.NET
  • .NET MVC
  • Web API
  • Razor
  • HTML5
  • CSS3
  • jQuery
  • WCF
  • SQL
  • knockout.js
  • Angularjs
  • AJAX
  • APIs
  • SignalR
Why not follow me on twitter? Follow me on Twitter