|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk">
|
2 | 2 | <PropertyGroup>
|
3 |
| - <TargetFramework>netstandard2.0</TargetFramework> |
| 3 | + <TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks> |
4 | 4 | <AssemblyTitle>coverlet.collector</AssemblyTitle>
|
5 | 5 | <DevelopmentDependency>true</DevelopmentDependency>
|
6 | 6 | <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
|
14 | 14 | <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
|
15 | 15 | <TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackBuildOutputs</TargetsForTfmSpecificContentInPackage>
|
16 | 16 | <!-- Open issue https://github.com/NuGet/Home/issues/8941 -->
|
17 |
| - <NoWarn>$(NoWarn);NU5127</NoWarn> |
| 17 | + <NoWarn>$(NoWarn);NU5127;NU5100</NoWarn> |
18 | 18 | <EnablePackageValidation>true</EnablePackageValidation>
|
19 | 19 | <!-- disable transitive version update and use versions defined in coverlet.core -->
|
20 | 20 | <CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
|
|
43 | 43 | </ItemGroup>
|
44 | 44 |
|
45 | 45 | <ItemGroup>
|
46 |
| - <None Update="build\**" Pack="true" PackagePath="" /> |
47 | 46 | <None Include="$(MSBuildThisFileDirectory)..\..\_assets\coverlet-icon.png" Pack="true" PackagePath="\" />
|
48 | 47 | <None Include="..\..\Documentation\VSTestIntegration.md" Link="VSTestIntegration.md" Pack="true" PackagePath="\">
|
49 | 48 | <PackageCopyToOutput>true</PackageCopyToOutput>
|
|
81 | 80 | <ProjectReference Include="$(MSBuildThisFileDirectory)..\coverlet.core\coverlet.core.csproj" />
|
82 | 81 | </ItemGroup>
|
83 | 82 |
|
84 |
| - <Target Name="PackBuildOutputs"> |
| 83 | + <ItemGroup> |
| 84 | + <None Include="build\coverlet.collector.targets" > |
| 85 | + <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| 86 | + </None> |
| 87 | + </ItemGroup> |
| 88 | + |
| 89 | + <!--<Target Name="PackBuildOutputs"> |
85 | 90 | <ItemGroup>
|
86 | 91 | <TfmSpecificPackageFile Include="$(TargetDir)\*.dll" PackagePath="build\netstandard2.0\" />
|
87 | 92 | <TfmSpecificPackageFile Include="$(TargetDir)\*.pdb" PackagePath="build\netstandard2.0\" />
|
88 | 93 | <TfmSpecificPackageFile Include="$(TargetDir)\*.deps.json" PackagePath="build\netstandard2.0\" />
|
89 | 94 | </ItemGroup>
|
| 95 | + </Target>--> |
| 96 | + |
| 97 | + <Target Name="PackBuildOutputs"> |
| 98 | + <ItemGroup> |
| 99 | + <TfmSpecificPackageFile Include="build\coverlet.collector.targets" PackagePath="build\$(TargetFramework)" /> |
| 100 | + <TfmSpecificPackageFile Include="$(TargetPath)" PackagePath="build\$(TargetFramework)" /> |
| 101 | + <TfmSpecificPackageFile Include="$(ProjectDepsFilePath)" PackagePath="build\$(TargetFramework)" /> |
| 102 | + <TfmSpecificPackageFile Include="@(DebugSymbolsProjectOutputGroupOutput)" PackagePath="build\$(TargetFramework)" /> |
| 103 | + <TfmSpecificPackageFile Include="%(_ResolvedProjectReferencePaths.Identity)" PackagePath="build\$(TargetFramework)" /> |
| 104 | + <TfmSpecificPackageFile Include="@(ReferenceCopyLocalPaths)" Exclude="@(_ResolvedProjectReferencePaths)" PackagePath="build\$(TargetFramework)\%(ReferenceCopyLocalPaths.DestinationSubPath)" /> |
| 105 | + </ItemGroup> |
90 | 106 | </Target>
|
91 | 107 | </Project>
|
0 commit comments