BoolBySigma / UpdateNetCorePackageInfo

SORRY THIS IS NO LONGER MAINTAINED
1 stars 0 forks source link

Package version is not in a valid version format. #5

Open michaelsogos opened 7 years ago

michaelsogos commented 7 years ago

The build fail because the task has this error: ##[error]Package version is not in a valid version format.

our package version variable are: Major: $(MajorVersion) Minor: $(MinorVersion) Build: $(Date:yyyy) Revision: $(Rev:r)

This is our csproj:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <ApplicationIcon />
    <OutputType>Library</OutputType>
    <StartupObject />
    <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
    <PackageId>IntLib.Core.EF</PackageId>
    <AssemblyVersion>1.0.0.0</AssemblyVersion>
    <FileVersion>1.0.0.0</FileVersion>
    <Authors />
    <Company>NextDev</Company>
    <Description>Internal Library for EntityFramework (project APOCALYPSE)</Description>
    <Version>1.0.0.0-alpha1</Version>
    <PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.0" />
  </ItemGroup>

</Project>
renklus commented 6 years ago

There seems to be an issue when using text in the version number. In your case the '-alpha'. This issue might be connected to #10.