<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>SyMenu - Troubleshooting &amp; Bug Reports - Cannot start from command line after 8.x update - Messages</title>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=882</link>
<description>SyMenu - Troubleshooting &amp; Bug Reports - Cannot start from command line after 8.x update - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<pubDate>Sat, 23 Dec 2023 11:54:05 GMT</pubDate>
<lastBuildDate>Sat, 23 Dec 2023 11:54:05 GMT</lastBuildDate>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=882</link>
<title>Message from Gianluca</title>
<description><![CDATA[<b>JackoBongo</b> wrote:<br/><blockquote>What I meant by "weird" was more the fact that dependency paths are  based from the active directory rather than the executable file  location. But maybe this is intended with .NET 8.0</blockquote><br/>Indeed  the suggested scenario for a portable program in .NET 8.0 is different  because you should put the dependencies lib in the program root.  Paint.NET for example is based on .NET 7.0 and works exactly the way  Microsoft suggests. Try to open the Paint.NET main folder and you  realize why I don't like the standard suggested way (dozens of meaningless files mixed with the main executable file scares anyone in my opinion).<br/>So I  hacked the SyMenu.runtimeconfig.json to redirect the libraries probing  to the Lib folder. I think it's this redirection that creates a problem  on the probing in system folders but, sincerely, who cares? You have  all your dependencies included with every new SyMenu release and the  update program cleans up every remains. IMHO it's a good option.<br/><br/><br/><b>JackoBongo</b> wrote:<br/><blockquote>I assume it's not possible to generate a self contained binary where all libs are included right?</blockquote><br/>Yes, theoretically it's possible and it's an option I'll probably investigate in the future.]]></description>
<pubDate>Sat, 23 Dec 2023 11:54:05 GMT</pubDate>
</item>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=882</link>
<title>Message from JackoBongo</title>
<description><![CDATA[<b>Gianluca</b> wrote:<br/><blockquote>Taking along the needed libraries it's not weird, think that it's a behaviour Java has allowed for decades.</blockquote><br/><br/>What I meant by "weird" was more the fact that dependencies paths are based from the active directory rather than the executable file location. But maybe this is intended with .NET 8.0<br/>I assume it's not possible to generate a self contained binary where all libs are included right?<br/><br/><i>edited by JackoBongo on 16/12/2023</i>]]></description>
<pubDate>Sat, 16 Dec 2023 13:14:26 GMT</pubDate>
</item>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=882</link>
<title>Message from Gianluca</title>
<description><![CDATA[Taking along the needed libraries it's not weird, think that it's a behaviour Java has allowed for decades.<br/>Today it's possible for the new .NET Core framework too when you want to grant the best portability. They call this behaviour "self-contained deployment mode" and finally freed all the .NET programs (web or desktop) from the dependencies nightmare. When a program takes its own dependency along you are 100% sure it works on any machine. It's paradise!<br/><br/>Anyway, it's possible to allow flexible probing but I would have left all the libraries SyMenu needs on the root folder and I don't want that because this way you won't find the executable anymore.<br/>I don't know if it's possible to redirect the local libraries to a custom folder (Lib) as I'm doing now and at the same time grant a normal probing on the local system but I will study this scenario too.]]></description>
<pubDate>Mon, 11 Dec 2023 09:13:21 GMT</pubDate>
</item>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=882</link>
<title>Message from JackoBongo</title>
<description><![CDATA[Isn't it possible to specify multiple search paths for the libs? Or maybe have an entry-point executable that actually starts the "real" exe file after correctly setting the context.<br/>Just  saying because the current behavior feels kinda weird to me.<br/>Anyway, thanks for the great job Gianluca <img src="images/smilies/smile.gif" border=0 alt="smile" />]]></description>
<pubDate>Mon, 11 Dec 2023 08:07:04 GMT</pubDate>
</item>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=882</link>
<title>Message from Gianluca</title>
<description><![CDATA[<b>JackoBongo</b> wrote:<br/><blockquote>However I've tried installing the "Microsoft .NET  Runtime 8.0" and ".NET Windows Desktop Runtime 8.0" packages through  winget and SysMenu wasn't starting the working directory wasn't  set.</blockquote><br/>Ok, so I'm learning a new thing here: the redirection I  did to probe the Lib folder, prevents the runtime to be executed from  its  normal installation path. Thanks for this info even if, since I will  take the framework with every new SyMenu version, it'll be useless for SyMenu.]]></description>
<pubDate>Fri, 08 Dec 2023 18:05:14 GMT</pubDate>
</item>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=882</link>
<title>Message from JackoBongo</title>
<description><![CDATA[Ok, thanks for the fast feedback.<br/>It works after changing the active directory.<br/>However I've tried installing the "Microsoft .NET Runtime 8.0" and ".NET Windows Desktop Runtime 8.0" packages through winget and SysMenu wasn't starting if the working directory wasn't set.<br/><br/><i>edited by JackoBongo on 11/12/2023</i>]]></description>
<pubDate>Fri, 08 Dec 2023 13:47:45 GMT</pubDate>
</item>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=882</link>
<title>Message from Gianluca</title>
<description><![CDATA[Hi JackoBongo, <br/><br/>welcome to the community.<br/><br/>SyMenu  has become fully portable from the 8.00 version. It means that it takes  with itself all the libraries it needs to execute (you can find them  inside the folder Lib).<br/>So if you execute it in a way similar to that:<br/><b>C:\&gt;D:\Symenu\SyMenu.exe </b><br/>you'll get an error (see it in the Windows event viewer) because your SyMenu.exe is searching for the dependencies in <br/><b>C:\Lib</b><br/><br/>You have two solutions here:<br/><br/>1) Change your script defining the right working dir (SyMenu main folder).<br/><br/>2) Change your execution folder. To be clear this is an example using the Windows shell:<br/><b>C:\&gt;CD /d D:\SyMenu</b><br/><b>D:\SyMenu&gt;SyMenu.exe <br/></b><b><br/></b>Indeed you should solve the problem with two further solutions but I don't like them very much<b><br/></b><br/>3)  Install .NET Core 8 in your system so that it's available everywhere  for everyone. But you will have the same problem every time I change the  framework in the future.<br/>4) You can add the SyMenu\Lib in your environment variable Path but you cannot move SyMenu anymore without breaking the path for Lib again<b><br/></b><br/><br/><i>edited by Gianluca on 07/12/2023</i>]]></description>
<pubDate>Thu, 07 Dec 2023 15:09:29 GMT</pubDate>
</item>
<item>
<link>https://www.ugmfree.it/forum/messages.aspx?TopicID=882</link>
<title>Message from JackoBongo</title>
<description><![CDATA[Hi,<br/>I used to start SyMenu from a script (alongside other apps) and noticed since the 8.x it no longer works.<br/>I've tried launching the app either from Powershell console on the standard prompt but neither of this method works. However if I double-click SyMenu.exe ... the application starts.<br/>I've tried to update manually as described in a <a href="https://www.ugmfree.it/forum/messages.aspx?TopicID=881" target="_blank" rel="nofollow">previous thread</a> but this doesn't work either.<br/>Am I the only one to encounter this problem?]]></description>
<pubDate>Thu, 07 Dec 2023 14:41:53 GMT</pubDate>
</item>
</channel>
</rss>
