|
5 | 5 | <GenerateDocumentationFile>true</GenerateDocumentationFile> |
6 | 6 | <Description>MSBuild tasks for LuYao.ResourcePacker - enables automatic resource file packaging during build</Description> |
7 | 7 | <BuildOutputTargetFolder>tasks</BuildOutputTargetFolder> |
| 8 | + <IncludeBuildOutput>false</IncludeBuildOutput> |
8 | 9 | </PropertyGroup> |
9 | 10 |
|
10 | 11 | <ItemGroup> |
|
13 | 14 | </ItemGroup> |
14 | 15 |
|
15 | 16 | <ItemGroup> |
16 | | - <ProjectReference Include="..\LuYao.ResourcePacker\LuYao.ResourcePacker.csproj" PrivateAssets="all" /> |
| 17 | + <!-- Reference to runtime library - will be added as a NuGet dependency --> |
| 18 | + <ProjectReference Include="..\LuYao.ResourcePacker\LuYao.ResourcePacker.csproj" PrivateAssets="none" /> |
| 19 | + <!-- MSBuild task and Source Generator are not exposed to consumers --> |
17 | 20 | <ProjectReference Include="..\LuYao.ResourcePacker.SourceGenerator\LuYao.ResourcePacker.SourceGenerator.csproj" PrivateAssets="all" /> |
18 | 21 | </ItemGroup> |
19 | 22 |
|
|
23 | 26 |
|
24 | 27 | <Target Name="PackTaskDependencies" BeforeTargets="GenerateNuspec"> |
25 | 28 | <ItemGroup> |
| 29 | + <!-- Include the MSBuild task DLL itself --> |
| 30 | + <_PackageFiles Include="$(OutputPath)LuYao.ResourcePacker.MSBuild.dll"> |
| 31 | + <PackagePath>tasks/$(TargetFramework)</PackagePath> |
| 32 | + <Visible>false</Visible> |
| 33 | + <BuildAction>None</BuildAction> |
| 34 | + </_PackageFiles> |
26 | 35 | <_PackageFiles Include="$(OutputPath)LuYao.ResourcePacker.dll"> |
27 | 36 | <PackagePath>tasks/$(TargetFramework)</PackagePath> |
28 | 37 | <Visible>false</Visible> |
29 | | - <BuildAction>Content</BuildAction> |
| 38 | + <BuildAction>None</BuildAction> |
30 | 39 | </_PackageFiles> |
31 | 40 | <_PackageFiles Include="$(OutputPath)LuYao.ResourcePacker.SourceGenerator.dll"> |
32 | 41 | <PackagePath>analyzers/dotnet/cs</PackagePath> |
33 | 42 | <Visible>false</Visible> |
34 | | - <BuildAction>Content</BuildAction> |
| 43 | + <BuildAction>None</BuildAction> |
35 | 44 | </_PackageFiles> |
36 | 45 | </ItemGroup> |
37 | 46 | </Target> |
|
0 commit comments