Skip to content

Commit 6ef6111

Browse files
committed
update _CoverletSdkMinVersionWithDependencyTarget and fix coverlet.integration.determisticbuild.csproj
1 parent 9a478f5 commit 6ef6111

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

coverlet.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "coverlet.tests.projectsampl
9090
EndProject
9191
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "coverlet.core.coverage.tests", "test\coverlet.core.coverage.tests\coverlet.core.coverage.tests.csproj", "{F74AD549-EFE0-4CD9-AD10-B2189E3FD5BB}"
9292
EndProject
93+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "coverlet.integration.determisticbuild", "test\coverlet.integration.determisticbuild\coverlet.integration.determisticbuild.csproj", "{C80BF6A9-63EE-6D36-8913-627A7E2EA459}"
94+
EndProject
9395
Global
9496
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9597
Debug|Any CPU = Debug|Any CPU
@@ -196,6 +198,10 @@ Global
196198
{F74AD549-EFE0-4CD9-AD10-B2189E3FD5BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
197199
{F74AD549-EFE0-4CD9-AD10-B2189E3FD5BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
198200
{F74AD549-EFE0-4CD9-AD10-B2189E3FD5BB}.Release|Any CPU.Build.0 = Release|Any CPU
201+
{C80BF6A9-63EE-6D36-8913-627A7E2EA459}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
202+
{C80BF6A9-63EE-6D36-8913-627A7E2EA459}.Debug|Any CPU.Build.0 = Debug|Any CPU
203+
{C80BF6A9-63EE-6D36-8913-627A7E2EA459}.Release|Any CPU.ActiveCfg = Release|Any CPU
204+
{C80BF6A9-63EE-6D36-8913-627A7E2EA459}.Release|Any CPU.Build.0 = Release|Any CPU
199205
EndGlobalSection
200206
GlobalSection(SolutionProperties) = preSolution
201207
HideSolutionNode = FALSE
@@ -227,6 +233,7 @@ Global
227233
{0B109210-03CB-413F-888C-3023994AA384} = {2FEBDE1B-83E3-445B-B9F8-5644B0E0E134}
228234
{71004336-9896-4AE5-8367-B29BB1680542} = {2FEBDE1B-83E3-445B-B9F8-5644B0E0E134}
229235
{F74AD549-EFE0-4CD9-AD10-B2189E3FD5BB} = {2FEBDE1B-83E3-445B-B9F8-5644B0E0E134}
236+
{C80BF6A9-63EE-6D36-8913-627A7E2EA459} = {2FEBDE1B-83E3-445B-B9F8-5644B0E0E134}
230237
EndGlobalSection
231238
GlobalSection(ExtensibilityGlobals) = postSolution
232239
SolutionGuid = {9CA57C02-97B0-4C38-A027-EA61E8741F10}

src/coverlet.collector/build/coverlet.collector.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
1717
</ItemGroup>
1818
<Copy SourceFiles="@(CoverletDataCollectorFiles)" DestinationFolder="$(PublishDir)%(RecursiveDir)" />
1919
</Target>
20-
20+
2121
<Target Name="SetXPlatDataCollectorPath" BeforeTargets="VSTest">
2222
<PropertyGroup>
2323
<VSTestTestAdapterPath>$(VSTestTestAdapterPath);$(MSBuildThisFileDirectory)</VSTestTestAdapterPath>
@@ -27,7 +27,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
2727
<PropertyGroup>
2828
<_CoverletSdkNETCoreSdkVersion>$(NETCoreSdkVersion)</_CoverletSdkNETCoreSdkVersion>
2929
<_CoverletSdkNETCoreSdkVersion Condition="$(_CoverletSdkNETCoreSdkVersion.Contains('-'))">$(_CoverletSdkNETCoreSdkVersion.Split('-')[0])</_CoverletSdkNETCoreSdkVersion>
30-
<_CoverletSdkMinVersionWithDependencyTarget>6.0.100</_CoverletSdkMinVersionWithDependencyTarget>
30+
<_CoverletSdkMinVersionWithDependencyTarget>8.0.100</_CoverletSdkMinVersionWithDependencyTarget>
3131
<_CoverletSourceRootTargetName>CoverletGetPathMap</_CoverletSourceRootTargetName>
3232
<_CoverletSourceRootTargetName Condition="'$([System.Version]::Parse($(_CoverletSdkNETCoreSdkVersion)).CompareTo($([System.Version]::Parse($(_CoverletSdkMinVersionWithDependencyTarget)))))' &gt;= '0' ">InitializeSourceRootMappedPaths</_CoverletSourceRootTargetName>
3333
</PropertyGroup>

test/coverlet.integration.determisticbuild/coverlet.integration.determisticbuild.csproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<!-- Import coverlet version-->
3-
<Import Project="$(MSBuildThisFileDirectory)\DeterministicTest.props" />
3+
<Import Project="$(MSBuildThisFileDirectory)\DeterministicTest.props" Condition="Exists('$(MSBuildThisFileDirectory)\DeterministicTest.props')" />
4+
<!-- Define default values if props file doesn't exist -->
5+
<PropertyGroup Condition="!Exists('DeterministicTest.props')">
6+
<coverletCollectorsVersion>6.0.4</coverletCollectorsVersion>
7+
<coverletMsbuildVersion>6.0.4</coverletMsbuildVersion>
8+
</PropertyGroup>
49

510
<PropertyGroup>
611
<TargetFramework>net8.0</TargetFramework>
@@ -16,7 +21,6 @@
1621

1722
<ItemGroup>
1823
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkVersion)" />
19-
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
2024
<PackageReference Include="coverlet.msbuild" Version="$(coverletMsbuildVersion)">
2125
<PrivateAssets>all</PrivateAssets>
2226
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
@@ -30,6 +34,5 @@
3034
<PrivateAssets>all</PrivateAssets>
3135
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
3236
</PackageReference>
33-
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="8.0.1" />
3437
</ItemGroup>
3538
</Project>

0 commit comments

Comments
 (0)