Comments (5)
In the .csproj file
1.0.4
change to
1.1.1
from generator-aspnet.
That's correct. Let me udpate this asap. In the meantime update packages version on generated content.
from generator-aspnet.
https://github.com/dotnet/core/blob/master/release-notes/1.0/1.0.4.md
from generator-aspnet.
Hi, I changed the image to microsoft/dotnet also in the docker run you have to put the -e "ASPNETCORE_URLS=http://+:80" for example : docker run -it -p 8000:80 -e "ASPNETCORE_URLS=http://+:80" your_image_name. after that you will be able to reach the http://localhost:8000.
Let me know if this works for you.
from generator-aspnet.
So I can't use the generator if the installed version of dotnet is newer?
[~/tmp/deleteme] has 0 total files, 0 hidden, 0 executable.
$ yo aspnet
_-----_ ╭──────────────────────────╮
| | │ Welcome to the │
|--(o)--| │ marvellous ASP.NET Core │
`---------´ │ generator! │
( _´U`_ ) ╰──────────────────────────╯
/___A___\ /
| ~ |
__'.___.'__
´ ` |° ´ Y `
? What type of application do you want to create? Empty Web Application
? What's the name of your ASP.NET application? EmptyWebApplication
create EmptyWebApplication/.gitignore
create EmptyWebApplication/Program.cs
create EmptyWebApplication/Startup.cs
create EmptyWebApplication/EmptyWebApplication.csproj
create EmptyWebApplication/web.config
create EmptyWebApplication/Properties/launchSettings.json
create EmptyWebApplication/runtimeconfig.template.json
create EmptyWebApplication/README.md
create EmptyWebApplication/global.json
Your project is now created, you can use the following commands to get going
cd "EmptyWebApplication"
dotnet restore
dotnet build (optional, build will also happen when it's run)
dotnet run
[~/tmp/deleteme] has 1 total files, 0 hidden, 0 executable.
$ cd EmptyWebApplication/
[~/tmp/deleteme/EmptyWebApplication] has 10 total files, 1 hidden, 2 executable.
$ dotnet restore
Restoring packages for /home/patrick/tmp/deleteme/EmptyWebApplication/EmptyWebApplication.csproj...
Generating MSBuild file /home/patrick/tmp/deleteme/EmptyWebApplication/obj/EmptyWebApplication.csproj.nuget.g.props.
Generating MSBuild file /home/patrick/tmp/deleteme/EmptyWebApplication/obj/EmptyWebApplication.csproj.nuget.g.targets.
Writing lock file to disk. Path: /home/patrick/tmp/deleteme/EmptyWebApplication/obj/project.assets.json
Restore completed in 1.12 sec for /home/patrick/tmp/deleteme/EmptyWebApplication/EmptyWebApplication.csproj.
NuGet Config files used:
/home/patrick/.nuget/NuGet/NuGet.Config
Feeds used:
https://api.nuget.org/v3/index.json
[~/tmp/deleteme/EmptyWebApplication] has 11 total files, 1 hidden, 2 executable.
$ dotnet run
The specified framework 'Microsoft.NETCore.App', version '1.0.4' was not found.
- Check application dependencies and target a framework version installed at:
/opt/dotnet/shared/Microsoft.NETCore.App
- The following versions are installed:
1.1.1
- Alternatively, install the framework version '1.0.4'.
Just asking...
My version(s):
$ dotnet
Microsoft .NET Core Shared Framework Host
Version : 1.1.0
Build : 928f77c4bc3f49d892459992fb6e1d5542cb5e86
[...]
$ dotnet --version
1.0.1
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
- Can find project.json inside of new project HOT 18
- 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
- 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.