From ecc34ff902289ac30f6b6d4c926ccd2081e8a28d Mon Sep 17 00:00:00 2001
From: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com>
Date: Fri, 17 Apr 2026 22:39:48 +0100
Subject: [PATCH] Net: Publish all packages as 0.0.1-preview.260417.2 (#5341)
Revises the Foundry pre-release approach to publish ALL normally packable src projects as preview packages stamped 0.0.1-preview.260417.2, including projects previously flagged IsReleased=true or with a non-default VersionSuffix (rc/alpha).
nuget-package.props:
- Collapse the four conditional PackageVersion expressions (IsReleaseCandidate, VersionSuffix, default preview, IsReleased stable) into a single unconditional 0.0.1-preview.260417.2. On this preview-only branch every package ships with the same pre-release stamp regardless of per-project flags.
- Restore the global IsPackable=true default (offsetting the repo-wide IsPackable=false in Directory.Build.props). Projects that opt out (Mem0, Declarative) already set IsPackable=false AFTER importing this file so they remain non-packable.
- Remove the IsReleased-gated EnablePackageValidation line. Package validation does not apply to a 0.0.1 preview.
csproj reverts (Abstractions, Agents.AI, Workflows, Workflows.Generators, Foundry):
- Revert the IsPackable=true opt-in block introduced in #5336 (now redundant since the props default is true again).
- Restore IsReleased=true to its pre-PR value. The setting is now a no-op because the props no longer branches on it.
---
dotnet/nuget/nuget-package.props | 14 +++++---------
.../Microsoft.Agents.AI.Abstractions.csproj | 7 +------
.../Microsoft.Agents.AI.Foundry.csproj | 7 +------
...Microsoft.Agents.AI.Workflows.Generators.csproj | 7 +------
.../Microsoft.Agents.AI.Workflows.csproj | 7 +------
.../Microsoft.Agents.AI/Microsoft.Agents.AI.csproj | 7 +------
6 files changed, 10 insertions(+), 39 deletions(-)
diff --git a/dotnet/nuget/nuget-package.props b/dotnet/nuget/nuget-package.props
index d619ac6c9f..55e676470c 100644
--- a/dotnet/nuget/nuget-package.props
+++ b/dotnet/nuget/nuget-package.props
@@ -3,21 +3,17 @@
0.0.1
1
- $(VersionPrefix)-rc$(RCNumber)
- $(VersionPrefix)-$(VersionSuffix).260417.1
- $(VersionPrefix)-preview.260417.1
- $(VersionPrefix)
+
+ $(VersionPrefix)-preview.260417.2
0.0.1
Debug;Release;Publish
-
-
-
+
+ true
1.0.0
-
- true
+
$(NoWarn);CP0003
diff --git a/dotnet/src/Microsoft.Agents.AI.Abstractions/Microsoft.Agents.AI.Abstractions.csproj b/dotnet/src/Microsoft.Agents.AI.Abstractions/Microsoft.Agents.AI.Abstractions.csproj
index 4bf1eb9d54..9f5668c812 100644
--- a/dotnet/src/Microsoft.Agents.AI.Abstractions/Microsoft.Agents.AI.Abstractions.csproj
+++ b/dotnet/src/Microsoft.Agents.AI.Abstractions/Microsoft.Agents.AI.Abstractions.csproj
@@ -3,7 +3,7 @@
Microsoft.Agents.AI
$(NoWarn);MEAI001
- false
+ true
@@ -20,11 +20,6 @@
-
-
- true
-
-
Microsoft Agent Framework Abstractions
diff --git a/dotnet/src/Microsoft.Agents.AI.Foundry/Microsoft.Agents.AI.Foundry.csproj b/dotnet/src/Microsoft.Agents.AI.Foundry/Microsoft.Agents.AI.Foundry.csproj
index 67c069cb5b..e3c1773941 100644
--- a/dotnet/src/Microsoft.Agents.AI.Foundry/Microsoft.Agents.AI.Foundry.csproj
+++ b/dotnet/src/Microsoft.Agents.AI.Foundry/Microsoft.Agents.AI.Foundry.csproj
@@ -1,7 +1,7 @@
- false
+ true
true
$(NoWarn);OPENAI001;MEAI001;NU1903
false
@@ -9,11 +9,6 @@
-
-
- true
-
-
diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Generators/Microsoft.Agents.AI.Workflows.Generators.csproj b/dotnet/src/Microsoft.Agents.AI.Workflows.Generators/Microsoft.Agents.AI.Workflows.Generators.csproj
index fbaa90cb2c..765de06c7b 100644
--- a/dotnet/src/Microsoft.Agents.AI.Workflows.Generators/Microsoft.Agents.AI.Workflows.Generators.csproj
+++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Generators/Microsoft.Agents.AI.Workflows.Generators.csproj
@@ -29,16 +29,11 @@
- false
+ true
-
-
- true
-
-
Microsoft Agent Framework Workflows Source Generators
diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/Microsoft.Agents.AI.Workflows.csproj b/dotnet/src/Microsoft.Agents.AI.Workflows/Microsoft.Agents.AI.Workflows.csproj
index 51119bbc63..032314c657 100644
--- a/dotnet/src/Microsoft.Agents.AI.Workflows/Microsoft.Agents.AI.Workflows.csproj
+++ b/dotnet/src/Microsoft.Agents.AI.Workflows/Microsoft.Agents.AI.Workflows.csproj
@@ -1,7 +1,7 @@
- false
+ true
$(NoWarn);MEAI001
@@ -14,11 +14,6 @@
-
-
- true
-
-
Microsoft Agent Framework Workflows
diff --git a/dotnet/src/Microsoft.Agents.AI/Microsoft.Agents.AI.csproj b/dotnet/src/Microsoft.Agents.AI/Microsoft.Agents.AI.csproj
index 428385cadf..10e92850d5 100644
--- a/dotnet/src/Microsoft.Agents.AI/Microsoft.Agents.AI.csproj
+++ b/dotnet/src/Microsoft.Agents.AI/Microsoft.Agents.AI.csproj
@@ -1,7 +1,7 @@
- false
+ true
$(NoWarn);MEAI001;MAAI001
@@ -17,11 +17,6 @@
-
-
- true
-
-