-
Notifications
You must be signed in to change notification settings - Fork 10k
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
VS Code Tooling Issue #38103
Comments
Visual Studio for Mac doesn't support C# 10 as yet. |
@davidfowl VS Code for Mac ? I havn't tried Visual Studio for Mac. |
1 similar comment
@davidfowl VS Code for Mac ? I havn't tried Visual Studio for Mac. |
Oh that works if you upgrade omnisharp and am have upgraded to .net 6 rc2 |
@davidfowl right. the error has gone. however, i run dotnet watch run --project Server. it works and i see the port. but when i try opening the url (https:localhost:5001). it shows nothing |
@davidfowl oh right. its running Server only, how can i run both with the same port? this is hosted asp.net core blazor. Weird! |
Can you clarify what you are trying to achieve? When you're running a hosted Blazor app, you only want to run the server-side which will run your API server and host your Blazor client as well. You don't need to run the Client and Server using separate commands. |
Hi @chhinsras. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
the problem is when i try to run blazor wasm hosted, running server project. the hot reload is only watching the change inside server project, not the blazor client project. |
Hot reload for hosted apps is supported although it requires certain launch parameters. You can verify that you are not running into a variant of #35393 and confirm that |
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes. See our Issue Management Policies for more information. |
@captainsafia i am still facing same issue with hot reload not working |
@chhinsras Can you file a new issue specifically about your Blazor WASM + hot reload problem? |
This is the code
options.SwaggerEndpoint("/swagger/v1/swagger.json", typeof(Program).Assembly.GetName().Name);
When I try to run on Visual Studio. It works fine. But when I try to run on Visual Code on Mac.
/Users/chhinsras/Desktop/Coding.nosync/SchoolManager/Server/Core/Extensions/ApplicationBuilderExtensions.cs(31,76): error CS0246: The type or namespace name 'Program' could not be found (are you missing a using directive or an assembly reference?) [/Users/chhinsras/Desktop/Coding.nosync/SchoolManager/Server/Server.csproj]
The text was updated successfully, but these errors were encountered: