Git Product home page Git Product logo

Comments (5)

AlexeyVT avatar AlexeyVT commented on September 26, 2024 3

In the .csproj file
1.0.4
change to
1.1.1

from generator-aspnet.

peterblazejewicz avatar peterblazejewicz commented on September 26, 2024

That's correct. Let me udpate this asap. In the meantime update packages version on generated content.

from generator-aspnet.

peterblazejewicz avatar peterblazejewicz commented on September 26, 2024

https://github.com/dotnet/core/blob/master/release-notes/1.0/1.0.4.md

from generator-aspnet.

ducoudray avatar ducoudray commented on September 26, 2024

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.

draptik avatar draptik commented on September 26, 2024

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)

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.