Question: Here, how I have configured the routing

```
var config = function (rp) {
    rp.when(
        '/docs',
        {
            templateUrl: 'Docs.htm'
        }
    );
};
config.$inject = ['$routeProvider'];
app.config(config);

```

then I added 

```
<a href="#docs">Docs</a>

```

to my htm page.

when the link is clicked, URL is changed to

> 
> my\_pagename.htm#!#docs
> 
> 
> 

and it does not load the template.

but when I manually type the URL in location as

> 
> my\_pagename.htm#!/docs (replaced hash symbol with '/')
> 
> 
> 

it loads fine.

Can you please tell me the error here?

what is the proper way of specifying the href attribute, in order to work with angular routing?
My angular version is 1.6.3

Answer: 
for me, it worked fine after setting the start up project to the class library also you can do it without setting the start up project by using the command 

```
Add-Migration -project [ProjectName] initDB

```

also here is my .csproj for reference 

```
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.2" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.2" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.1.1" />
  </ItemGroup>
  <ItemGroup>
    <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore" Version="1.1.2" />  
    <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.2" />
</ItemGroup>

</Project>

```
I followed instructions from Bart Lannoeye:

UWP apps can’t run in the AnyCPU configuration
I chanbged my project to run in x86 and migrations started to work.

<http://www.bartlannoeye.com/blog/ef-core-migrations-throws-exception-calling-createinstanceandunwrap>