dnvm

Couldn't determine an appropriate version of runtime to run

拜拜、爱过 提交于 2019-12-23 02:18:27
问题 I just finished upgrading to beta4. My code compiles successfully with no errors/warnings but I am unable to launch my web api hosted in IIS Express (by hitting F5 ). I get the following error: Couldn't determine an appropriate version of runtime to run. See http://go.microsoft.com/fwlink/?LinkId=517742 for more information. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where

The dependency >= 1.0.0-rc1-update1 could not be resolved

杀马特。学长 韩版系。学妹 提交于 2019-12-21 20:57:31
问题 I want to update my C# web application to the next asp.net version. I ran dnvm use 1.0.0-rc1-update1 -r clr arch x64 -p and dnvm list shows that the active version has been set to rc1-update1 Now I want to update my VS2015 solution to use rc1-update1 I edited project.json to update the version from rc1-final to rc1-update1 however VS now indicates "package restore failed". and I have error messages like this. Severity Code Description Project File Line Suppression State Error CS0234 The type

How to fix DNX/DNVM in Visual Studio 2015?

假装没事ソ 提交于 2019-12-17 09:15:10
问题 Today I installed VS 2015 on Windows 7 x64. Mainly to test new .Net Core features and etc. And for test I created new C# "Console Application (Package)" solution and got this message: DNX SDK version 'dnx-clr-win-x86.1.0.0-beta5' failed to install. The solution will use DNX SDK version ‘dnx-clr-win-x86.1.0.0-beta5’ for this session. I can't compile and debug project. Also, when I have opened debug tab in project properties then VS crashed. DNVM output when I opened solution: Invoke-Command :

Exception on opening existing project after ugrading to ASP.NET MVC6 beta7

余生长醉 提交于 2019-12-13 13:26:55
问题 I'm using Visual Studio 2015 Community Edition and updated my existing ASP.NET MVC6 application to beta7. Now I'm not able to open the project anymore. Visual Studio crashes with the following Exception: 08.09.2015 20:23:12 Crippling System.AggregateException: One or more errors occurred. ---> Microsoft.Assumes+InternalErrorException: The specified default content type (Default) is not defined in the project item schema. at Microsoft.Assumes.Fail(String message, Boolean showAssert) at

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

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

dnx web error 500 when try to execute

余生长醉 提交于 2019-12-12 02:24:10
问题 I'm trying to execute in a Mac (El Capitán), the MusicStore example in ASP.NET from the official repository. I have tested it using mono and core, switching in dnvm, but no results. The dnu build is working fine with mono, with core, the build fails. When I execute dnx web, all works fine, but when I execute the project (firs load), I have a 500 error, with this error: An unhandled exception has occurred: Unable to resolve service for type 'Microsoft.Extensions.CompilationAbstractions

ASP.NET OmniSharp server is not running on Ubuntu Mono

无人久伴 提交于 2019-12-11 11:54:27
问题 After setting up VS Code, I'm trying to run an ASP.NET 5 project using Visual studio code's command palette on Ubuntu Linux 14.4. The DNVM installed is for Mono. Following the steps given on VS code's official docs, the project is created with Yeoman scaffolder. Whenever trying to start the project, I get the following error: OmniSharp server is not running. I found some posts when trying to solve this but most seems to be addressing either Console project or are given for OS x: For a Console

ASP.NET v5 without DNX

元气小坏坏 提交于 2019-12-10 16:13:24
问题 I understand that DNX provides the ability to invoke the various new package management features of ASP.NET v5 apps. However, is it possible to "build" one of these apps (using DNX etc) and "precompile" them in such a way that they can be deployed to (using Octopus) and run on a unmodified IIS server using .NET framework 4.5? I had the option to target .NET 4.5 when creating the project, and while installing DNX on our build server is unlikely to be a problem, it's too soon to push it out to

Kestrel Running which framework?

大城市里の小女人 提交于 2019-12-10 14:59:45
问题 I have a new ASP.NET 5 project and setup the project.json as below; "frameworks": { "dnx451": { "dependencies": { "ExternalLibrary": "1.3.0" } }, "dnxcore50": {} } I'm running the project through Kestrel with the default command defined in project.json. "kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5001" Everything works fine. The project runs and the dependency works well. The only thing I don't understand it who decides on which underlying framework to