Skip to content

Commit e4b29b4

Browse files
committed
Simplify the inclusion of .props and .targets
1 parent 77288fb commit e4b29b4

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

build.proj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
<Target Name="CopyMSBuildScripts" AfterTargets="PublishMSBuildTaskProject">
2020
<ItemGroup>
21-
<BuildScript Include="$(MSBuildThisFileDirectory)src\coverlet.msbuild\coverlet.msbuild.props" />
22-
<BuildScript Include="$(MSBuildThisFileDirectory)src\coverlet.msbuild\coverlet.msbuild.targets" />
21+
<BuildScript Include="$(MSBuildThisFileDirectory)src\coverlet.msbuild.tasks\coverlet.msbuild.props" />
22+
<BuildScript Include="$(MSBuildThisFileDirectory)src\coverlet.msbuild.tasks\coverlet.msbuild.targets" />
2323
</ItemGroup>
2424
<Copy SourceFiles="@(BuildScript)" DestinationFolder="$(OutputPath)" />
2525
</Target>

src/coverlet.msbuild.tasks/coverlet.msbuild.tasks.csproj

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<Description>Coverlet is a cross platform code coverage library for .NET Core, with support for line, branch and method coverage.</Description>
1818
<PackageTags>coverage testing unit-test lcov opencover quality</PackageTags>
1919
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
20+
21+
<!-- Items in the Content group are placed in this folder in the NuGet package. -->
2022
<ContentTargetFolders>build</ContentTargetFolders>
2123

2224
<!-- Build tasks should not be added to the lib folder. -->
@@ -38,13 +40,8 @@
3840
</ItemGroup>
3941

4042
<ItemGroup>
41-
<None Include="..\coverlet.msbuild\coverlet.msbuild.props">
42-
<Link>build\coverlet.msbuild.props</Link>
43-
<Pack>true</Pack>
44-
</None>
45-
<Content Include="..\coverlet.msbuild\coverlet.msbuild.targets">
46-
<Link>build\coverlet.msbuild.targets</Link>
47-
</Content>
43+
<Content Include="coverlet.msbuild.props" />
44+
<Content Include="coverlet.msbuild.targets" />
4845
</ItemGroup>
4946

5047
<Target Name="PackBuildOutputs" DependsOnTargets="ResolveProjectReferences;SatelliteDllsProjectOutputGroup;DebugSymbolsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies;ResolveAssemblyReferences">

0 commit comments

Comments
 (0)