dnx

Where to find 'dnu' command in Windows

若如初见. 提交于 2019-12-02 17:23:00
I have recently installed Visual Studio 2015 RC. I'm trying to figure out the new .NET Core thing... Now I want to package my application and launch it. I wanted to play with DNX Utility but can not figure out how to run it. My command prompt still insists that there is no dnu command by saying: 'dnu' is not recognized . Searched all the entire file system but nothing found. So I don't think it is a path problem. Do I have to install it manually? Or is it a corrupted installation problem? There is something I'm really missing out but don't have any idea what it is... It should be in

How to get the “dnu” command working on OS X?

随声附和 提交于 2019-12-02 14:21:34
Just downloaded and installed Visual Studio Code on OS X 10.10.3. I've managed to partially follow the installation instructions for ASP.NET 5 . What I fail with is when the instruction tells me to call dnu restore When doing this in my terminal, it says: -bash: dnu: command not found I've found a somewhat similar question here on SO which unfortunately did not help me. My question: How can I make the "dnu" command work on OS X? Update: Someone marked my questions as the duplicate of the SO question I linked to by myself. Now SO forces me to edit my question to proof that it is not a duplicate

AngularJS with MVC 6

﹥>﹥吖頭↗ 提交于 2019-12-02 08:07:56
This is an MVC 6/WebApi application. I'm attempting to use WebApi on the backend with AngularJS on the frontend. I have two static files: index.html and login.html (There will eventually be more static files.) My Angular app is contained in the index.html while views (such as /login) are loaded from static files (i.e. login.html). If I go to my root URL, index.html is loaded just fine. However, if I go to /login, I receive a 404 page not found. Now, let it be said, I DO NOT want to bog down my application with a bunch of controllers and views as it's unnecessary to simply serve static files.

AngularJS with MVC 6

坚强是说给别人听的谎言 提交于 2019-12-02 07:58:58
问题 This is an MVC 6/WebApi application. I'm attempting to use WebApi on the backend with AngularJS on the frontend. I have two static files: index.html and login.html (There will eventually be more static files.) My Angular app is contained in the index.html while views (such as /login) are loaded from static files (i.e. login.html). If I go to my root URL, index.html is loaded just fine. However, if I go to /login, I receive a 404 page not found. Now, let it be said, I DO NOT want to bog down

dotnet restore throws error on locally referenced projects

空扰寡人 提交于 2019-12-02 06:06:06
问题 This question is about a depeciated feature. dotnet core projects from version 2.x and up no longer require a project.json file. When I build my project locally using visual studio everything works fine. However when I build it in VSTS using the recommended process from microsoft https://www.visualstudio.com/en-us/docs/build/apps/aspnet/aspnetcore-to-azure I can't get it to work. I'm finding that when I do dotnet restore I get this error message Errors in C:\a\1\s\Wedding.WebApp\project.json

DescriptionAttribute not available in DNX Core 5.0

孤街醉人 提交于 2019-12-02 04:01:33
问题 I'm having an issue with DescriptionAttribute in ASP.NET 5 project. I wanted to use DescriptionAttribute for my enum class, but the project cannot be built due to missing reference in DNX Core 5.0 Here's my project.json file { "userSecretsId": "", "version": "1.0.0-*", "compilationOptions": { "emitEntryPoint": true }, "dependencies": { "EntityFramework.Commands": "7.0.0-rc1-final", "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final", "Microsoft.AspNet.Authentication.Cookies": "1.0.0-rc1

dnx web on ubuntu 14.04 throws “System.Runtime.InteropServices.Marshal” exception (1.0.0-beta8)

巧了我就是萌 提交于 2019-12-02 02:20:17
问题 I am following various blog posts showing how to take an ASP.NET Core 1.0 application (formerly ASP.NET 5) and then install the correct .net core runtimes for Linux, so you can run on Linux, specifically on ubuntu 14.04 lts. I have the .net core tools (dnvm and dnx) installed, and I have an ASP.NET application that is just the standard template application, and I have created a repository containing it, and am trying to run it on my Ubuntu system. The latest .Net and Visual Studio tooling on

DescriptionAttribute not available in DNX Core 5.0

混江龙づ霸主 提交于 2019-12-02 01:09:18
I'm having an issue with DescriptionAttribute in ASP.NET 5 project. I wanted to use DescriptionAttribute for my enum class, but the project cannot be built due to missing reference in DNX Core 5.0 Here's my project.json file { "userSecretsId": "", "version": "1.0.0-*", "compilationOptions": { "emitEntryPoint": true }, "dependencies": { "EntityFramework.Commands": "7.0.0-rc1-final", "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final", "Microsoft.AspNet.Authentication.Cookies": "1.0.0-rc1-final", "Microsoft.AspNet.Diagnostics.Entity": "7.0.0-rc1-final", "Microsoft.AspNet.Identity

Image as resource in Asp.Net 5 class library

我怕爱的太早我们不能终老 提交于 2019-12-01 19:17:53
In .net 4.5 i was able to add a resource file to my project, add images as bitmaps to this resource file and access them by Properties.Resources.ImageName. How do i compile images in 4.6 dnx? Thanks in advance! You can specify the files that will be compiled into the assembly under the "resources" section in project.json, like so: "resources": [ "path/to/yourfile.png" ], After which, assuming your project's name is YourProject, the file can be accessed via: const string path = "YourProject.path.to.yourfile.png"; Assembly.GetExecutingAssembly().GetManifestResourceStream(path) Note how the

Problems with Directory Services and Account Management in ASP.NET Core

孤者浪人 提交于 2019-12-01 18:35:24
I have a ASP.NET Core API project and I'd like to utilize DirectoryServices and DirectoryServices.AccountManagement namespaces. After some research I thought I found some project.json references that would work: { "version": "1.0.0-*", "compilationOptions": { "emitEntryPoint": true }, "dependencies": { "EntityFramework.Commands": "7.0.0-rc1-final", "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final", "EntityFramework.MicrosoftSqlServer.Design": "7.0.0-rc1-final", "Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final", "Microsoft.AspNet.Mvc": "6.0.0-rc1-final", "Microsoft.AspNet.Server