-
Notifications
You must be signed in to change notification settings - Fork 199
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
Blazor wasm: RZ9991 build error when updating from 7.0.203 to 7.0.302 sdk #8725
Comments
Probably related #8718 |
I have the same issue (a component that's derived from a base component and the property to This is blocking for us. I have to pin the sdk version to 7.0.203 to be able to build. It's very strange behavior to say the least... the compiler is complaining, but the error is not visible in the code (with the red squiggle) like it normally is. When I use <MyComponent @bind-Value="_value" /> I get:
And when I remove the <MyComponent /> I get another error:
I have tried adding a @using statement, or fully qualifying the namespace, but nothing helps. |
same issue. it work fine use 7.0.203 |
Sorry you're hitting this. Seems like a regression fixed by #8614 but not yet in .NET 7. To confirm, try if your code works with .NET 8 SDK preview. |
I found a way around it, by reading some of the other issues that have been posted about this. I simply had to derive the "most" base component in the hierarchy chain from |
Does not work for me. |
I am having this same issue. Addng ComponentBase to the base class (partial) in a razor.cs file didnt help |
Try splitting your BasePage into two physical files (.cs and .razor). BasePage.cs should look like this:
This worked for me. |
@sam-wheat I tried that and it didn't work. Thanks. |
@bobwinners you should stick with previous SDK using {
"sdk": {
"version": "7.0.203"
}
} More info: https://learn.microsoft.com/en-us/dotnet/core/tools/global-json |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. Please see our Issue Management Policies for more information. |
Closing as duplicate of #8718. |
Is there an existing issue for this?
Describe the bug
When using a control
WrappedSwitch
that extends another controlWrappedCheckbox
which then extendsInputBase<bool>
using the WrappedSwitch with@bind-Value="SomeBool"
will compile ok in 7.0.203 but in 7.0.302 results in:Expected Behavior
The code should compile in both sdk vesions
Steps To Reproduce
Create a new blazor wasm project from a template.
In the shared folder create the following controls:
WrappedCheckbox
WrappedSwitch
Then replace the Index page with:
Compile using both sdks and 203 will succeed while 302 fails
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: