Skip to content
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

Closed
chhinsras opened this issue Nov 5, 2021 · 13 comments
Closed

VS Code Tooling Issue #38103

chhinsras opened this issue Nov 5, 2021 · 13 comments
Labels
area-web-frameworks *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved

Comments

@chhinsras
Copy link

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]

@davidfowl
Copy link
Member

Visual Studio for Mac doesn't support C# 10 as yet.

@chhinsras
Copy link
Author

@davidfowl VS Code for Mac ? I havn't tried Visual Studio for Mac.

1 similar comment
@chhinsras
Copy link
Author

@davidfowl VS Code for Mac ? I havn't tried Visual Studio for Mac.

@davidfowl
Copy link
Member

Oh that works if you upgrade omnisharp and am have upgraded to .net 6 rc2

@mkArtakMSFT mkArtakMSFT added the area-web-frameworks *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels label Nov 5, 2021
@chhinsras
Copy link
Author

@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

@chhinsras
Copy link
Author

@davidfowl oh right. its running Server only, how can i run both with the same port? this is hosted asp.net core blazor. Weird!

@captainsafia
Copy link
Member

@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.

@rafikiassumani-msft rafikiassumani-msft added the Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. label Nov 16, 2021
@ghost
Copy link

ghost commented Nov 16, 2021

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.

@chhinsras
Copy link
Author

@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.

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.

@ghost ghost added Needs: Attention 👋 This issue needs the attention of a contributor, typically because the OP has provided an update. and removed Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. labels Nov 17, 2021
@captainsafia
Copy link
Member

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 launchBrowser is enabled in your launchSettings.

@captainsafia captainsafia added ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. and removed Needs: Attention 👋 This issue needs the attention of a contributor, typically because the OP has provided an update. labels Nov 18, 2021
@ghost ghost added the Status: Resolved label Nov 18, 2021
@ghost
Copy link

ghost commented Nov 20, 2021

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.

@ghost ghost closed this as completed Nov 20, 2021
@chhinsras
Copy link
Author

@captainsafia i am still facing same issue with hot reload not working

@captainsafia
Copy link
Member

@chhinsras Can you file a new issue specifically about your Blazor WASM + hot reload problem?

@ghost ghost locked as resolved and limited conversation to collaborators Dec 22, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-web-frameworks *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved
Projects
None yet
Development

No branches or pull requests

5 participants