dnx

Entity Framwork 7 reverse engineer from existing db “code first”

主宰稳场 提交于 2020-01-13 05:49:28
问题 I can't figure out how to pass the connection string parameter in the latest version of dnx... trying dnx ef dbcontext scaffold -connection='sql connection string' but it doesn't recognize the -connection parameter .. how are you supposed to pass arguments into the thing? 回答1: Have you tried: dnx ef dbcontext scaffold "sql connection string" EntityFramework.MicrosoftSqlServer 来源: https://stackoverflow.com/questions/32377984/entity-framwork-7-reverse-engineer-from-existing-db-code-first

How to create and use ASP.NET vNext class library NuGet package?

…衆ロ難τιáo~ 提交于 2020-01-11 04:48:06
问题 I would like to create a NuGet package of my ASP.NET vNext class library. How can I do it, step by step? I understand there is kpm build , but I couldn't find a guide regarding where to download kpm, etc. Also, after getting a NuGet package (or DLL) of it, how can I add it from local machine to my vNext project? 回答1: Kpm is the package manager for the new KRuntime. Instructions on how to install the KRuntime command line utilities on your developer machine can be found on the aspnet Home repo

Running unit tests in TFS/VSO Build vNext using xUnit adapter

给你一囗甜甜゛ 提交于 2020-01-10 02:20:29
问题 I am trying to run our xUnit tests using the xUnit test adapter in Visual Studio Online's Build vNext platform. As stipulated in this article, we need to provide a custom test adapter path pointing to xunit.runner.visualstudio.testadapter.dll . But this package is restored by NuGet to a global packages folder, namely C:\Users\{user}\.dnx\packages ? How am I to reference this folder in the build step? We are using VS 2015 and DNX projects. EDIT: I even tried pointing to the package path DLL

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":

DNX does not work

你离开我真会死。 提交于 2020-01-05 07:59:12
问题 I have installed dnvm successfully on windows server 2008. but when I run "dnx", nothing shown. no error message like this: C:\Windows\system32\dnx C:\Windows\system32\ someone had the same problem? 回答1: First of all you need to understand structure of DNX. By default it's installed in %USERPROFILE%\.dnx . Inside of it you should find runtimes folder containing all of installed CLRs e.g. dnx-clr-win-x86.1.0.0-beta4 dnx-clr-win-x86.1.0.0-beta6-11938 Each of them has its own bin folder with dnx

How to deploy asp.net application to docker container on Linux server?

我与影子孤独终老i 提交于 2020-01-04 07:51:10
问题 I have installed docker engine on a Linux server. On my desktop's Visual Studio 2015, I created an asp.net application. Now I want to publish it to the Linux server and create a docker image. I followed this step. I don't have an azure account and I want to use my own Linux server. So next, I clicked the Docker Containers . The interface became: Then I clicked Custom Docker Host and pressed OK button. The interface was Now I input the image name as DockerDemo . Also I type the server url

DNX SDK version 'dnx-clr-win-x86.1.0.0-beta8-15530' failed to install

江枫思渺然 提交于 2020-01-04 04:39:34
问题 I cloned a repository based on ASP.NET 5 Mvc 6 Beta 8. Visual Studio could not install the latest DNX SDK. This is the error message: "DNX SDK version 'dnx-clr-win-x86.1.0.0-beta8-15530' failed to install. The solution will use DNX SDK version 'dnx-clr-win-x86.1.0.0-beta7' for this session. I tried to run dnvm upgrade but it said I already have the latest version. This is the repository: https://github.com/Kukkimonsuta/Odachi/tree/master/src/Odachi.Security.BasicAuthentication (It is a sample

ASP.NET CORE 1.0, Impersonation

落爺英雄遲暮 提交于 2020-01-03 08:56:09
问题 I'm writing an Intranet application. Target framework in project.json is dnx451. That's my publishing command: dnu publish --runtime dnx-clr-win-x86.1.0.0-rc1-update1 --no-source Database Connection string: Server=name;Database=name;Trusted_Connection=True; I'm trying to impersonate the database access but it's not working. When I start the application my windows user is recognized and it says Hello, Domain\Username on top right. As soon as I try to access the database I get the error "Login

How to work with multiple .net projects on os x and vs code

≡放荡痞女 提交于 2020-01-03 01:28:06
问题 I am trying to create a typical solution/project layout using vs code. I created the various libraries using yo aspnet , but I don't know how to reference projects in vs code. Do I use a single project.json at the root? How does it know what the startup project and entry point are? Also, is there a way to get intellisense on the namespacing? 回答1: If you don't use Visual Studio (the full version), then you don't need a solution or xproj files. You just use folders and project.json files to

MySql in DNX 5.0

大城市里の小女人 提交于 2020-01-01 04:42:07
问题 I would like to ask- is it possible to connect to MySql database in DNX Core 5.0? In my project I need to do web api and I have vNext Class Library project that should connect to MySql database and manipulate the data in this database. But... I have the newest .net/connector installed. I have downloaded the MySql.Data NuGet package and in references it is added to both- DNX 4.5.1 and Core 5.0 as well. But I get error- functions such as open the connection to my database, execute query etc are