Open elibroftw opened 1 year ago
This causes bugs when building related to "InitializeComponent"
Can you clarify more?
Can you also try adding csharp_style_namespace_declarations = file_scoped
to .editorconfig?
Yes I can clarify more, here is the output when building if a BlankPage is created. .editorconfig change had no impact.
To me it looks like these errors are unrelated to the use of file-scoped vs block-scoped namespaces.
So is this issue about two different issues?
For the file-scoped part, I guess Roslyn is supposed to respect that when creating new files. I would suggest first reporting to dotnet/roslyn
The implementation in Roslyn was done in https://github.com/dotnet/roslyn/pull/55504.
The .editorconfig change had no impact to how the blankpage looks like. And now I find that the compile errors are due to the use of the UWP page template instead of the other (why is the UWP before the SDK one then?). Still annoying having to change the block-scoped namespace to file-scoped namespace every time I create a new page.
The .editorconfig change had no impact to how the blankpage looks like.
That looks like a Roslyn bug. So I recommend first opening an issue there. As mentioned, the functionality was supposed to be implemented in https://github.com/dotnet/roslyn/pull/55504 (cc @davidwengier)
For the ordering of the item templates, I'm not sure. @dansiegel is this something we control?
What would you like to be added:
When create a new blank page using the uno template, it'll produce the following output:
This causes bugs when building related to "InitializeComponent" . What I want is
Why is this needed:
For which Platform:
Anything else we need to know?