Open xperiandri opened 2 years ago
@jeromelaban can anyone point out where this happens and what tests to execute?
@xperiandri this would be in https://github.com/unoplatform/uno/tree/master/src/SourceGenerators/Uno.UI.SourceGenerators.netcore.Tests, as we're already doing some testing there for these scenarios.
Current behavior
The source generator does not always prepend all usings and namespace references with `global::``
Expected behavior
The source generator does always prepend all usings and namespace references with `global::``
How to reproduce it (as minimally and precisely as possible)
Create any class in the namespace
<SolutionName>.Windows
. After that, you won't be able to build the app because of the namespace issue in the code generated from App.xamlWorkaround
Do not use namespaces that contain
Windows
in their segmentWorks on UWP/WinUI
Yes
Environment
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
NuGet package version(s)
4.2.0-dev.100
Affected platforms
iOS, Android, WebAssembly, macOS, Skia (WPF), Skia (GTK on Linux/macOS/Windows), Skia (Tizen)
IDE
Visual Studio 2022
IDE version
17.1 preview
Relevant plugins
No response
Anything else we need to know?
No response