|
25 | 25 | <NoDefaultLaunchSettingsFile>true</NoDefaultLaunchSettingsFile> |
26 | 26 | <ImplicitUsings>enable</ImplicitUsings> |
27 | 27 | <GeneratePackageOnBuild>true</GeneratePackageOnBuild> |
| 28 | + <PackageCopyToOutput>false</PackageCopyToOutput> |
28 | 29 | </PropertyGroup> |
29 | 30 |
|
30 | 31 | <Target Name="InstallGovUkFrontendPackage" Condition="!Exists('$(GovUkFrontendLibrary)')"> |
|
61 | 62 | Condition="Exists('%(_XmlDocFile.Identity)')"/> |
62 | 63 | </Target> |
63 | 64 |
|
| 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 | + |
64 | 79 | <ItemGroup> |
65 | 80 | <InternalsVisibleTo Include="GovUk.Frontend.AspNetCore.Docs" /> |
66 | 81 | <InternalsVisibleTo Include="GovUk.Frontend.AspNetCore.Tests" /> |
|
111 | 126 | </ItemGroup> |
112 | 127 |
|
113 | 128 | <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" /> |
118 | 133 | </ItemGroup> |
119 | 134 |
|
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 | | - |
134 | 135 | </Project> |
0 commit comments