File tree 3 files changed +4
-9
lines changed
src/libraries/System.IO.Ports/pkg
3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<!--
5
- Package validation causes flaky errors during the build. Validation isn't useful during
6
- source-build (it is only a guardrail for devs), so disable it during source-build to avoid the
7
- impact on build reliability. https://github.com/dotnet/runtime/issues/60883 tracks fixing the
8
- flakiness and removing this condition.
5
+ Disable PackageValidation for non-CSProj since those will load only one roslyn assembly of the wrong
6
+ version causing the task to be in torn-state. See https://github.com/dotnet/runtime/pull/61697.
7
+ https://github.com/dotnet/runtime/issues/60883 tracks fixing this in 6.0 and removing this condition.
9
8
-->
10
- <EnablePackageValidation Condition =" '$(DotNetBuildFromSource )' != 'true '" >true</EnablePackageValidation >
9
+ <EnablePackageValidation Condition =" '$(MSBuildProjectExtension )' == '.csproj '" >true</EnablePackageValidation >
11
10
<!-- Don't restore prebuilt packages during sourcebuild. -->
12
11
<DisablePackageBaselineValidation Condition =" '$(DotNetBuildFromSource)' == 'true'" >true</DisablePackageBaselineValidation >
13
12
<PackageValidationBaselineVersion Condition =" '$(PackageValidationBaselineVersion)' == ''" >6.0.0</PackageValidationBaselineVersion >
Original file line number Diff line number Diff line change 6
6
<NoTargetsDoNotReferenceOutputAssemblies >false</NoTargetsDoNotReferenceOutputAssemblies >
7
7
<!-- This is a meta package and doesn't contain any libs. -->
8
8
<NoWarn >$(NoWarn);NU5128</NoWarn >
9
- <!-- It doesn't make sense to run package validation on native packages -->
10
- <EnablePackageValidation >false</EnablePackageValidation >
11
9
</PropertyGroup >
12
10
13
11
<ItemGroup >
Original file line number Diff line number Diff line change 13
13
<UseRuntimePackageDisclaimer >true</UseRuntimePackageDisclaimer >
14
14
<!-- This is a native package and doesn't contain any ref/lib assets. -->
15
15
<NoWarn >$(NoWarn);NU5128</NoWarn >
16
- <!-- It doesn't make sense to run package validation on native packages -->
17
- <EnablePackageValidation >false</EnablePackageValidation >
18
16
</PropertyGroup >
19
17
20
18
<ItemGroup >
You can’t perform that action at this time.
0 commit comments