diff --git a/Directory.Build.props b/Directory.Build.props index 12e7d9a..b01a726 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -65,7 +65,7 @@ on. It targets net10.0 only. No shipping package references it. --> - 0.3.0-preview.1 + 0.5.0-preview.1 diff --git a/scripts/test-verificationglue.sh b/scripts/test-verificationglue.sh index 1d39977..db665cb 100755 --- a/scripts/test-verificationglue.sh +++ b/scripts/test-verificationglue.sh @@ -34,6 +34,13 @@ PROJECTS=( if [ -n "${COVERAGE_DIR}" ]; then (cd "${REPO_ROOT}" && dotnet tool restore >/dev/null) + + # A CI build sets ContinuousIntegrationBuild, which writes /_/... source paths into the PDBs. + # coverlet.console cannot map them back to the checkout: it does not read the + # CoverletSourceRootsMapping file that coverlet.collector's build targets write. It then finds + # no local source for any module, skips them all, and reports 0%. Keep real source paths in + # the coverage build. + PROPERTIES+=("-p:DeterministicSourcePaths=false") fi for project in "${PROJECTS[@]}"; do