File tree Expand file tree Collapse file tree 7 files changed +36
-6
lines changed
dotnet/src/extensions/gam/src Expand file tree Collapse file tree 7 files changed +36
-6
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,36 @@ jobs:
122122 - name : Pack
123123 run : dotnet pack $Env:SolutionFile --no-restore --no-build --configuration $Env:Configuration /p:Version=$Env:NUGET_PACKAGE_VERSION
124124
125+ - name : Validate package names
126+ run : |
127+ Write-Output "Validating package names for NuGet.org publication..."
128+ Write-Output "All packages must start with 'GeneXus.' prefix as this namespace is reserved for GeneXus on NuGet.org"
129+ Write-Output ""
130+
131+ $invalidPackages = @()
132+ Get-ChildItem ".\dotnet\*.nupkg" -Recurse | ForEach-Object {
133+ $packageName = [System.IO.Path]::GetFileNameWithoutExtension($_.Name)
134+ # Remove version suffix to get the actual package name
135+ $actualPackageName = $packageName -replace '\.\d+\.\d+\.\d+.*$', ''
136+
137+ if (-not $actualPackageName.StartsWith("GeneXus.")) {
138+ $invalidPackages += $_.Name
139+ Write-Warning "Package '$($_.Name)' does not start with 'GeneXus.'"
140+ } else {
141+ Write-Output "✓ Package '$($_.Name)' correctly starts with 'GeneXus.'"
142+ }
143+ }
144+
145+ if ($invalidPackages.Count -gt 0) {
146+ Write-Output ""
147+ Write-Error "Validation failed: The following packages do not start with 'GeneXus.': $($invalidPackages -join ', ')"
148+ Write-Error "This validation is required for publishing to NuGet.org where the 'GeneXus' prefix is reserved."
149+ exit 1
150+ }
151+
152+ Write-Output ""
153+ Write-Output "✅ All packages correctly start with 'GeneXus.' prefix - ready for NuGet.org publication"
154+
125155 - name : Sign packages
126156 if : github.repository_owner == 'GeneXusLabs' && steps.buildVariables.outputs.SHOULD_DEPLOY == 'true'
127157 env :
Original file line number Diff line number Diff line change 55 <AssemblyName >GamSaml20NetImpl</AssemblyName >
66 <Version >17.4.0</Version >
77 <NoWarn >CA1031, CA1801, SYSLIB0027</NoWarn >
8- <PackageId >Gam .Saml20.Net</PackageId >
8+ <PackageId >GeneXus.AccessManager .Saml20.Net</PackageId >
99 </PropertyGroup >
1010 <PropertyGroup >
1111 <DefineConstants >NETCORE</DefineConstants >
Original file line number Diff line number Diff line change 55 <AssemblyName >GamTotpNetImpl</AssemblyName >
66 <Version >17.4.0</Version >
77 <NoWarn >CA1031, CA1801, SYSLIB0027</NoWarn >
8- <PackageId >Gam .Totp.Net</PackageId >
8+ <PackageId >GeneXus.AccessManager .Totp.Net</PackageId >
99 </PropertyGroup >
1010
1111 <PropertyGroup >
Original file line number Diff line number Diff line change 55 <AssemblyName >GamUtilsNetImpl</AssemblyName >
66 <Version >17.4.0</Version >
77 <NoWarn >CA1031, CA1801, SYSLIB0027</NoWarn >
8- <PackageId >Gam .Utils.Net</PackageId >
8+ <PackageId >GeneXus.AccessManager .Utils.Net</PackageId >
99 </PropertyGroup >
1010
1111 <PropertyGroup >
Original file line number Diff line number Diff line change 44 <RootNamespace >GamSaml20</RootNamespace >
55 <AssemblyName >GamSaml20Impl</AssemblyName >
66 <NoWarn >CA1031, CA1801, CA1724</NoWarn >
7- <PackageId >Gam .Saml20</PackageId >
7+ <PackageId >GeneXus.AccessManager .Saml20</PackageId >
88 </PropertyGroup >
99 <ItemGroup >
1010 <PackageReference Include =" BouncyCastle.Cryptography" Version =" 2.4.0" />
Original file line number Diff line number Diff line change 33 <TargetFramework >net462</TargetFramework >
44 <AssemblyName >GamTotpImpl</AssemblyName >
55 <NoWarn >CA1031, CA1801</NoWarn >
6- <PackageId >Gam .Totp</PackageId >
6+ <PackageId >GeneXus.AccessManager .Totp</PackageId >
77 </PropertyGroup >
88 <PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Debug|AnyCPU'" >
99 <Optimize >True</Optimize >
Original file line number Diff line number Diff line change 33 <TargetFramework >net462</TargetFramework >
44 <AssemblyName >GamUtilsImpl</AssemblyName >
55 <NoWarn >CA1031, CA1801</NoWarn >
6- <PackageId >Gam .Utils</PackageId >
6+ <PackageId >GeneXus.AccessManager .Utils</PackageId >
77 </PropertyGroup >
88 <PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Debug|AnyCPU'" >
99 <Optimize >True</Optimize >
You can’t perform that action at this time.
0 commit comments