Posted 28 March 2024, 12:16 pm EST - Updated 28 March 2024, 12:16 pm EST
So, I just tried to update from AR v17 to v18 and got the error in the title… I’m not sure if it’s Mescius fault or Microsoft fault, but it’s so frustrating when something that should be as simple as an “update packages” click in Nuget becomes something impossible to debug.
The ONLY difference in my project is this:
Package References in .csproj went from this:
<ItemGroup>
<PackageReference Include="GrapeCity.ActiveReports">
<Version>17.2.2</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Chart.Win">
<Version>17.1.2</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Core.Export.Tiff.Section">
<Version>4.3.2</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Export.Excel">
<Version>17.2.2</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Export.Html">
<Version>17.2.2</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Export.Pdf">
<Version>17.2.2</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Export.Rdf">
<Version>17.2.2</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Export.Word">
<Version>17.2.2</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Export.Xml">
<Version>17.2.2</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Viewer.Win">
<Version>17.2.2</Version>
</PackageReference>
<PackageReference Include="Portable.BouncyCastle">
<Version>1.9.0</Version>
</PackageReference>
<PackageReference Include="System.Text.Json">
<Version>8.0.1</Version>
</PackageReference>
</ItemGroup>
To this:
<ItemGroup>
<PackageReference Include="GrapeCity.ActiveReports">
<Version>18.0.0</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Chart.Win">
<Version>18.0.1</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Core.Export.Tiff.Section">
<Version>4.4.0</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Export.Excel">
<Version>18.0.0</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Export.Html">
<Version>18.0.0</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Export.Pdf">
<Version>18.0.0</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Export.Rdf">
<Version>18.0.0</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Export.Word">
<Version>18.0.0</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Export.Xml">
<Version>18.0.0</Version>
</PackageReference>
<PackageReference Include="GrapeCity.ActiveReports.Viewer.Win">
<Version>18.0.0</Version>
</PackageReference>
<PackageReference Include="Portable.BouncyCastle">
<Version>1.9.0</Version>
</PackageReference>
<PackageReference Include="System.Text.Json">
<Version>8.0.3</Version>
</PackageReference>
</ItemGroup>
And BAM, my code won’t compile anymore with this licensing error.
My licenses.licx file looks like this:
GrapeCity.ActiveReports.SectionReport, GrapeCity.ActiveReports
GrapeCity.ActiveReports.PageReport, GrapeCity.ActiveReports
If I roll back to AR v17, there are no errors.
I’m using Visual Studio 17.8, targeting the project to .NET Framework 4.8
I have both a valid AR v17 and AR v18 license.