|
16 | 16 | <WarningsAsErrors>Nullable</WarningsAsErrors>
|
17 | 17 | <GenerateDocumentationFile>true</GenerateDocumentationFile>
|
18 | 18 | <AnalysisMode>All</AnalysisMode>
|
| 19 | + <WarnOnPackingNonPackableProject>false</WarnOnPackingNonPackableProject> |
19 | 20 | </PropertyGroup>
|
20 | 21 |
|
21 | 22 | <!-- NuGet packages lock -->
|
|
28 | 29 | <!-- SourceLink -->
|
29 | 30 | <PropertyGroup>
|
30 | 31 | <PublishRepositoryUrl>true</PublishRepositoryUrl>
|
31 |
| - <EmbedUntrackedSources>true</EmbedUntrackedSources> |
32 | 32 | <IncludeSymbols>true</IncludeSymbols>
|
33 | 33 | <SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
34 | 34 | </PropertyGroup>
|
35 | 35 |
|
36 | 36 | <!-- Package Validation -->
|
37 | 37 | <PropertyGroup>
|
38 | 38 | <GenerateCompatibilitySuppressionFile>false</GenerateCompatibilitySuppressionFile>
|
39 |
| - <EnablePackageValidation>false</EnablePackageValidation> |
| 39 | + <!--<EnablePackageValidation>true</EnablePackageValidation>--> |
40 | 40 | <PackageValidationBaselineVersion>13.0.0</PackageValidationBaselineVersion>
|
41 | 41 | <EnableStrictModeForCompatibleFrameworksInPackage>true</EnableStrictModeForCompatibleFrameworksInPackage>
|
42 | 42 | <EnableStrictModeForCompatibleTfms>true</EnableStrictModeForCompatibleTfms>
|
|
53 | 53 | <!-- Use version range on project references (to limit on major version in generated packages) -->
|
54 | 54 | <Target Name="_GetProjectReferenceVersionRanges" AfterTargets="_GetProjectReferenceVersions">
|
55 | 55 | <ItemGroup>
|
56 |
| - <_ProjectReferencesWithVersionRanges Include="@(_ProjectReferencesWithVersions)"> |
57 |
| - <ProjectVersion Condition="'%(_ProjectReferencesWithVersions.ProjectVersion)' != ''">[%(_ProjectReferencesWithVersions.ProjectVersion), $([MSBuild]::Add($([System.Text.RegularExpressions.Regex]::Match('%(_ProjectReferencesWithVersions.ProjectVersion)', '^\d+').Value), 1)))</ProjectVersion> |
58 |
| - </_ProjectReferencesWithVersionRanges> |
59 |
| - </ItemGroup> |
60 |
| - <ItemGroup> |
61 |
| - <_ProjectReferencesWithVersions Remove="@(_ProjectReferencesWithVersions)" /> |
62 |
| - <_ProjectReferencesWithVersions Include="@(_ProjectReferencesWithVersionRanges)" /> |
| 56 | + <_ProjectReferencesWithVersions Condition="'%(ProjectVersion)' != ''"> |
| 57 | + <ProjectVersion>[%(ProjectVersion), $([MSBuild]::Add($([System.Text.RegularExpressions.Regex]::Match('%(ProjectVersion)', '^\d+').Value), 1)))</ProjectVersion> |
| 58 | + </_ProjectReferencesWithVersions> |
63 | 59 | </ItemGroup>
|
64 | 60 | </Target>
|
65 | 61 | </Project>
|
0 commit comments