Skip to content

Commit 5b388d9

Browse files
authored
Fix targets (#322)
1 parent 0eaa6a1 commit 5b388d9

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

src/Targets/CrestApps.OrchardCore.Cms.Core.Targets/CrestApps.OrchardCore.Cms.Core.Targets.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,26 @@
1111
<PackageTags>$(PackageTags) OrchardCoreCMS CMS</PackageTags>
1212
</PropertyGroup>
1313

14+
<!-- Add ".props" and ".targets" files in the package specific to the "Cms.Core" bundle -->
15+
1416
<ItemGroup>
17+
<None Include="CrestApps.OrchardCore.Cms.Core.Targets.props" Pack="true">
18+
<PackagePath>build\CrestApps.OrchardCore.Cms.Core.Targets.props</PackagePath>
19+
</None>
1520
<None Include="CrestApps.OrchardCore.Cms.Core.Targets.targets" Pack="true">
1621
<PackagePath>build\CrestApps.OrchardCore.Cms.Core.Targets.targets</PackagePath>
1722
</None>
1823
</ItemGroup>
1924

25+
<!--
26+
When a package is not directly referenced, e.g only through the reference of this bundle package,
27+
the files in its build folder are not evaluated on building if this folder is marked as private.
28+
This can be defined by using the 'PrivateAssets' attribute.
29+
30+
Here, only project references are used but when packing the bundle they become package references,
31+
and with the same 'PrivateAssets' attribute.
32+
-->
33+
2034
<ItemGroup>
2135
<ProjectReference Include="..\..\Modules\CrestApps.OrchardCore.AI\CrestApps.OrchardCore.AI.csproj" PrivateAssets="none" />
2236
<ProjectReference Include="..\..\Modules\CrestApps.OrchardCore.AI.Agent\CrestApps.OrchardCore.AI.Agent.csproj" PrivateAssets="none" />
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
3+
<PropertyGroup>
4+
<DefaultItemExcludes>$(DefaultItemExcludes);wwwroot\is-cache\**;wwwroot\ms-cache\**</DefaultItemExcludes>
5+
</PropertyGroup>
6+
7+
</Project>
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22

3-
<ItemGroup>
4-
<!-- Include DLLs from all CrestApps module packages dynamically for the consuming project’s target framework -->
5-
<ResolvedFileToPublish Include="$(NuGetPackageRoot)CrestApps.*\lib\$(TargetFramework)\*.dll" />
6-
</ItemGroup>
7-
8-
</Project>
3+
</Project>

0 commit comments

Comments
 (0)