-
Notifications
You must be signed in to change notification settings - Fork 168
Nancy Generator creates a broken project for ASP.NET vNext #553
Comments
The Nancy was not updated to RC1: |
This commit updates Nancy template to support RC1. - project dependencies update to RC1 - Nancy package update to latest version - support new hosting model from RC1 - small white-space fixes
@peterblazejewicz no problem. Tks :-) Will keep periodically checking for updates. |
⬆️ Update Nancy template to RC1. Fixes #553
Awesome, thanks Jonathan, I'll test and feedback. |
Has this commit made it to the NuGet package yet, or will I need to grab this from GitHub? |
Not sure. Pinging @sayedihashimi as I think he does releases? |
Correct (but he has his arm injured recently, uhm): |
@shawty, all |
@peterblazejewicz ok, I'll try that. Tks. |
@sayedihashimi oh dang.... yea that Hurts, I was laid up for about 4 weeks with the very same thing middle of last yer, and it's damn painful too. Get better soon. |
Hi. I'm new to everything related to .NET, mono, ASP.NET and just trying out all the generator-aspnet generators. The Nancy one fails to run as indicated by @shawty. My environment on Mac OS X:
The dnu restore and dnu build steps worked without errors but the dnx web fails with same error as reported in this issue. I see the mentioned required updated to RC1 mentioned by @peterblazejewicz and looking at the diff it seems I have the latest as my project.json
Is this still an issue or just me being a newbie? |
@ghachey Let's poke @sayedihashimi for release (TBD) |
@ghachey |
Sorry all, away working not had chance to test this yet. @peterblazejewicz thanks, I'll check the zip as soon as I get chance. Shawty |
Thanks for this @peterblazejewicz . I tried replacing the generated files with yours and still getting the following error:
restore and build work fine. |
After a bit more playing it's probably worth mentioning the following observations. For the other generators (Web Application, Web API Application, etc.) I get the dnx web error above also but only if I have the mono executing environment active. It works with the coreclr environment. So it would seem, at least in my specific case, that maybe mono is the one that can't find libuv. If I try to build the default NancyApplication with the coreclr executing environment it fails with the following (looking at NancyFx/Nancy#1959 I think Nancy may not yet support coreclr?!):
So I am stuck using mono but mono does not seem to detect libuv?! This is where I am at currently. |
Some more observation. I got it to work on Linux without problems. |
Nancy does not support CoreCLR yet. Hence the net451 moniker in the On 20 January 2016 at 08:15, ghachey [email protected] wrote:
|
@jchannon Thanks! |
@shawty
Thanks! |
* Bring changes from aspnet/Templates#530 (#651) * Remove comment from Main method in web templates (#645) See aspnet/Templates/4521a05 * Address feedback for Startup.cs (#646) See aspnet/Templates@53f174b * Move Microsoft.NETCore.App to top of dependencies section (#647) See aspnet/Templates@1a8c062 * Remove unneeded depenedencies from project.json (#648) See aspnet/Templates@49173ba * Move server gc section for full framework to app.config (#649) See aspnet/Templates@289ac238 * 🐛 Remove a comma breaking config (#650) * Bring changes from aspnet/Templates@37d8e90 (#652) * ⬆️ Update web template to RC2 This commit brings file content changes to web template (starter web with individual authorization (in aspnet/Templates convention) including: - namespace changes - project structure changes - RC2 related structure additions - assets changes - client side deps updates - test coverage update/rewrite - client side assets updates - SQLite EF updates The template now restores, builds and runs fine. There are some small fixes remaining for this tempalte to be done but they will be part of separte review PR * Add missing login partial import in web template (#655) 🐛 missing login partial import * Fix SQLite connection string (#656) The RC2 uses new convention for Configuration access of connection strings. This commit adopts that convention to construct and later read SQLite configuration * 🐛 Fix C#6 interpolation SQLite connection string (#658) * 🐛 Fix $year$ variable artifact (#657) * 🎨 Update Semantic UI option for web template to RC2 (#659) 👯 * 🐛 Fix invalid namespace in web template (#661) Semantic UI version shipped with hardcoded namespace. This commit fixes this * Small fixes in Semantic UI version (#662) - remove unused imports - whitespace unification between versions * 🔒 Always use HTTPS for MS url shortener (#663) /cc @sayedihashimi * Fix sections in starter web template (#664) - section ordering The sections are now sorted the same way as in aspnet/Templates * Add missing package declaration (#665) * Small whitespace fix (#666) * Fix whitespace to match aspnet/Templates version (#668) * Add dnxcore50 import to console/lib project.json (#667) See: aspnet/Templates#542 * Fix content layout of empty web app project.json (#669) - sections layout - scripts section content update Thanks! * Rename build options in configuration (#671) See aspnet/Templates#536 * Fix missing package entry (#672) * Revert "Rename build options in configuration (#671)" (#674) This reverts commit 917740f. The builds are failing under .NET Command Line Tools (1.0.0-rc2-002485) starting from this commit. The commit was found using git bisect tool: 917740f is the first bad commit commit 917740f Author: Peter Blazejewicz <[email protected]> Date: Fri May 6 22:19:05 2016 +0200 Rename build options in configuration (#671) See aspnet/Templates#536 :040000 040000 1dcdfa62565e51d87aafd32b5b279df6b87570b0 db3df7d2f0358c095ab053c4d3be0f8c1749c8db M templates Thanks! * Bring changes from aspnet/Templates#530 (#651) (#675) * Remove comment from Main method in web templates (#645) See aspnet/Templates/4521a05 * Address feedback for Startup.cs (#646) See aspnet/Templates@53f174b * Move Microsoft.NETCore.App to top of dependencies section (#647) See aspnet/Templates@1a8c062 * Remove unneeded depenedencies from project.json (#648) See aspnet/Templates@49173ba * Move server gc section for full framework to app.config (#649) See aspnet/Templates@289ac238 * 🐛 Remove a comma breaking config (#650) * 📝 Update CLI animation in README.md. Closes #604 (#676) - animation change - framework name update in alt Thanks! * 📝 Update README.md. Closes #603 (#670) - no code samples - links to docs.asp.net instead of code samples Thanks! * Remove UseDefaultHostingConfiguration() from templates (#677) Bring changes from aspnet/Templates@c749a4f See also: aspnet/Announcements#174 Thanks! * Remove duplicate section keys from configs (#678) Duplicated sections removal Thanks! * Update/client side deps for RC2 (#681) * ⬆️ Bump jQuery version See aspnet/Templates#549 * ⬆️ Bump jQuery.Validation plugin See aspnet/Templates#549 * React to project.json schema changes and tooling package renames (#679) This bring some changes from aspnet/Templates@aa31cb9 Thanks! * Output name field in Bower config in lowercase. Closes #680 (#682) The name field meta key should be lower case otherwise Bower renders a warning to users: bower invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes The changes include: - actual changes in bower.json templates - test coverage Thanks! * Update/npm dependencies for RC2 (#683) * ⬆️ Bump Gulp NPM dependency After this change the version installed is 3.9.1: npm install ... ├─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] Thanks! * ⬆️ Bump up gulp-concat NPM version npm install └── [email protected] Thanks! * ⬆️ Bump gulp-uglify NPM version npm install ... └─┬ [email protected] Thanks! * ⬆️ Bump rimraf NPM version npm install ... └─┬ [email protected] └── [email protected] Thanks! * ⬆️ Bump Grunt NPM version npm install ... └─┬ [email protected] ├── [email protected] ├─┬ [email protected] Thanks! * Fix/launch settings (#684) * 🐛 The launch settings use template variables This commti fixes problems when launchSettings.json has not been updated to evaluate project name used in settings Thanks! * Fix missing launch settings Make sure that changes from aspnet/Templates#521 are incorporated * 🐛 Remove orphaned <text> tag. Fixes #553 (#687) See aspnet/Templates#553 and aspnet/Templates#554 Thanks! * Remove code for EF migration from Startup (#688) This is follow up to aspnet/Templates#562 Thanks! * Update Class Library template for RC2. Closes ##689 (#695) Latest bits run on 1.0.0-rc2-002485 * Update Console application template. Closes #690 (#696) This updates Console application template to RC2. Tested on donet 1.0.0-rc2-002485 * Update Empty Web project template for RC2. Closes #691 (#697) Tested and run using dotnet 1.0.0-preview1-002700 * Move mkdirp to regular dependencies (#699) The mkdirp is technicaly runtime dependency for client side installation - not development. Is used by subgenerator and will be used by project templates to create empty directories like wwwroot Thanks! * Update/web api app. Closes #692 (#700) * 🎨 Store README.md in project root The aspnet/Templates creates empty wwwroot web root directory. This commits brings the same behavior to generator. The readme is created in project root while web root folder is created empty Thanks! * ⬆️ Update web api template for RC2 Udpated with recent changes from aspnet/Templates. Tested and run on 1.0.0-preview1-002700 Thanks! * Update NuGet unstable feeds to point to recent RC2 (#708) * Update Console application template for RC2. Closes #706 (#709) Most recent bits for final RC2 Tested with 1.0.0-preview1-002702 * Update Class Library project. Closes #705 (#710) Update with most recent final RC2 bits Thanks! * Update WebAPI application for RC2. Closes #703 (#711) The final bits of RC2 Tested with 1.0.0-preview1-002702 * Update Empty web application for RC2. Closes #704 (#712) * Update Empty web application for RC2. Closes #704 Update with final bits for RC2 Tested with 1.0.0-preview1-002702 * 🎨 Store README.md project root This moves README.md to the project root outside of template webroot directory: - implementation - test coverage This unifies template with aspnet/Templates structure Thanks! * ⬆️ Update web application template to aspnet. Closes #694 [WIP] (#702) :arrow_up: Update web application template to aspnet. Closes #694 * ⬆️ Update starter web template for RC2. Closes #693 [WIP] (#701) :arrow_up: Update starter web template for RC2. Closes #693
* Bring changes from aspnet/Templates#530 (#651) * Remove comment from Main method in web templates (#645) See aspnet/Templates/4521a05 * Address feedback for Startup.cs (#646) See aspnet/Templates@53f174b * Move Microsoft.NETCore.App to top of dependencies section (#647) See aspnet/Templates@1a8c062 * Remove unneeded depenedencies from project.json (#648) See aspnet/Templates@49173ba * Move server gc section for full framework to app.config (#649) See aspnet/Templates@289ac238 * 🐛 Remove a comma breaking config (#650) * Fixed small formatting issue in RC2 info (#717) Thanks to @horsdal! * Bring changes from aspnet/Templates@37d8e90 (#652) * ⬆️ Update web template to RC2 This commit brings file content changes to web template (starter web with individual authorization (in aspnet/Templates convention) including: - namespace changes - project structure changes - RC2 related structure additions - assets changes - client side deps updates - test coverage update/rewrite - client side assets updates - SQLite EF updates The template now restores, builds and runs fine. There are some small fixes remaining for this tempalte to be done but they will be part of separte review PR * Add missing login partial import in web template (#655) 🐛 missing login partial import * Fix SQLite connection string (#656) The RC2 uses new convention for Configuration access of connection strings. This commit adopts that convention to construct and later read SQLite configuration * 🐛 Fix C#6 interpolation SQLite connection string (#658) * 🐛 Fix $year$ variable artifact (#657) * 🎨 Update Semantic UI option for web template to RC2 (#659) 👯 * 🐛 Fix invalid namespace in web template (#661) Semantic UI version shipped with hardcoded namespace. This commit fixes this * Small fixes in Semantic UI version (#662) - remove unused imports - whitespace unification between versions * 🔒 Always use HTTPS for MS url shortener (#663) /cc @sayedihashimi * Fix sections in starter web template (#664) - section ordering The sections are now sorted the same way as in aspnet/Templates * Add missing package declaration (#665) * Small whitespace fix (#666) * Fix whitespace to match aspnet/Templates version (#668) * Add dnxcore50 import to console/lib project.json (#667) See: aspnet/Templates#542 * Fix content layout of empty web app project.json (#669) - sections layout - scripts section content update Thanks! * Rename build options in configuration (#671) See aspnet/Templates#536 * Fix missing package entry (#672) * Revert "Rename build options in configuration (#671)" (#674) This reverts commit 917740f. The builds are failing under .NET Command Line Tools (1.0.0-rc2-002485) starting from this commit. The commit was found using git bisect tool: 917740f is the first bad commit commit 917740f Author: Peter Blazejewicz <[email protected]> Date: Fri May 6 22:19:05 2016 +0200 Rename build options in configuration (#671) See aspnet/Templates#536 :040000 040000 1dcdfa62565e51d87aafd32b5b279df6b87570b0 db3df7d2f0358c095ab053c4d3be0f8c1749c8db M templates Thanks! * Bring changes from aspnet/Templates#530 (#651) (#675) * Remove comment from Main method in web templates (#645) See aspnet/Templates/4521a05 * Address feedback for Startup.cs (#646) See aspnet/Templates@53f174b * Move Microsoft.NETCore.App to top of dependencies section (#647) See aspnet/Templates@1a8c062 * Remove unneeded depenedencies from project.json (#648) See aspnet/Templates@49173ba * Move server gc section for full framework to app.config (#649) See aspnet/Templates@289ac238 * 🐛 Remove a comma breaking config (#650) * 📝 Update CLI animation in README.md. Closes #604 (#676) - animation change - framework name update in alt Thanks! * 📝 Update README.md. Closes #603 (#670) - no code samples - links to docs.asp.net instead of code samples Thanks! * Remove UseDefaultHostingConfiguration() from templates (#677) Bring changes from aspnet/Templates@c749a4f See also: aspnet/Announcements#174 Thanks! * Remove duplicate section keys from configs (#678) Duplicated sections removal Thanks! * Update/client side deps for RC2 (#681) * ⬆️ Bump jQuery version See aspnet/Templates#549 * ⬆️ Bump jQuery.Validation plugin See aspnet/Templates#549 * React to project.json schema changes and tooling package renames (#679) This bring some changes from aspnet/Templates@aa31cb9 Thanks! * Output name field in Bower config in lowercase. Closes #680 (#682) The name field meta key should be lower case otherwise Bower renders a warning to users: bower invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes The changes include: - actual changes in bower.json templates - test coverage Thanks! * Update/npm dependencies for RC2 (#683) * ⬆️ Bump Gulp NPM dependency After this change the version installed is 3.9.1: npm install ... ├─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] Thanks! * ⬆️ Bump up gulp-concat NPM version npm install └── [email protected] Thanks! * ⬆️ Bump gulp-uglify NPM version npm install ... └─┬ [email protected] Thanks! * ⬆️ Bump rimraf NPM version npm install ... └─┬ [email protected] └── [email protected] Thanks! * ⬆️ Bump Grunt NPM version npm install ... └─┬ [email protected] ├── [email protected] ├─┬ [email protected] Thanks! * Fix/launch settings (#684) * 🐛 The launch settings use template variables This commti fixes problems when launchSettings.json has not been updated to evaluate project name used in settings Thanks! * Fix missing launch settings Make sure that changes from aspnet/Templates#521 are incorporated * 🐛 Remove orphaned <text> tag. Fixes #553 (#687) See aspnet/Templates#553 and aspnet/Templates#554 Thanks! * Remove code for EF migration from Startup (#688) This is follow up to aspnet/Templates#562 Thanks! * Update Class Library template for RC2. Closes ##689 (#695) Latest bits run on 1.0.0-rc2-002485 * Update Console application template. Closes #690 (#696) This updates Console application template to RC2. Tested on donet 1.0.0-rc2-002485 * Update Empty Web project template for RC2. Closes #691 (#697) Tested and run using dotnet 1.0.0-preview1-002700 * Move mkdirp to regular dependencies (#699) The mkdirp is technicaly runtime dependency for client side installation - not development. Is used by subgenerator and will be used by project templates to create empty directories like wwwroot Thanks! * Update/web api app. Closes #692 (#700) * 🎨 Store README.md in project root The aspnet/Templates creates empty wwwroot web root directory. This commits brings the same behavior to generator. The readme is created in project root while web root folder is created empty Thanks! * ⬆️ Update web api template for RC2 Udpated with recent changes from aspnet/Templates. Tested and run on 1.0.0-preview1-002700 Thanks! * Update NuGet unstable feeds to point to recent RC2 (#708) * Update Console application template for RC2. Closes #706 (#709) Most recent bits for final RC2 Tested with 1.0.0-preview1-002702 * Update Class Library project. Closes #705 (#710) Update with most recent final RC2 bits Thanks! * Update WebAPI application for RC2. Closes #703 (#711) The final bits of RC2 Tested with 1.0.0-preview1-002702 * Update Empty web application for RC2. Closes #704 (#712) * Update Empty web application for RC2. Closes #704 Update with final bits for RC2 Tested with 1.0.0-preview1-002702 * 🎨 Store README.md project root This moves README.md to the project root outside of template webroot directory: - implementation - test coverage This unifies template with aspnet/Templates structure Thanks! * ⬆️ Update web application template to aspnet. Closes #694 [WIP] (#702) :arrow_up: Update web application template to aspnet. Closes #694 * ⬆️ Update starter web template for RC2. Closes #693 [WIP] (#701) :arrow_up: Update starter web template for RC2. Closes #693 * [WIP] Update Unit test project for RC2. Closes #639 (#716) Update Unit test project for RC2. Closes #639 * Call NPM and Bower install scripts in postrestore (#718) See #713 comments about RC2 changes and avoiding less experienced users confusion Thanks! * Add EF migration usage hints for RC2 web template (#719) EF migrations are now not built-into templates let users to know how to scaffold database using code-first scenario with saved migrations
Hi all,
Just dipping my toes into ASP.NET 5 using MsCode, by following this tutorial:
http://www.codeproject.com/Tips/1067038/Getting-Up-and-Running-with-ASP-NET-using-VS-Code
Being the massive NancyFX nut that I am, I decided to try a Nancy project, but I cant seem to get it to work.
I have all the various req's, npm, node, git and I've set up the dnx/vnext command line environment.
A dnu restore command pulled down all the required dependencies, and a dnu build, produced the following:
As far as I can see, everything works fine, but when I attempt to run the app I consistantly get
I've no idea what's happening here (Partly due to the fact I'm still just experimenting with vNext, and i'm not using vs2015 to do it either, I'm doing it all at the CLI.
all the other project types work fine, and i've tried this on a couple of different machines, with the same outcome.
The machines are all Win7 x64 SP1 based builds.
Cheers
Shawty
The text was updated successfully, but these errors were encountered: