Page 1 of 1

NuGet packages do not publish correctly with ReadyToRun option in version 3.1.2.

Posted: 31 Jan 2022, 12:20
by Sumel007
Since updating Noesis to version 3.1.2 it seems that Noesis.App.dll, Noesis.App.Theme.dll and Noesis.GUI.dll are publishing as version 3.1.1 when we publish using ReadyToRun. If we deselect the ReadyToRun option we get 3.1.2 dlls in the publish folder.
Noesis.dll is at 3.1.2 whether or not ReadyToRun is selected.
I assume this is a problem with the NuGet packages, since the only change on our end was changing the version number.
We are using Noesis.App, Noesis.App.Theme and Noesis.GUI NuGet packages, all set to 3.1.2.

Re: NuGet packages do not publish correctly with ReadyToRun option in version 3.1.2.

Posted: 31 Jan 2022, 12:49
by sfernandez
The nugets have the correct information in their .nuspec so I don't think the problem is there.
I've found this comment googling about ReadyToRun option: https://github.com/dotnet/sdk/issues/38 ... -648749178
If I delete the obj\Release folder and rebuild I get the correct version DLL and the application runs. So it appears that dotnet publish PublishReadyToRun=true does not correctly update the obj\Release\netcoreapp3.1\linux-arm\R2R folder when a NuGet package DLL version changes.
Could you try to delete the publish output folder so older libraries are not used?

Re: NuGet packages do not publish correctly with ReadyToRun option in version 3.1.2.

Posted: 31 Jan 2022, 14:29
by Sumel007
Ah, you are right. It seems that deleting the obj/bin folders and the dlls in the publish folder has solved the issue. Thank you!

Re: NuGet packages do not publish correctly with ReadyToRun option in version 3.1.2.

Posted: 31 Jan 2022, 16:39
by sfernandez
Thanks for the update.