About ef core entity class library to generate, to generate the debug directory appsettings.json

The entity class generation ef core to the debug standard class library FIG appsettings.json not found in the configuration file added csproj 

 

<ItemGroup>
<Content Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

appsettings.json profile can be generated under the debug above can then read the configuration file

Guess you like

Origin www.cnblogs.com/muzishisan/p/11234502.html