|
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 |
|
| 83 | + <ItemGroup> |
| 84 | + <None Include="build\coverlet.collector.targets" > |
| 85 | + <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| 86 | + </None> |
| 87 | + </ItemGroup> |
| 88 | + |
84 | 89 | <Target Name="PackBuildOutputs"> |
85 | 90 | <ItemGroup> |
86 | | - <TfmSpecificPackageFile Include="$(TargetDir)\*.dll" PackagePath="build\netstandard2.0\" /> |
87 | | - <TfmSpecificPackageFile Include="$(TargetDir)\*.pdb" PackagePath="build\netstandard2.0\" /> |
88 | | - <TfmSpecificPackageFile Include="$(TargetDir)\*.deps.json" PackagePath="build\netstandard2.0\" /> |
| 91 | + <TfmSpecificPackageFile Include="build\coverlet.collector.targets" PackagePath="build\$(TargetFramework)" /> |
| 92 | + <TfmSpecificPackageFile Include="$(TargetPath)" PackagePath="build\$(TargetFramework)" /> |
| 93 | + <TfmSpecificPackageFile Include="$(ProjectDepsFilePath)" PackagePath="build\$(TargetFramework)" /> |
| 94 | + <TfmSpecificPackageFile Include="@(DebugSymbolsProjectOutputGroupOutput)" PackagePath="build\$(TargetFramework)" /> |
| 95 | + <TfmSpecificPackageFile Include="%(_ResolvedProjectReferencePaths.Identity)" PackagePath="build\$(TargetFramework)" /> |
| 96 | + <TfmSpecificPackageFile Include="@(ReferenceCopyLocalPaths)" Exclude="@(_ResolvedProjectReferencePaths)" PackagePath="build\$(TargetFramework)\%(ReferenceCopyLocalPaths.DestinationSubPath)" /> |
89 | 97 | </ItemGroup> |
90 | 98 | </Target> |
91 | 99 | </Project> |
0 commit comments