Closed philipp-naused closed 1 week ago
Argument name should be adjusted in this repository.
This doesn't just affect the template repo: https://github.com/search?q=org%3AAvaloniaUI+%22Control%3F+Build%28object%3F+data%29%22&type=code
@philipp-naused it's only important here, as templates is what developers will get when they create a new project. We can eventually update naming in other samples, sure.
And we definitely can't change name of the ITemplate.Build
argument, as it will cause way more such warnings, just in other direction.
Describe the bug
The template (as well as all code examples I can find) for the default ViewLocator implements
ITemplate.Build
with this signature:but the interface has a different parameter name:
This causes warning CA1725: Parameter names should match base declaration
Depending on your code analysis settings, this can cause the build to fail.
To Reproduce
avalonia.mvvm
template.The build fails with:
Avalonia Templates version
11.0.10.1
Avalonia version
11.1.3
Additional context
No response