Skip to content

Commit

Permalink
Simplify the inclusion of .props and .targets
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Jan 17, 2019
1 parent 77288fb commit e4b29b4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

<Target Name="CopyMSBuildScripts" AfterTargets="PublishMSBuildTaskProject">
<ItemGroup>
<BuildScript Include="$(MSBuildThisFileDirectory)src\coverlet.msbuild\coverlet.msbuild.props" />
<BuildScript Include="$(MSBuildThisFileDirectory)src\coverlet.msbuild\coverlet.msbuild.targets" />
<BuildScript Include="$(MSBuildThisFileDirectory)src\coverlet.msbuild.tasks\coverlet.msbuild.props" />
<BuildScript Include="$(MSBuildThisFileDirectory)src\coverlet.msbuild.tasks\coverlet.msbuild.targets" />
</ItemGroup>
<Copy SourceFiles="@(BuildScript)" DestinationFolder="$(OutputPath)" />
</Target>
Expand Down
File renamed without changes.
11 changes: 4 additions & 7 deletions src/coverlet.msbuild.tasks/coverlet.msbuild.tasks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<Description>Coverlet is a cross platform code coverage library for .NET Core, with support for line, branch and method coverage.</Description>
<PackageTags>coverage testing unit-test lcov opencover quality</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

<!-- Items in the Content group are placed in this folder in the NuGet package. -->
<ContentTargetFolders>build</ContentTargetFolders>

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

<ItemGroup>
<None Include="..\coverlet.msbuild\coverlet.msbuild.props">
<Link>build\coverlet.msbuild.props</Link>
<Pack>true</Pack>
</None>
<Content Include="..\coverlet.msbuild\coverlet.msbuild.targets">
<Link>build\coverlet.msbuild.targets</Link>
</Content>
<Content Include="coverlet.msbuild.props" />
<Content Include="coverlet.msbuild.targets" />
</ItemGroup>

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

0 comments on commit e4b29b4

Please sign in to comment.