-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@RenderBody not working on Linux #23
Comments
As I said, I have zero knowledge of Linux, so I can't help in this.
The only advice I can give you, is to review the setup in the Main subroutine the program module, to make sure that it is OK for Linux.
…________________________________
From: mmkathurima ***@***.***>
Sent: Wednesday, January 15, 2025 9:11 PM
To: VBAndCs/Vazor ***@***.***>
Cc: Mohammad Hamdy Ghanem ***@***.***>; Mention ***@***.***>
Subject: [VBAndCs/Vazor] @RenderBody not working on Linux (Issue #23)
This first picture of a small demo application is running on a Windows server
image.png (view on web)<https://github.com/user-attachments/assets/52a67ea0-cce0-4488-a3aa-1740e2630223>
This second picture is the same application but on Linux server
image.png (view on web)<https://github.com/user-attachments/assets/76d0781e-d64d-46a6-af4f-565c7a255448>
As can be seen, the content of the @RenderBody, in this case the contents of Index.vbxml.vb is not rendered on Linux.
@VBAndCs<https://github.com/VBAndCs> kindly assist on this.
—
Reply to this email directly, view it on GitHub<#23>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALQ5MVWFAN33X6C2GPYBQ4D2K3FHZAVCNFSM6AAAAABVIET4Q2VHI2DSMVQWIX3LMV43ASLTON2WKOZSG44TAOJQHEYDGNY>.
You are receiving this because you were mentioned.
|
@VBAndCs I have looked into the issue and I believe it lies in the ZML module, specifically the Public Const Ln = vbCrLf I suggest changing it to the below, for the sake of compatibility across operating systems: Public ReadOnly Ln As String = Environment.NewLine I have not raised a pull request as I do not know how to. |
That's a good find. You can raise a PR by editing the file at this repo, which forks the repo to your account. You'll raise the PR from there when you save the changes. |
Nice catch. I still has issues to log in to this account, but I will fix the issue as you suggested and upload it using the git console.
Thanks.
…________________________________
From: mmkathurima ***@***.***>
Sent: Sunday, January 19, 2025 6:28 PM
To: VBAndCs/Vazor ***@***.***>
Cc: Mohammad Hamdy Ghanem ***@***.***>; Mention ***@***.***>
Subject: Re: [VBAndCs/Vazor] @RenderBody not working on Linux (Issue #23)
@VBAndCs<https://github.com/VBAndCs> I have looked into the issue and I believe it lies in the ZML module, specifically the ZMLExtentions.vb file at the line:
Public Const Ln = vbCrLf
I suggest changing it to the below, for the sake of compatibility across operating systems:
Public ReadOnly Ln As String = Environment.NewLine
I have not raised a pull request as I do not know how to.
—
Reply to this email directly, view it on GitHub<#23 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALQ5MVSASMHFYYR3LBNVT6D2LPVEVAVCNFSM6AAAAABVIET4Q2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBQHE3TCNRQGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hm, I thought you fixed that. |
Thank you, and I'd love to, but I'd much rather see you learn how to do a PR ;-) |
I've updated ZMl and Vazor packages to fix this issue.
https://www.nuget.org/packages/ZML/1.1.3
https://www.nuget.org/packages/Vazor/2.1.0
I haven't updated the Vazor extension yet, so you have to update thee packages in your new projects manually (same as existing projects of course).
I wanted to update Vazor to .NET 9, but it gave me some errors, and I don't have time right now. I will look into it later and update the VS extension.
@InteXX: If you alteady updated your copy of Vazor, I'd appreciate any advices here.
[https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free.www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
|
I haven't gone past The sample project I worked up is here. What problems did you run into when moving to |
This first picture of a small demo application is running on a Windows server


This second picture is the same application but on Linux server
As can be seen, the content of the
@RenderBody
, in this case the contents ofIndex.vbxml.vb
is not rendered on Linux.@VBAndCs kindly assist on this.
The text was updated successfully, but these errors were encountered: