Comments (18)
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.
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.
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.
Your update broke this tutorial: https://docs.microsoft.com/en-us/aspnet/core/tutorials/your-first-mac-aspnet
from generator-aspnet.
@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.
Thank you very much. Do you have a link for me to setup MSBuild on Mac?
from generator-aspnet.
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.
@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.
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.
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.
I'm having the same issue on OS X as well, unfortunately.
from generator-aspnet.
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.
the command above has a typo,
Sorry folks!
from generator-aspnet.
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.
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.
Can't open the .csproj in VS 2015. Is this latest generator only producing VS 2017 project files?
from generator-aspnet.
@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.
We are shutting this repo down, it's been replaced with dotnet new
.
from generator-aspnet.
Related Issues (20)
- Remove 'usersecrets` subgenerator for RC HOT 1
- Update Docker template content for 2017RC HOT 1
- Update global.json generator/template for VS2017 RC HOT 1
- How to create controller in vscode using yo HOT 2
- [Possible Bug] Can't seem to run Yeoman generate project on Heroku HOT 10
- Log off should be Logout in mvc template
- Cant project in visual studio HOT 2
- The target "Restore" does not exist in the project HOT 2
- The specified framework 'Microsoft.NETCore.App', version '1.0.4' was not found HOT 5
- Subgenerators are not available HOT 5
- Can not bundle Js and css file in aspcore/angular2 HOT 2
- How to install previous generators HOT 1
- Bower is deprecated HOT 3
- double '<' character in csproj files HOT 1
- Error when using --version-current HOT 2
- Upgrade project templates to .NET Core 2.0 HOT 2
- Can't install generator-aspnet
- Sematic UI template - Index.cshtml content still has "ASP.NET MVC 5" or "ASP.NET 6" naming reference HOT 1
- Deprecate generator-aspnet package HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-aspnet.