# Getting Started with .Net Core WebAPI and Aurelia

**URL:** <https://discourse.aurelia.io/t/getting-started-with-net-core-webapi-and-aurelia/3705>\
**Category:** Uncategorized\
**Created:** [August 10, 2020, 7:26pm UTC](https://discourse.aurelia.io/t/getting-started-with-net-core-webapi-and-aurelia/3705 "2020-08-10T19:26:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roddharris](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/roddharris/32/1340_2.png) [@roddharris](https://discourse.aurelia.io/u/roddharris)\
**Post date:** [August 10, 2020, 7:26pm UTC](https://discourse.aurelia.io/t/getting-started-with-net-core-webapi-and-aurelia/3705/1 "2020-08-10T19:26:19Z")

</div>

I am pulling my hair out trying to create a new project in VS. I want a WebAPI project that will serve up both the API data as well as the Aurelia front-end.

I use both VS 2017 as well as VS 2019 and I can’t get this to work in either.

I’ve tried creating a .Net Core API project in both VS 2017 and VS 2019 and then running `au new --here` in the directory with the project. This works, but doesn’t add any of the plumbing to `Startup.cs` in order to handle SPA files.

I’ve also tried just running `au new` and letting that generate my entire solution. This adds some extra “plumbing” `(routes.MapSpaFallbackRoute)` but when I run the project, I get an error

> clean-webpack-plugin only accepts an options object. …

I don’t recall having this much trouble in earlier versions of the CLI with VS 2017. Has anyone been able to successfully get this working?

---

<div class="post-metadata">

**Author:** ![MaximBalaganskiy](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/maximbalaganskiy/32/831_2.png) [@MaximBalaganskiy](https://discourse.aurelia.io/u/MaximBalaganskiy)\
**Post date:** [August 12, 2020, 7:24am UTC](https://discourse.aurelia.io/t/getting-started-with-net-core-webapi-and-aurelia/3705/2 "2020-08-12T07:24:57Z")

</div>

Not CLI but still

> **[MaximBalaganskiy/AureliaDotnetTemplate](https://github.com/MaximBalaganskiy/AureliaDotnetTemplate)**
>
> Aurelia .Net Template. Contribute to MaximBalaganskiy/AureliaDotnetTemplate development by creating an account on GitHub.
