Skip to content

Commit 4a801a3

Browse files
committed
More debugging
1 parent 7a70068 commit 4a801a3

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

src/GovUk.Frontend.AspNetCore/GovUk.Frontend.AspNetCore.csproj

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<NoDefaultLaunchSettingsFile>true</NoDefaultLaunchSettingsFile>
2626
<ImplicitUsings>enable</ImplicitUsings>
2727
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
28+
<PackageCopyToOutput>false</PackageCopyToOutput>
2829
</PropertyGroup>
2930

3031
<Target Name="InstallGovUkFrontendPackage" Condition="!Exists('$(GovUkFrontendLibrary)')">
@@ -61,6 +62,20 @@
6162
Condition="Exists('%(_XmlDocFile.Identity)')"/>
6263
</Target>
6364

65+
<Target Name="PackTaskDependencies" BeforeTargets="GenerateNuspec" DependsOnTargets="InstallGovUkFrontendPackage">
66+
<!--
67+
The include needs to happen after output has been copied to build output folder
68+
but before NuGet generates a nuspec. See https://github.com/NuGet/Home/issues/4704.
69+
-->
70+
<ItemGroup>
71+
<_PackageFiles Include="Package\content\govuk-frontend\**">
72+
<PackagePath>content\govuk-frontend\%(RecursiveDir)</PackagePath>
73+
<Visible>false</Visible>
74+
<BuildAction>Content</BuildAction>
75+
</_PackageFiles>
76+
</ItemGroup>
77+
</Target>
78+
6479
<ItemGroup>
6580
<InternalsVisibleTo Include="GovUk.Frontend.AspNetCore.Docs" />
6681
<InternalsVisibleTo Include="GovUk.Frontend.AspNetCore.Tests" />
@@ -111,24 +126,10 @@
111126
</ItemGroup>
112127

113128
<ItemGroup>
114-
<Content Update="Package\README.md" Pack="true" PackagePath="" />
115-
<Content Update="Package\icon.png" Pack="true" PackagePath="" />
116-
<Content Update="Package\GovUk.Frontend.AspNetCore.props" Pack="true" PackagePath="build" />
117-
<Content Update="Package\GovUk.Frontend.AspNetCore.targets" Pack="true" PackagePath="build" />
129+
<Content Include="Package\README.md" Pack="true" PackagePath="" />
130+
<Content Include="Package\icon.png" Pack="true" PackagePath="" />
131+
<Content Include="Package\build\GovUk.Frontend.AspNetCore.props" Pack="true" PackagePath="build" />
132+
<Content Include="Package\build\GovUk.Frontend.AspNetCore.targets" Pack="true" PackagePath="build" />
118133
</ItemGroup>
119134

120-
<Target Name="PackTaskDependencies" BeforeTargets="GenerateNuspec">
121-
<!--
122-
The include needs to happen after output has been copied to build output folder
123-
but before NuGet generates a nuspec. See https://github.com/NuGet/Home/issues/4704.
124-
-->
125-
<ItemGroup>
126-
<_PackageFiles Include="Package\**">
127-
<PackagePath>%(RecursiveDir)</PackagePath>
128-
<Visible>false</Visible>
129-
<BuildAction>Content</BuildAction>
130-
</_PackageFiles>
131-
</ItemGroup>
132-
</Target>
133-
134135
</Project>

0 commit comments

Comments
 (0)