Error OCTONUGET: '330' is not a valid version string


i try use Octopus pluing on TeamCity, its working . But when i put in
OctoPack package version: %build.number%

i got this erro :
error OCTONUGET: ‘330’ is not a valid version string.
error OCTONUGET: Parameter name: version
error OCT-1805672349: There was an error calling NuGet. Please see the output above for more details. Command line: ‘C:\TeamCity\buildAgent\work\625535f271bfd1b3\packages\OctoPack.2.0.20\targets\NuGet.exe’ pack “C:\TeamCity\buildAgent\work\625535f271bfd1b3\WERP.Tests.InfraEstrutura\obj\octopacking\WERP.Tests.InfraEstrutura.nuspec” -NoPackageAnalysis -BasePath “C:\TeamCity\buildAgent\work\625535f271bfd1b3\WERP.Tests.InfraEstrutura\obj\octopacking” -OutputDirectory “C:\TeamCity\buildAgent\work\625535f271bfd1b3\WERP.Tests.InfraEstrutura\obj\octopacked” -Version 330
error OCT-


Your TeamCity build is probably a single number (e.g., 330). But NuGet packages need multiple parts to the version number. E.g., “YourApp.330.nupkg” is not valid, but “YourApp.1.0.330.nupkg” is.

Instead of passing %build.number%, try passing something like 1.0.%build.number%.