简体   繁体   中英

.NET Core 2.0 and Aurelia

Here's my story: I created a solution in VS2017 which contains 3 projects: .NET Core 2.0 dll to store my models, WebAPI (which uses EF Core 2.0 code first) and blank Web Application. In the blank project I would like to create a frontend Aurelia app. So, I did 'au new --here' on that project, selected TypeScript as my transpiler. Now, I have a solution with 3 projects which doesn't build because of:

Error   TS5055  Build:Cannot write file 'XX/karma.conf.js' because it would overwrite input file.

I updated TypeScript to 2.3 by adding a proper entry to .csproj but still cannot compile my solution in VS2017.

My question is: how to add an Aurelia project to .NET Core 2.0 solution and get "au run --watch" works for it? I followed this post: http://mobilemancer.com/2016/10/19/aurelia-spa-typescript-dotnet-core/ but it seems not to consider all possible scenarios.

Please help me get started with .NET Core 2.0 Aurelia + WebAPI as I've been struggling with that for a couple of days.

You can look at the code from Aurelia-Typescript-Skeleton from GitHub https://github.com/aurelia/skeleton-navigation/tree/master/skeleton-typescript-aspnetcore

They have created asp.net core application and basic structure for aurelia and typescript .

You can install SPA Templates from ASP.NET core 2.0 with CLI command dotnet new --install Microsoft.AspNetCore.SpaTemplates::*

There you can find reach set of templates to start with ASP.NET core 2.0

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM