Skip to content

Commit

Permalink
.Net: [Feature branch] Added release candidate suffix for production …
Browse files Browse the repository at this point in the history
…packages (#7623)

### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Preparation work for future release.
  • Loading branch information
dmytrostruk committed Aug 6, 2024
1 parent 65bfdf8 commit d492d84
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 4 deletions.
7 changes: 6 additions & 1 deletion dotnet/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<!-- In "main" branch this flag should be always "false". -->
<IsReleaseCandidate>true</IsReleaseCandidate>
</PropertyGroup>

<PropertyGroup>
<!-- Disable NuGet packaging by default. Projects can override. -->
<IsPackable>disable</IsPackable>
Expand All @@ -30,4 +35,4 @@
<_Parameter1>false</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>
</Project>
4 changes: 2 additions & 2 deletions dotnet/nuget/nuget-package.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project>
<PropertyGroup>
<!-- Central version prefix - applies to all nuget packages. -->
<VersionPrefix>1.16.2</VersionPrefix>

<VersionPrefix>1.18.0</VersionPrefix>
<PackageVersion Condition="'$(VersionSuffix)' != ''">$(VersionPrefix)-$(VersionSuffix)</PackageVersion>
<PackageVersion Condition="'$(VersionSuffix)' == ''">$(VersionPrefix)</PackageVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<EnablePackageValidation>false</EnablePackageValidation>
</PropertyGroup>

<PropertyGroup Condition="'$(IsReleaseCandidate)' == 'true'">
<VersionSuffix>rc</VersionSuffix>
</PropertyGroup>

<!-- IMPORT NUGET PACKAGE SHARED PROPERTIES -->
<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<EnablePackageValidation>true</EnablePackageValidation>
</PropertyGroup>

<PropertyGroup Condition="'$(IsReleaseCandidate)' == 'true'">
<VersionSuffix>rc</VersionSuffix>
</PropertyGroup>

<!-- IMPORT NUGET PACKAGE SHARED PROPERTIES -->
<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />
<Import Project="$(RepoRoot)/dotnet/src/InternalUtilities/src/InternalUtilities.props" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<EnablePackageValidation>true</EnablePackageValidation>
</PropertyGroup>

<PropertyGroup Condition="'$(IsReleaseCandidate)' == 'true'">
<VersionSuffix>rc</VersionSuffix>
</PropertyGroup>

<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />
<Import Project="$(RepoRoot)/dotnet/src/InternalUtilities/src/InternalUtilities.props" />

Expand Down
4 changes: 4 additions & 0 deletions dotnet/src/Functions/Functions.Yaml/Functions.Yaml.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<EnablePackageValidation>true</EnablePackageValidation>
</PropertyGroup>

<PropertyGroup Condition="'$(IsReleaseCandidate)' == 'true'">
<VersionSuffix>rc</VersionSuffix>
</PropertyGroup>

<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<EnablePackageValidation>true</EnablePackageValidation>
</PropertyGroup>

<PropertyGroup Condition="'$(IsReleaseCandidate)' == 'true'">
<VersionSuffix>rc</VersionSuffix>
</PropertyGroup>

<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />
<Import Project="$(RepoRoot)/dotnet/src/InternalUtilities/src/InternalUtilities.props" />

Expand Down
4 changes: 4 additions & 0 deletions dotnet/src/SemanticKernel.Core/SemanticKernel.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<EnablePackageValidation>true</EnablePackageValidation>
</PropertyGroup>

<PropertyGroup Condition="'$(IsReleaseCandidate)' == 'true'">
<VersionSuffix>rc</VersionSuffix>
</PropertyGroup>

<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<RootNamespace>$(AssemblyName)</RootNamespace>
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="'$(IsReleaseCandidate)' == 'true'">
<VersionSuffix>rc</VersionSuffix>
</PropertyGroup>
<Import Project="$(RepoRoot)/dotnet/nuget/nuget-package.props" />
<PropertyGroup>
<!-- NuGet Package Settings -->
Expand All @@ -15,4 +18,4 @@ Empowers app owners to integrate cutting-edge LLM technology quickly and easily
<ProjectReference Include="..\SemanticKernel.Core\SemanticKernel.Core.csproj" PrivateAssets="none" />
<ProjectReference Include="..\Connectors\Connectors.AzureOpenAI\Connectors.AzureOpenAI.csproj" />
</ItemGroup>
</Project>
</Project>

0 comments on commit d492d84

Please sign in to comment.