You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Experiencing difficulties in utilizing the Hai Build code generator for the .NET Web API project. Whenever the code generator makes changes to Program.cs and appsetting.json files, it inadvertently introduces a Byte Order Mark (BOM) or an invisible character at the beginning of line 1. This issue should be addressed to avoid build issues.
Steps to reproduce
Scenario 1:
On a .Net Web API project
Execute a tasks that will make changes on Program.cs. Like, make a CORS change to allow all origin/ specific client origin.
Code generator will execute the task. If you review the changes made to Program.cs file on .Net project, there will be a BOM or an invisible character will get added in line 1.
Here is the screenshot for the reference
5. With this character, the project build will not be successful.
6. Expected behaviour is to prevent this character from being added.
Scenario 2:
On a .Net Web API project
Execute a tasks that will make changes on appsettings.json. Like, add database connection string in appsettings.json file.
Code generator will execute the task. If you review the changes made to appsettings.json file on .Net project, there will be a BOM or an invisible character will get added in line 1 similar to previous screenshot attached.
With this character, the project build will not be successful.
Expected behaviour is to prevent this character from being added.
Relevant API REQUEST output
Operating System
macOS Sonoma
HAI Build Version
v3.1.1
Additional context
No response
The text was updated successfully, but these errors were encountered:
What happened?
Experiencing difficulties in utilizing the Hai Build code generator for the .NET Web API project. Whenever the code generator makes changes to Program.cs and appsetting.json files, it inadvertently introduces a Byte Order Mark (BOM) or an invisible character at the beginning of line 1. This issue should be addressed to avoid build issues.
Steps to reproduce
Scenario 1:
Scenario 2:
Relevant API REQUEST output
Operating System
macOS Sonoma
HAI Build Version
v3.1.1
Additional context
No response
The text was updated successfully, but these errors were encountered: