Skip to content
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

[Nox.Ui] Create initial PR for generating razor files in Nox #773

Closed
anna-naumova25 opened this issue Sep 12, 2023 · 0 comments · Fixed by #930
Closed

[Nox.Ui] Create initial PR for generating razor files in Nox #773

anna-naumova25 opened this issue Sep 12, 2023 · 0 comments · Fixed by #930
Assignees

Comments

@anna-naumova25
Copy link
Collaborator

anna-naumova25 commented Sep 12, 2023

When trying to generate a file with razor extension from Nox was that current Roslyn API that is used for generation is only able to generate .cs files. Please see some issues and solutions I’ve found.
dotnet/roslyn#57608
https://github.com/dotnet/roslyn/blob/v3.8.0/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs#L63

Try one of the following:

  • Generate files using existing flow and then rename created .razor.cs files to .razor
  • use the fix from the link above and write files with File.WriteAllText(…)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant