dnx

Copy content files to output directory of DNX Console app via project.json

大憨熊 提交于 2019-12-09 15:20:26
问题 I've just started working with DNX 1.0.0-rc1-update1 in VS2015. My first app is a 'Console Application (package)' project. Everything works, except NLog logging. I suspect it's because the NLog.config doesn't get copied to the output folder. How can I tell VS to copy this file to the output folder via project.json? I've tried adding a 'resource' variable like this but it doesn't work: project.json ... "resource":"NLog.config", ... EDIT 1: I'm using dnx451 so compatibility is not an issue.

ASP.NET 5 RC1: System.IO.InvalidDataException: Unexpected end of request content

大城市里の小女人 提交于 2019-12-09 12:04:46
问题 I am running an ASP.NET 5 project in an Azure Web App. When calling on an API endpoint with a file (form-data) of about 1.5mb or larger, the following exception is thrown. Here is where the exception is thrown from. Does anyone know how this can be fixed? Is there a possible workaround? System.IO.InvalidDataException: Unexpected end of request content at Microsoft.AspNet.Server.Kestrel.Http.MessageBody.ForContentLength.d__3.MoveNext() --- End of stack trace from previous location where

xUnit.net v2 not discovering .NET Core Tests in Visual Studio 2015

亡梦爱人 提交于 2019-12-08 15:57:30
问题 I am really frustrated with this issue. I have already tried changing the version numbers but no tests are showing in the test explorer. In the test output window I can see this output Starting Microsoft.Framework.TestHost [C:\Users\sul\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4\bin\dnx.exe --appbase "path to test project" Microsoft.Framework.ApplicationHost --port 63938 Microsoft.Framework.TestHost --port 63954 list ] Unable to start Microsoft.Framework.TestHost ========== Discover test

DNX: The current runtime target framework is not compatible with project

霸气de小男生 提交于 2019-12-08 14:39:47
问题 I am getting the following run-time error: [InvalidOperationException: The current runtime target framework is not compatible with 'TestDeployProject'. Current runtime Target Framework: 'DNX,Version=v4.5 (dnx45)' Type: CLR Architecture: x86 Version: 1.0.0-beta6-12256 Please make sure the runtime matches a framework specified in project.json] Project settings DNX SDK version: project.json target frameworks: "frameworks": { "dnx46": { } }, DNVM list : Active Version Runtime Architecture

Visual Studio Code command “dnx run” not available

不问归期 提交于 2019-12-08 07:34:32
问题 I'm hoping some of you out there have tried out visual studio code for OSX and have gotten it to work with a simple C# console application. I tried following this guys tutorial, linked below. Creating and Debugging C# Console Apps with Visual Studio Code on OSX My problem is that the command "dnx run" is not showing in my command line options in visual studio code. The command "dnx run" works from the terminal, but doesn't show in visual studio code as an available command. All I see from

Entity Framwork 7.0.0-rc1-final reverse engineer from existing db “Database first”

你说的曾经没有我的故事 提交于 2019-12-08 07:00:20
问题 I am doing reverse engineering in my project. because our project we follows database first approach. Through this command, i achieved reverse engineering but not with RevEng command. dnx ef DbContext Scaffold "Server=databasename;Database=data;UserID=*;Password=*;" EntityFramework.MicrosoftSqlServer I have tried many things but still unable to find RevEng command under the ef . In a project, i am using "commands": { "web": "Microsoft.AspNet.Server.Kestrel", "ef": "EntityFramework.Commands" }

CS0433: The type 'List<T>' exists in both

笑着哭i 提交于 2019-12-08 05:34:02
问题 I try use .net core but I have a lot of diffrent problems. This is one of them. I use Ubuntu 14. Error code Microsoft.Dnx.Compilation.CSharp.RoslynCompilationException: /home/lukasz/Project/Commands.cs(10,16): DNX,Version=v4.5.1 error CS0433: The type 'List<T>' exists in both 'System.Collections, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' /home/lukasz/Project/Commands.cs(10,21): DNX

XUnit in Visual Studio 2015 RC1 Update 1 doesn't find tests

限于喜欢 提交于 2019-12-07 17:17:08
问题 I created an ASP.NET 5 project in Visual Studio 2015, using the Preview Templates. I installed XUnit via NuGet, and I added an "xUnit Test Project (DNX)" to my solution. But my Test Explorer shows nothing, even though I have a public "Fact" test method in Class1.cs. When I "Run All Tests", the "Tests" output window is blank. My "Build" output window shows that 2 project build succeeds. (My ASP.NET 5 project, and my xUnit project.) When I either build or clean my solution, however, I get the

What parameters are showing undefined in this dnvm.ps1 command? Deployment to Azure Web Site Fails as a result

感情迁移 提交于 2019-12-07 16:48:53
问题 I have been developing a new ASP.NET 5 (MVC 6) website on Linux. I am using Git with Azure and have been able to successfully push it to SCM. However my deployment fails due to some undefined parameters. Hoping someone can tell me what the undefined parameters are in the command shown in the terminal output so I can modify the script and finish this process. I run the command # git push azure master The following is the output, auto deployment should happen after a successful commit. The

How to Force Visual Studio to Use a Specific Version of DNX

笑着哭i 提交于 2019-12-07 07:29:01
问题 I was messing around with the dnvm, and I ran dnvm upgrade, putting me into beta5. However, the project I am working on is staying in beta4 (at least for now). I have been attempting to revert and failing. I have gone as far as to delete the runtime folder. Now, when I open the project or attempt to make a new one I get the following error: This is expected because I deleted the folder. However, I want to use dnx-clr-beta4. My dnvm list is as follows: What do I need to do to make Visual