Skip to content

Commit ab60c7e

Browse files
committed
Added nuget.csproj file
Also updated bug in template around adding EF initialization.
1 parent f2cac4e commit ab60c7e

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

nuget.csproj

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net5.0</TargetFramework>
4+
<IncludeContentInPack>true</IncludeContentInPack>
5+
<IncludeBuildOutput>false</IncludeBuildOutput>
6+
<ContentTargetFolders>content</ContentTargetFolders>
7+
<EnableDefaultItems>false</EnableDefaultItems>
8+
<NoDefaultExcludes>true</NoDefaultExcludes>
9+
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
10+
<PackageOutputPath>.</PackageOutputPath>
11+
</PropertyGroup>
12+
13+
<ItemGroup>
14+
<Content Include="src\**\*" Exclude="**\bin\**\*;**\obj\**\*" />
15+
<Content Include="tests\**\*" Exclude="**\bin\**\*;**\obj\**\*" />
16+
<Content Include=".template.config\**\*" />
17+
<Content Include="*" Exclude="nuget.csproj" />
18+
<Compile Remove="**\*" />
19+
</ItemGroup>
20+
21+
<PropertyGroup>
22+
<PackageType>Template</PackageType>
23+
<PackageVersion>1.0.0</PackageVersion>
24+
<PackageId>StaticSphere.CleanArchitecture.Api</PackageId>
25+
<Title>Clean Architecture Solution</Title>
26+
<Company>StaticSphere</Company>
27+
<Authors>Jamie Nordmeyer</Authors>
28+
<Copyright>Jamie Nordmeyer © 2020</Copyright>
29+
<Description>Creates a .NET 5 solution based on the Clean Architecture pattern.</Description>
30+
<PackageTags>c#;asp.net;core;template;web</PackageTags>
31+
<PackageCopyright>Jamie Nordmeyer © 2020</PackageCopyright>
32+
<PackageProjectUrl>https://github.com/StaticSphere/clean-architecture-dotnet-template</PackageProjectUrl>
33+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
34+
<RepositoryType>git</RepositoryType>
35+
<RepositoryUrl>https://github.com/StaticSphere/clean-architecture-dotnet-template</RepositoryUrl>
36+
</PropertyGroup>
37+
</Project>

src/CleanArchTemplate.Infrastructure/DependencyInjection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static class DependencyInjection
2222

2323
public static IServiceCollection AddInfrastructure(this IServiceCollection services, IConfiguration configuration)
2424
{
25-
#if (enablepostgres)
25+
#if (includePostgres)
2626
services.AddDbContext<CleanArchTemplateDbContext>(options =>
2727
{
2828
options.UseNpgsql(

0 commit comments

Comments
 (0)