-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Change default server for samples from IIS Express to Kestrel #27630
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
Comments
So the fix would be to remove IIS settings from |
Correct. |
I moved the IIS Express option to 2nd one for some project, but VS still shows the IIS Express option to run, seems like VS don't respect the order of profiles in |
@MCCshreyas Can you try renaming the |
@captainsafia I did that, but no effect on lunch selected option. See below screenshot. |
Hey, |
@MCCshreyas I just gave re-ordering the profiles a try and it seemed to work for me on a standalone Blazor WASM project. I moved the Kestrel server config before the IIS Express config and the selection in the run menu changed. Is there a chance you updated the launch settings on a project where you had already launched via IIS? |
Ohh I will give try with reordering as you suggested! |
@captainsafia yeah. It did work. But I needed to delete the |
Samples that use IIS Express in the repo don't work because they rely on a native component that hasn't been built. For example, MVC and Blazor samples don't work when run with IIS Express. There's no guidance we currently can give to users to get samples working with IIS Express.
Although we can invest time in addressing the build process for the samples so we ensure the native component is always built before the samples are run, a quick fix is to edit the
launchSettings.json
files for the samples so they all use Kestrel for the server.The text was updated successfully, but these errors were encountered: