Skip to content

Commit d52940b

Browse files
authored
Merge pull request #196 from TrackableEntities/fix-file-copy
Change package path from contentFiles to lib/net6.0
2 parents a67adb9 + 731f4ec commit d52940b

File tree

7 files changed

+21
-20
lines changed

7 files changed

+21
-20
lines changed

sample/ScaffoldingSample.Api/ScaffoldingSample.Api.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.0" />
9+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.1" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

sample/ScaffoldingSample.Embedded/ScaffoldingSample.Embedded.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.0" />
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0" />
9+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.1" />
10+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1">
11+
<PrivateAssets>all</PrivateAssets>
12+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
13+
</PackageReference>
1114
</ItemGroup>
1215

1316
<ItemGroup>

sample/ScaffoldingSample.TypeScript/ScaffoldingSample.TypeScript.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.0" />
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0" />
9+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.1" />
10+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1">
11+
<PrivateAssets>all</PrivateAssets>
12+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
13+
</PackageReference>
1114
</ItemGroup>
1215

1316
<ItemGroup>

sample/ScaffoldingSample/ScaffoldingSample.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.0" />
11-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0" />
10+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.1" />
11+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1">
12+
<PrivateAssets>all</PrivateAssets>
13+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
14+
</PackageReference>
1215
</ItemGroup>
1316

1417
<ItemGroup>

src/EntityFrameworkCore.Scaffolding.Handlebars/EntityFrameworkCore.Scaffolding.Handlebars.csproj

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6-
<Version>6.0.0-preview4</Version>
6+
<Version>6.0.0-preview5</Version>
77
<Authors>Tony Sneed</Authors>
88
<Company>Tony Sneed</Company>
99
<Title>Entity Framework Core Scaffolding with Handlebars</Title>
@@ -12,21 +12,14 @@
1212
<PackageProjectUrl>https://github.com/TrackableEntities/EntityFrameworkCore.Scaffolding.Handlebars</PackageProjectUrl>
1313
<PackageIcon>icon.png</PackageIcon>
1414
<PackageTags>scaffolding reverse-engineer entity-framework-core handlebars</PackageTags>
15-
<PackageReleaseNotes>See: https://github.com/TrackableEntities/EntityFrameworkCore.Scaffolding.Handlebars/releases/tag/v6.0.0-preview4</PackageReleaseNotes>
15+
<PackageReleaseNotes>See: https://github.com/TrackableEntities/EntityFrameworkCore.Scaffolding.Handlebars/releases/tag/v6.0.0-preview5</PackageReleaseNotes>
1616
<LangVersion>latest</LangVersion>
1717
<IncludeSource>true</IncludeSource>
1818
<SignAssembly>true</SignAssembly>
1919
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
2020
<AssemblyVersion>6.0.0.0</AssemblyVersion>
2121
<FileVersion>6.0.0.0</FileVersion>
22-
</PropertyGroup>
23-
24-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
25-
<DocumentationFile>bin\Debug\net6.0\EntityFrameworkCore.Scaffolding.Handlebars.xml</DocumentationFile>
26-
</PropertyGroup>
27-
28-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
29-
<DocumentationFile>bin\Release\net6.0\EntityFrameworkCore.Scaffolding.Handlebars.xml</DocumentationFile>
22+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
3023
</PropertyGroup>
3124

3225
<ItemGroup>
@@ -42,7 +35,7 @@
4235

4336
<ItemGroup>
4437
<Content Include="EntityFrameworkCore.Scaffolding.Handlebars.targets" PackagePath="build/EntityFrameworkCore.Scaffolding.Handlebars.targets" />
45-
<Content Include="CodeTemplates/**/*.*" Pack="true" PackagePath="contentFiles/CodeTemplates">
38+
<Content Include="CodeTemplates/**/*.*" Pack="true" PackagePath="lib/net6.0/CodeTemplates">
4639
<PackageCopyToOutput>true</PackageCopyToOutput>
4740
</Content>
4841
</ItemGroup>

src/EntityFrameworkCore.Scaffolding.Handlebars/EntityFrameworkCore.Scaffolding.Handlebars.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<ItemGroup>
4-
<Files Include="$(MSBuildThisFileDirectory)/../contentFiles/CodeTemplates/**/*.*" />
4+
<Files Include="$(MSBuildThisFileDirectory)/../lib/net6.0/CodeTemplates/**/*.*" />
55
</ItemGroup>
66
<Target Name="CopyFiles" AfterTargets="Build">
77
<Copy SourceFiles="@(Files)" DestinationFolder="$(TargetDir)/CodeTemplates/%(RecursiveDir)" />

src/EntityFrameworkCore.Scaffolding.Handlebars/HbsCSharpEntityTypeGenerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ public override string WriteCode(IEntityType entityType, string @namespace, bool
133133
bool enableSchemaFolders = (_options?.Value?.EnableSchemaFolders).GetValueOrDefault();
134134
GenerateImports(entityType, @namespace, enableSchemaFolders);
135135

136-
// TODO: _sb.AppendLine("#nullable disable");
137136
@namespace = GetNamespaceForEntity(entityType, @namespace, enableSchemaFolders);
138137

139138
TemplateData.Add("namespace", @namespace);

0 commit comments

Comments
 (0)