Git Product home page Git Product logo

Comments (18)

arukompas avatar arukompas commented on June 28, 2024 6

The updated generator uses the new MSBuild for .NET Core process, which means the dependencies are stored in the .csproj file and the project.json is now gone.

You can either upgrade your .Net Core tooling to the newest MSBuild preview version, or downgrade this generator.

from generator-aspnet.

mplacona avatar mplacona commented on June 28, 2024 5

For any future reference, the command above has a typo, which took me about 5 minutes to notice 😂. It should be:

npm install -g [email protected]

from generator-aspnet.

ckrassas avatar ckrassas commented on June 28, 2024 5

Been dealing with this issue for a couple of days. Thanks to all for the info. It really has to do with what version of dotnet core sdk is installed. To find out which version you have just dotnet --version

Two resolutions:
From @mplacona
npm install -g [email protected]
or
use the the latest version just install the latest version of DotNet from:
https://github.com/dotnet/cli
The latest version download worked right away for me on Mac OS X Sierra.

from generator-aspnet.

computerex avatar computerex commented on June 28, 2024 3

Your update broke this tutorial: https://docs.microsoft.com/en-us/aspnet/core/tutorials/your-first-mac-aspnet

from generator-aspnet.

peterblazejewicz avatar peterblazejewicz commented on June 28, 2024 2

@KidSysco
To make sure that you're using the version supporting project.json:

npm install -g [email protected]

The 0.3.* version supports only .csproj content

This website lists all .Net Core download packages:
https://github.com/dotnet/core/blob/master/release-notes/download-archive.md

from generator-aspnet.

rheid avatar rheid commented on June 28, 2024

Thank you very much. Do you have a link for me to setup MSBuild on Mac?

from generator-aspnet.

peterblazejewicz avatar peterblazejewicz commented on June 28, 2024

Do you have a link for me to setup MSBuild on Mac?

You should not have to do this. It should be a part of updated dotnet runtime download (RC4).
All required tooling to build and run updated content are expected to be part of runtime (i've been porting all content for RC4 and tried this first hand (dotnet/templating#266):
http://tattoocoder.com/exploring-the-new-dotnet-cli/

@arukomp Thanks!

from generator-aspnet.

peterblazejewicz avatar peterblazejewicz commented on June 28, 2024

@computerex
I understand. The recent update to yo generator has to be done as MS released RC4:
https://blogs.msdn.microsoft.com/dotnet/2017/02/07/announcing-net-core-tools-updates-in-vs-2017-rc/
No docs have been updated yet to discuss new tooling and dotnet features I believe:
https://docs.microsoft.com/en-us/search/index?search=csproj&scope=ASP.NET+Core

from generator-aspnet.

computerex avatar computerex commented on June 28, 2024

Some additional information for those interested:

https://github.com/dotnet/cli/blob/rel/1.0.0/Documentation/ProjectJsonToCSProj.md
https://blogs.msdn.microsoft.com/dotnet/2016/05/23/changes-to-project-json/
https://github.com/dotnet/cli

Anyone know when we can expect a stable release of Core 1.0 that doesn't involve changes like these?

from generator-aspnet.

KidSysco avatar KidSysco commented on June 28, 2024

I tried it over the weekend on my Mac and it did not work. Without the project.json I can not follow the Getting Started Tutorials because commands like dotnet restore and such do not work.

Any idea on how to downgrade the generator?

from generator-aspnet.

data-pup avatar data-pup commented on June 28, 2024

I'm having the same issue on OS X as well, unfortunately.

from generator-aspnet.

stefanhendriks avatar stefanhendriks commented on June 28, 2024

I installed the latest dotnet core runtime. Latest of this generator and ran into this problem. So some things are out of sync. @mplacona saved my day. thx!

from generator-aspnet.

peterblazejewicz avatar peterblazejewicz commented on June 28, 2024

the command above has a typo,

Sorry folks!

from generator-aspnet.

spboyer avatar spboyer commented on June 28, 2024

@computerex

Your update broke this tutorial: https://docs.microsoft.com/en-us/aspnet/core/tutorials/your-first-mac-aspnet

I'll be updating this tutorial asap.

from generator-aspnet.

ckrassas avatar ckrassas commented on June 28, 2024

Been dealing with this issue for a couple of days. Thanks to all for the info. It really has to do with what version of dotnet core sdk is installed. To find out which version you have just dotnet --version

Two resolutions:
From @mplacona
npm install -g [email protected]
or
use the the latest version just install the latest version of DotNet from:
https://github.com/dotnet/cli
The latest version download worked right away for me on Mac OS X Sierra.

Just wanted to update everyone with my experience as it can help many of you.
After taking a look at @computerex reply to the issue it seems that you can still run the dotnet restore and other commands with the project.json file instead of a .csproj file. Take a look at the https://github.com/dotnet/cli/blob/rel/1.0.0/Documentation/ProjectJsonToCSProj.md as it explains some of these things.

You can have multiple versions of the .NET Core installed and while using a global.json file you can tell it to use an older version of dotnet. Instead of running a migration and running into issues. This should help since most tutorials out there are still using older versions. Hope this helps..

from generator-aspnet.

cosmoKenney avatar cosmoKenney commented on June 28, 2024

Can't open the .csproj in VS 2015. Is this latest generator only producing VS 2017 project files?

from generator-aspnet.

peterblazejewicz avatar peterblazejewicz commented on June 28, 2024

@cosmoKenney
The VS 2015 does not support .NET Core based on .csproj (and as I understand there is no intention to support this):
https://github.com/dotnet/cli/issues/5725

from generator-aspnet.

sayedihashimi avatar sayedihashimi commented on June 28, 2024

We are shutting this repo down, it's been replaced with dotnet new.

from generator-aspnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.