dnx

ASP.NET 5 and Angular Routing not working on dnx rc1

最后都变了- 提交于 2019-12-13 07:15:12
问题 Hi I have a project built in ASP.NET 5 (dnxcore50 and dnx451). It is serving the requests for my AngularJS scripts. When I built the project I was using the Microsoft beta 5 dependencies and using a rewrite rule to send all the requests to index.html and so my angular routing would work just fine. But today I had to upgrade to the rc1 dependencies and now my rewrite is not working and I'm just getting a 404 on my route. This new libraries added this weird lines of code to my web.config

Open XML in dnx5.0 / aspnext

蹲街弑〆低调 提交于 2019-12-13 02:17:35
问题 I'm trying to build an app that uses OpenXML in a dnx/aspnet next environment. I've added added the OpenXML dependency to my package.json "dependencies": { .... "DocumentFormat.OpenXml": "2.5.0" } However, when i try to run, i get this error: The type 'Package' is defined in an assembly that is not referenced. You must add a reference to assembly 'WindowsBase, Version=4.0.0.0 It seems OpenXML depends on WindowsBase. I'm fearful that this won't work in linux/mac environment, as I can't find a

Aspnet5 default web application project won't run

試著忘記壹切 提交于 2019-12-13 01:27:19
问题 Why won't the "out of the box" aspnet5 web application project run with the frameworks section set to the TFM "net46" or "net451". I can only get it to run set to "dnx451 or dnx46". If I run it under any of the "netxx" monikers I get a connection refused in the browser instead of the aspnet splash page. UPDATE 1 I get the following when I switch the TFM to "net46" in the project.json file so why is it still targeting the dnx 4.5.1 runtime? Current dnvm shows as above and on another note you

ASP.Net 5 Console Application Entry Point

若如初见. 提交于 2019-12-13 01:03:22
问题 I've been trying to build a console application in ASP.Net 5 and am having some trouble with the entry point. I've looked at the following: Entry point can be marked with the 'async' modifier on CoreCLR? And https://msdn.microsoft.com/en-us/magazine/dn913182.aspx. When I create a Console Application (Package) with Visual Studio 2015 It creates the following Program File public class Program { public static void Main(string[] args) { } } However I want to utilise the instance have Main as an

NLog with DNX Core 5.0

最后都变了- 提交于 2019-12-12 22:07:03
问题 I am attempting to implement NLog logging using ASP.Net 5 and MVC 6. Be default, both DNX 451 and DNX Core 50 are included in the project template. I am attempting to implement NLog Logging by following the example here. However, in the sample app, there is the following line - #if !DNXCORE50 factory.AddNLog(new global::NLog.LogFactory()); #endif And if I run the app, this line never gets hit because the mvc application has dnx core 50 installed by default. Is there any loggers that are

SpecFlow “Generate Test Definition” context menu missing in VS2015

拈花ヽ惹草 提交于 2019-12-12 12:36:57
问题 I'm trying out VS2015 and writing SpecFlow feature files. When I right click on the file, I cannot find "Generate Test Definitions" context menu. This happens only in "Class Library (Package)" which is obviously DNX 5.0 library. Here is my project.json: { "version": "1.0.0-*", "description": "", "authors": [ "" ], "tags": [ "" ], "projectUrl": "", "licenseUrl": "", "dependencies": { "SpecFlow": "1.9.0", "SpecFlow.xUnit": "1.0.2", "xunit": "2.1.0-beta3-build3029", "xunit.extensions": "2.0.0" }

Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel' with 1.0.0-rc1-update1

跟風遠走 提交于 2019-12-12 10:49:13
问题 I am reading the following error from logfiles in kudo on azure websites: Error: Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web. System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence) at System.Reflection.Assembly.LoadFile(String path) at Microsoft.Dnx.Runtime.Loader.LoadContext.LoadFile(String

Using System.Web.Http on mac os x

拥有回忆 提交于 2019-12-12 10:22:46
问题 I'm new to mac but not .Net. I'm playing around with Visual Studio Code. I installed Brew and used it to get yo , grunt-cli , generator-aspnet , dnvm , and everything the tutorials say to get. I created a project scaffold with yo and the first thing I want to do is add a Controller that inherits from ApiController but I can't seem to find a way to "Add a reference" like I would in Visual Studio proper. It looks like I should open project.json and add something like this: "System.Web.Http": "

Using custom property types in Azure Tables with ASP.NET 5 DNX Core

試著忘記壹切 提交于 2019-12-12 09:07:09
问题 Azure Table Storage does not support many property types (List<>, TimeSpan, etc). There are solutions like Lucifure Stash and Lokad.Cloud, but they are not compiling for DNX Core 5.0. Is there a way to add support for custom property types in Azure Tables with DNX Core? 回答1: One solution is to use reflection to iterate through all the “custom” properties of the entity and serialize them to JSON strings. We can override TableEntity’s ReadEntity and WriteEntity methods to hook de-/serialization

Updating to ASP NET 5 beta5 breaks everything

北战南征 提交于 2019-12-12 08:13:13
问题 I followed this guide when updating to beta5 and the update process seems to have worked. http://blogs.msdn.com/b/webdev/archive/2015/06/30/asp-net-5-beta5-now-available.aspx To update to ASP.NET 5 Beta5 use the following steps: Install the .NET Version Manager (DNVM) if you don’t already have it (it comes preinstalled with Visual Studio 2015 RC, or you can get the latest version) From a command prompt set the DNX_FEED environment variable to https://www.nuget.org/api/v2 Run “dnvm upgrade” In