Skip to content

.NET 8 RC1 Blazor build suddenly errors. Required parameter 'renderMode' of ... #51293

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

Closed
1 task done
augustevn opened this issue Oct 11, 2023 · 3 comments
Closed
1 task done
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. Status: Resolved

Comments

@augustevn
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Yes, I'm suddenly getting the error while building RC1 Blazor.
So, I upgraded to RC2 but Azure App Service is missing that SDK.

Conclusion, I can't go back and can't go forward.

Expected Behavior

Run Blazor either RC1 or RC2 correctly on Azure App Service.

Steps To Reproduce

Build a Blazor RC1 project.
Or publish an RC2 project to an Azure App Service.

Exceptions (if any)

There is no argument give that correspons to the required parameter 'renderMode' of 'RenderTreeBuilder.AddComponentRenderMode(int, IComponentRenderMode)'

.NET Version

8.0.0-rc.1.23421.29

Anything else?

Could be related to: #51170

@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Oct 11, 2023
@augustevn augustevn changed the title .NET 8 RC1 Blazor suddenly stopped building correctly. Required parameter 'renderMode' of ... .NET 8 RC1 Blazor build suddenly errors. Required parameter 'renderMode' of ... Oct 11, 2023
@mkArtakMSFT
Copy link
Contributor

Thanks for contacting us. We believe this is due to the fact that .NET 8 RC2 hasn't yet rolled out to Azure App service. As soon as it does you should not see this issue any more.

As for having installed RC2, you can ping the SDK version using a global.json file following this guidance and that will allow your original project (RC1) to work just fine.

@mkArtakMSFT mkArtakMSFT closed this as not planned Won't fix, can't repro, duplicate, stale Oct 11, 2023
@mkArtakMSFT mkArtakMSFT added the ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. label Oct 11, 2023
@ghost ghost added the Status: Resolved label Oct 11, 2023
@augustevn
Copy link
Author

augustevn commented Oct 11, 2023

Thanks for contacting us. We believe this is due to the fact that .NET 8 RC2 hasn't yet rolled out to Azure App service. As soon as it does you should not see this issue any more.

As for having installed RC2, you can ping the SDK version using a global.json file following this guidance and that will allow your original project (RC1) to work just fine.


Thanks for the suggestion, currently does not make a difference... As I mentioned, RC1 broke over night in the pipeline. I could still build it locally. That was before upgrading to RC2.
Now with global.json, using RC1, it doesn't build locally.

I'll keep you posted. Should I remove RC2 all together?


{
  "sdk": {
    "version": "8.0.100-rc.1.23463.5"
  }
}

❯ dotnet --version
8.0.100-rc.1.23463.5

❯ dotnet --list-sdks
6.0.408 [C:\Program Files\dotnet\sdk]
7.0.400 [C:\Program Files\dotnet\sdk]
8.0.100-rc.1.23463.5 [C:\Program Files\dotnet\sdk]
8.0.100-rc.2.23502.2 [C:\Program Files\dotnet\sdk]


        <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.1.23421.29" />
        <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0-rc.1.23421.29" PrivateAssets="all" />

@augustevn
Copy link
Author

augustevn commented Oct 11, 2023

Update:

Added global.json, removed RC2 from computer, some restarts, cleans and rebuilds. Now RC1 builds again. Thanks.
Updated GitHub workflows to use global.json.

@ghost ghost locked as resolved and limited conversation to collaborators Nov 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants