Skip to content

Commit c1d059b

Browse files
feat(eng): enable package validation in fsproj (#259)
Add EnablePackageValidation=true to the library project. This activates the .NET SDK's built-in package validation on every build, catching package structure problems early (e.g. missing frameworks, mismatched assemblies across TFMs). A commented-out PackageValidationBaselineVersion property is included as a guide for enforcing binary-compatibility checks against a previously- published version. Uncomment and set to e.g. '0.4.0' (or the most recently published version) to have the build fail if any public API is removed or signature-changed. Build verified: 0 warnings, 0 errors. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 65d8898 commit c1d059b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/FSharp.Control.TaskSeq/FSharp.Control.TaskSeq.fsproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Generates optimized IL code through resumable state machines, and comes with a c
2525
<PackageTags>taskseq;f#;fsharp;asyncseq;seq;sequences;sequential;threading;computation expression;IAsyncEnumerable;task;async;iteration</PackageTags>
2626
<IncludeSymbols>True</IncludeSymbols>
2727
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
28+
<!-- Validate package structure and (when PackageValidationBaselineVersion is set) binary compatibility -->
29+
<EnablePackageValidation>true</EnablePackageValidation>
30+
<!-- Set this to the last published version to enforce binary compatibility, e.g. 0.4.0 -->
31+
<!-- <PackageValidationBaselineVersion>0.4.0</PackageValidationBaselineVersion> -->
2832
</PropertyGroup>
2933

3034
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

0 commit comments

Comments
 (0)