Posts: 3
Threads: 2
Joined: Jan 2024
How do i set the version for the generated exe file? If I click on the version button, I got the instruction to do it in the file. If I insert [assembly: AssemblyVersion("1.1.0.0")], I will get a compile error that the version definition is double defined.
The second thing is, that I use a toolbar. In the compiled exe file, the toolbar settings file will be always created under the user/documents/LibreAutomate folder. I need to change that to the user/AppData/Roaming/AppName folder. How can I do that?
Thank you!
Posts: 12,090
Threads: 142
Joined: Dec 2002
1. I see this version error when using menu
Run > Publish. This bug will be fixed in next LA version. No error when creating exe without Publish.
2. Currently cannot be changed. In next version will add parameter
settingsFile. Example:
var t = new toolbar("jdhgfeugfhghdbvj", settingsFile: @"C:\Test\aToolbar1.json");
----
Next LA should be released this month.
Posts: 3
Threads: 2
Joined: Jan 2024
Hello,
the bug above, that I cannot add the [assembly: AssemblyVersion("1.1.0.0")], because I will get a compile error that the version definition is double defined, still exists. Most of the Assembly... attributes, generated by the version button in the properties dialog, cannot be used.
Can you fix that please?
Thank you!
Posts: 12,090
Threads: 142
Joined: Dec 2002
12-20-2024, 02:17 PM
(This post was last modified: 12-20-2024, 02:18 PM by Gintaras.)
Add class file named "AssemblyInfo.cs" to the project folder. Move the attribute there. Else the dotnet compiler auto-generates and compiles a standard "AssemblyInfo.cs" file that contains [assembly: AssemblyVersion("...")]. In several previous LibreAutomate versions this feature was disabled completely, but the last version disables it only if "AssemblyInfo.cs" already exists.
Posts: 12,090
Threads: 142
Joined: Dec 2002