dnx50

Using PetaPoco in Asp.NET Core MVC 6

天大地大妈咪最大 提交于 2020-01-07 03:40:13
问题 so i started trying out the new ASP.NET 5 Platform and have the following dependencies in my Project.json "dependencies": { "System.Collections": "4.0.10-beta-23019", "System.Linq": "4.0.0-beta-23019", "System.Threading": "4.0.10-beta-23019", "System.Runtime": "4.0.10-beta-23019", "Microsoft.CSharp": "4.0.0-beta-23019", "PetaPoco.Core": "5.1.141-beta" }, "frameworks": { "dnx451": { "dependencies": { "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-beta5" } }, "dnxcore50": { "dependencies":

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

Microsoft DNX application Angular2 does not run when deployed on Azure

爷,独闯天下 提交于 2019-12-12 05:47:43
问题 I have followed this tutorial describing how to build an ASP.NET MVC app using Angular2 and typescript https://ievangelistblog.wordpress.com/2016/01/13/building-an-angular2-spa-with-asp-net-5-mvc-6-web-api-2-and-typescript-1-7-5/ App deployed locally I made it run on my local machine (Kestrel) after some changes such as the version of the libraries App deployed on Windows Azure does not display the menu Unfortunately, deploying the same application on Windows Azure does not display the menu

DNXCORE 5.0 and mysql / mariadb

跟風遠走 提交于 2019-12-12 01:28:44
问题 For a new project which has to target Linux and Windows, I am searching for a solution to support MySQL (or MariaDB). Because we have to support those different platforms I wish to work on DNX Core5.0. However I can't find any nuget packages / connectors which I can use to connect to the database. the one that i find are not supported by DNX core 5.0. Is there a way to connect to mysql in DNX core 5.0 ? Or do you have to fall back on ODBC connections, i don't know if this would work...

Choosing between dnx451 and dnxcore 50 for Azure Web App in terms of functionality, performance, etc

我是研究僧i 提交于 2019-12-10 21:53:49
问题 I am creating a new project that will run in Azure Web App on the new ASP.NET 5. We are not planning to run it on linux or anything like that, at least now. So the question is, should I try to keep both frameworks if possible just in case or I should prefer one of them. There are e.g. much less dependencies that I can use with dnxcore50 which is not so nice. So the main question is: are there any benefits of using dnxcore50 if running in Azure Web App, like: performance, stability, etc. over

Can the dnx/dotnetcore package cache location be changed

家住魔仙堡 提交于 2019-12-10 19:31:30
问题 I have a machine where the C:\ drive is running out of space and I'd like to change the location where my DNX/DOTNET packages are installed to a location under my D:\ drive. Is the package cache location configurable? NOTE: I don't have the flexibility to change my profile location to a different drive. 回答1: Use the NUGET_PACKAGES environment variable and set it to a path you prefer. Specifically, open up System Properties, create a user environment variables called NUGET_PACKAGES , and set

Environment.Version equivalent in core clr

久未见 提交于 2019-12-10 19:22:54
问题 The following code is valid for the dnx451 framework but not the dnxcore50 string ver = Environment.Version This method does not exist: Is there an equivalent property in the dnxcore50 framework? Update as per Victors answer you can use PlatformServices.Default.Runtime eg: Console.WriteLine("env: {0} {1}", PlatformServices.Default.Runtime.RuntimeType, PlatformServices.Default.Runtime.RuntimeVersion); output: (on dnx451) env: Clr 1.0.0-rc1-16231 output: (on dnxcore50) env: CoreClr 1.0.0-rc1

The element 'system.webServer' has invalid child element 'httpPlatform'

久未见 提交于 2019-12-08 19:13:58
问题 I am working through Shawn Wildermuth's course here and get the following warning about web.config when I build Severity Code Description Project File Line Warning The element 'system.webServer' has invalid child element 'httpPlatform'. List of possible elements expected: 'asp, caching, cgi, defaultDocument, directoryBrowse, globalModules, handlers, httpCompression, webSocket, httpErrors, httpLogging, httpProtocol, httpRedirect, httpTracing, isapiFilters, modules, applicationInitialization,

SelectSingleNode is giving compilation error in dnx core 5.0

痴心易碎 提交于 2019-12-01 22:04:38
问题 I am getting this error with SelectSingleNode method: DNX Core 5.0 error CS1061: 'XmlDocument' does not contain a definition for 'SelectSingleNode' and no extension method 'SelectSingleNode' accepting a first argument of type 'XmlDocument' could be found (are you missing a using directive or an assembly reference?) Is it not supported yet? What are my alternatives? 回答1: In .Net Core 1.0 and .Net Standard 1.3 SelectSingleNode is an extenstion method https://github.com/dotnet/corefx/issues

SelectSingleNode is giving compilation error in dnx core 5.0

主宰稳场 提交于 2019-12-01 19:39:26
I am getting this error with SelectSingleNode method: DNX Core 5.0 error CS1061: 'XmlDocument' does not contain a definition for 'SelectSingleNode' and no extension method 'SelectSingleNode' accepting a first argument of type 'XmlDocument' could be found (are you missing a using directive or an assembly reference?) Is it not supported yet? What are my alternatives? In .Net Core 1.0 and .Net Standard 1.3 SelectSingleNode is an extenstion method https://github.com/dotnet/corefx/issues/17349 Add a reference to make it available again: <PackageReference Include="System.Xml.XPath.XmlDocument"