.net-core-rc2

Gulp error with angular2

荒凉一梦 提交于 2020-03-06 04:21:52
问题 I am having an error while deploying an angular project using .gulp at .netCore Package.json "dependencies": { "@angular/common": "~2.1.0", "@angular/compiler": "~2.1.0", "@angular/core": "~2.1.0", "@angular/forms": "~2.1.0", "@angular/http": "~2.1.0", "@angular/platform-browser": "~2.1.0", "@angular/platform-browser-dynamic": "~2.1.0", "@angular/router": "~3.1.0", "@angular/upgrade": "~2.1.0", "@angular/angular-in-memory-web-api": "~0.1.5", "@angular/angular-cli": "1.0.0-beta.19-3". ... }

Gulp error with angular2

♀尐吖头ヾ 提交于 2020-03-06 04:20:13
问题 I am having an error while deploying an angular project using .gulp at .netCore Package.json "dependencies": { "@angular/common": "~2.1.0", "@angular/compiler": "~2.1.0", "@angular/core": "~2.1.0", "@angular/forms": "~2.1.0", "@angular/http": "~2.1.0", "@angular/platform-browser": "~2.1.0", "@angular/platform-browser-dynamic": "~2.1.0", "@angular/router": "~3.1.0", "@angular/upgrade": "~2.1.0", "@angular/angular-in-memory-web-api": "~0.1.5", "@angular/angular-cli": "1.0.0-beta.19-3". ... }

Error when Dictionary count is bigger as 89478457

戏子无情 提交于 2020-01-13 07:06:54
问题 I am getting on this command Dictionary<UInt64, int> myIntDict = new Dictionary<UInt64, int>(89478458); this error: System.OutOfMemoryException was unhandled HResult=-2147024882 Message=Array dimensions exceeded supported range. Source=mscorlib StackTrace: at System.Collections.Generic.Dictionary`2.Initialize(Int32 capacity) at System.Collections.Generic.Dictionary`2..ctor(Int32 capacity, IEqualityComparer`1 comparer) On 89478457 there is no error. Here is the source of Initialize in

How to start a ASP.NET Core 1.0 RC2 app that doesn't listen to the localhost

夙愿已清 提交于 2020-01-11 09:51:32
问题 how can I start the ASP.NET Core with the dotnet CLI samples so that they don't listen to the localhost? This command doesn't work: dotnet run --server.urls=http://*:5000 回答1: What you're trying to do requires you to add command-line args to your configuration in the Main method of your application. Add something like this before you create your WebHostBuilder object: var config = new ConfigurationBuilder() .AddCommandLine(args) .Build(); And then add this to the WebHostBuilder object before

How to start a ASP.NET Core 1.0 RC2 app that doesn't listen to the localhost

自作多情 提交于 2020-01-11 09:51:12
问题 how can I start the ASP.NET Core with the dotnet CLI samples so that they don't listen to the localhost? This command doesn't work: dotnet run --server.urls=http://*:5000 回答1: What you're trying to do requires you to add command-line args to your configuration in the Main method of your application. Add something like this before you create your WebHostBuilder object: var config = new ConfigurationBuilder() .AddCommandLine(args) .Build(); And then add this to the WebHostBuilder object before

Conditional compilation symbol for a .NET Core class library

左心房为你撑大大i 提交于 2020-01-11 04:47:04
问题 I have created a .NET Core R2 class library and have some common code that I use for several different platforms. Some of the code is not valid in the .NET Core platform and so I wish to wrap it around a conditional compilation symbol . I first searched the Internet to see if I could find a built-in symbol (like SILVERLIGHT for Silverlight applications and WINFX_CORE for Windows 8 applications), but I was not able to find any information, so I decided to create my own symbol. This also does

Can't find Abort method in Thread

末鹿安然 提交于 2020-01-10 01:06:08
问题 I'm porting a project to .NET Core and have some logic with the method. Do you know .NET Core supports Abort() method in Thread class? 回答1: Thread.Abort has been removed in .NET Core. Move Thread.Abort under FEATURE_LEGACYSURFACE https://github.com/dotnet/coreclr/pull/2342 Never call Thread.Abort https://github.com/aspnet/KestrelHttpServer/pull/726 for tests purpose the custom Abort Ext method is used 回答2: As far as I have understood so far it is now recommended to use CancellationToken.

C#/C(managed2unamanged)Visual studio 2015 update 2 , .NetCore Console App 1.0 , not able to debug Native Code Debugging

天大地大妈咪最大 提交于 2020-01-07 07:43:08
问题 I am using a .Net Core Console App using Visual Studio 2015 update 2 on windows machine. I am using a package "pack1"(managed code) in this console application which in turn calls native / c code dll. I am able to step into pack1 code, but i am not able to step into my native code. Tried giving symbol path to native code pdb file , enabled native and managed code compatibility option,tried putting breakpoint into the native c source code directly, also tried to step into c code from managed

How to register a COM shared as a NuGet Package in a Class Library (.NET Core)?

为君一笑 提交于 2020-01-05 22:52:49
问题 There are 4 projects: MyProject.Domain MyProject.Services.Contracts MyProject.Services.Acomba MyProject.Services.Acomba.Tests The Acomba projects depends on a NuGet Package that I packed according to this SO Answer. All of those projects are of type Class Library (.NET Core) and target: NET451 NET452 NET461 NETSTANDARD1.5 Except for the test project which consists of a .NET Core App which target: NETCOREAPP1.0 As the Getting started with xUnit.net (.NET Core / ASP.NET Core) webpage describes.