Core: error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.

Created on 21 Jan 2017  ยท  5Comments  ยท  Source: dotnet/core

I have dotnet core version 1.0.0-rc4-004597 installed. I have creating with dotnet commands

~/Unity3D
โ‡จ cd GameReviewer
cd: no such file or directory: GameReviewer

~/Unity3D
โ‡จ mkdir GameReviewer

~/Unity3D
โ‡จ cd GameReviewer

~/Unity3D/GameReviewer
โ‡จ yo aspnet

     _-----_     โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
    |       |    โ”‚      Welcome to the      โ”‚
    |--(o)--|    โ”‚  marvellous ASP.NET Core โ”‚
   `---------ยด   โ”‚        generator!        โ”‚
    ( _ยดU`_ )    โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
    /___A___\   /
     |  ~  |
   __'.___.'__
 ยด   `  |ยฐ ยด Y `

? What type of application do you want to create? Web Application Basic [without Membership and Authorization]
? Which UI framework would you like to use? Bootstrap (3.3.6)
? What's the name of your ASP.NET application? GameReviewer
   create GameReviewer/Dockerfile
   create GameReviewer/.bowerrc
   create GameReviewer/bundleconfig.json
   create GameReviewer/.gitignore
   create GameReviewer/bower.json
   create GameReviewer/appsettings.json
   create GameReviewer/project.json
   create GameReviewer/Program.cs
   create GameReviewer/Properties/launchSettings.json
   create GameReviewer/README.md
   create GameReviewer/Startup.cs
   create GameReviewer/web.config
   create GameReviewer/Controllers/HomeController.cs
   create GameReviewer/Views/_ViewImports.cshtml
   create GameReviewer/Views/_ViewStart.cshtml
   create GameReviewer/Views/Home/About.cshtml
   create GameReviewer/Views/Home/Contact.cshtml
   create GameReviewer/Views/Home/Index.cshtml
   create GameReviewer/Views/Shared/_Layout.cshtml
   create GameReviewer/Views/Shared/Error.cshtml
   create GameReviewer/wwwroot/css/site.css
   create GameReviewer/wwwroot/css/site.min.css
   create GameReviewer/wwwroot/favicon.ico
   create GameReviewer/wwwroot/images/banner1.svg
   create GameReviewer/wwwroot/images/banner2.svg
   create GameReviewer/wwwroot/images/banner3.svg
   create GameReviewer/wwwroot/images/banner4.svg
   create GameReviewer/wwwroot/js/site.js
   create GameReviewer/wwwroot/js/site.min.js


I'm all done. Running bower install for you to install the required dependencies. If this fails, try running the command yourself.


bower cached        https://github.com/twbs/bootstrap.git#3.3.6
bower validate      3.3.6 against https://github.com/twbs/bootstrap.git#3.3.6
bower cached        https://github.com/jzaefferer/jquery-validation.git#1.15.0
bower validate      1.15.0 against https://github.com/jzaefferer/jquery-validation.git#1.15.0
bower cached        https://github.com/aspnet/jquery-validation-unobtrusive.git#3.2.6
bower validate      3.2.6 against https://github.com/aspnet/jquery-validation-unobtrusive.git#3.2.6
bower cached        https://github.com/jquery/jquery-dist.git#2.2.3
bower validate      2.2.3 against https://github.com/jquery/jquery-dist.git#2.2.3
bower install       jquery-validation-unobtrusive#3.2.6
bower install       jquery-validation#1.15.0
bower install       jquery#2.2.3
bower install       bootstrap#3.3.6

jquery-validation-unobtrusive#3.2.6 wwwroot/lib/jquery-validation-unobtrusive
โ”œโ”€โ”€ jquery#2.2.3
โ””โ”€โ”€ jquery-validation#1.15.0

jquery-validation#1.15.0 wwwroot/lib/jquery-validation
โ””โ”€โ”€ jquery#2.2.3

jquery#2.2.3 wwwroot/lib/jquery

bootstrap#3.3.6 wwwroot/lib/bootstrap
โ””โ”€โ”€ jquery#2.2.3


Your project is now created, you can use the following commands to get going
    cd "GameReviewer"
    dotnet restore
    dotnet build (optional, build will also happen when it's run)
    dotnet run



~/Unity3D/GameReviewer
โ‡จ cd GameReviewer

~/Unity3D/GameReviewer/GameReviewer
โ‡จ dotnet restore
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.

Most helpful comment

@sayedihashimi , I'm guessing this is because the yoeman generators are still producing project.json based projects?

@AbhimanyuAryan , Can you try to run dotnet migrate ? That should convert project.json to GameReviewer.csproj and then you should be one step closer.

@piotrpMSFT , The yoeman templates that shipped in the past may be good test cases for dotnet migrate

All 5 comments

@sayedihashimi , I'm guessing this is because the yoeman generators are still producing project.json based projects?

@AbhimanyuAryan , Can you try to run dotnet migrate ? That should convert project.json to GameReviewer.csproj and then you should be one step closer.

@piotrpMSFT , The yoeman templates that shipped in the past may be good test cases for dotnet migrate

Done. But how do I fix that for all new applications that I create. Do I need to run dotnet migrate everytime I create a dotnet app? @Petermarcu

You should be able to use dotnet new to create new projects. I don't know the difference between whats supported there and what's in yoeman but @sayedihashimi should be able to describe the difference and the plans for the yoeman generators.

You can also create a folder and in that folder run dotnet new -t Web, dotnet restore, dotnet run to create, build, and launch an MVC site.

@Petermarcu when I create asp.net core application with dotnet new -t Web it doesn't contain Project.json. How should I install Entity Framework?

Was this page helpful?
0 / 5 - 0 ratings