Questions tagged [.net-core-rc1]

11 questions
20
votes
3 answers

Set the IHostingEnvironment in unit test

I am currently upgrading a project from .NET Core RC1 to the new RTM 1.0 version. In RC1, there was a IApplicationEnvironment which was replaced with IHostingEnvironment in version 1.0 In RC1 I could do this public class MyClass { protected…
Bill Posters
  • 759
  • 2
  • 9
  • 16
19
votes
3 answers

How to get claim inside Asp.Net Core Razor View

I did it in my rc1 project like: User.Claims.ElementAt(#).Value But after I switched to rtm it wouldn’t work anymore. When I debug the Razor view the object looks the same but User.Claims is just empty. Any idea what the reason could be.
Sknecht
  • 789
  • 2
  • 10
  • 27
3
votes
2 answers

Why does the .NetCore Class Library reference .NetStandard?

In VS2015 > New Project > .Net Core, there is a template for "Class Library (.NET Core)" It wasn't until I tried to reference this library in a .NET Core Web API program, that I realized that the Class Library template is referencing .NETStandard…
Steve Eggering
  • 609
  • 1
  • 8
  • 21
2
votes
1 answer

VS2015: Adding "watch": true to tsconfig.json causing JsErrorScriptException (0x30001)

I have created a dummy basic project in VS2015 Community Update 3, Version 14.0.25424.00. (Using this great tutorial: aspnet-core-web-api-angularjs-2 ). This angular-2 project has some .ts files. The problem: Instead of being transpiled…
2
votes
3 answers

.Net Core/DNX and WebApi compression

I have be seeing a number of examples on how to enable compression in a self-hosted web setup (non IIS). Eg. here is a created for ASP .NET 5 http://www.erwinvandervalk.net/2015/02/enabling-gzip-compression-in-webapi-and.html This doesnt work with…
ThomasFJ
  • 71
  • 1
  • 7
1
vote
0 answers

Getting ASP.NET Core RC1, DNX & dnu on CI/build server after release of ASP.NET Core RTM

How do you get ASP.NET Core RC1, DNX & dnu on CI/build server now after the release of ASP.NET Core RTM - without installing Visual Studio 2015 Update 1 (and letting it fetch the RC1 runtime) on the server? Now that ASP.NET Core RTM is released, the…
0
votes
2 answers

404 on Azure but not on local development machine

I migrated a MVC project from Asp.net 5 RC1-final to core 1.0.1. On my Development machine everything runs perfect but when I publish it to Azure WebApp I get a 404 on every route. I tried to debug the site and it seems that the View can not be…
Sknecht
  • 789
  • 2
  • 10
  • 27
0
votes
1 answer

How to manually import the portable profile “portable-net45+win8”?

I am upgrading a .NET solution from .NET Core rc1 to rc2 following the instructions here: http://ef.readthedocs.io/en/latest/miscellaneous/rc1-rc2-upgrade.html In the article it states 'The workaround is to manually import the portable profile…
Mark Chidlow
  • 1,292
  • 1
  • 22
  • 36
0
votes
1 answer

unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel' Publish website on Windows Server

I am getting following error while running the publish asp.net core RC1 website on the Windows Server using web.cmd, Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel' The publish website has runtime included. Here is…
0
votes
1 answer

How to continue to use ASP.NET Core RC1 tooling on Azure

We have a project using ASP.NET Core RC1 on Azure. This is using continuous deployment and has been working without issue for months. We plan to convert this project to use RC2 and the associated dotnet CLI tools shortly, although we can't do this…
corkington
  • 267
  • 2
  • 6
0
votes
0 answers

dnvm upgrade failing with exception

I'm getting an unhelpful exception when running dnvm upgrade: C:\Users\...\Visual Studio 2015\Projects\foo>dnvm upgrade Determining latest version Unable to find any runtime packages on the feed! At C:\Users\banksd\.dnx\bin\dnvm.ps1:483 char:9 + …
BanksySan
  • 24,077
  • 27
  • 94
  • 189