VS has a menu, shown tin the article, where you can pick either. Since Firer/Water won’t support IIS or IISExpress, I’ll forgot all of that and just look for the first profile with command “Project”. I also use the environment variable from there, now (in the past, the debug engine had it hardcoded to add ASPNETCORE_ENVIRONMEN=Development, and it’ll keep doing that when not present).
Marc,
It’s what I thought: the multiple applicationUrl entry is for the project.
I think that, when running in debug mode, you should use the URL in iisSettings:iisExpress:applicationUrl, as it’s the URL the application will listen to in this case.
Well, when I run the project from water, it works fine, and I could get the browser to run https://localhost:5001/.
But from VS it fails, and running following command in project folder “dotnet watch run” it gives folowing error
watch : Could not find a MSBuild project file in ‘C:\Users\Kifah Najem\source\repos\WebApplication10’. Specify which project to use with the --project option.
While when I compile, it generate a .DLL and not .EXE
That is probably expected. Elements projects do not use the dotnet project format, and you cannot compile them with dotnet.
You can compile them from the command line with EBuild (see Building Projects w/ EBuild), and then run the finished executable by simply launching the stub exe, or by running dotnet run on the .dll. (do a “Run without Debugging” in Water to see there exact command line for the latter).
When I run, a dos screen open and close, and there is no error.
I found that when I create new VS C# project, I can see run using IIS express
but when I create project using element I have only run, as if it is a consol application.
The log logged from the thread Patrick referenced will have this fixed then, once we get to it — hopefully next week. In there mean time, isn using Water a sufficient workaround for you?
Hi
When I run water, I cannot see the .NET control, so it is quit difficult for me. So I prefer VS
add to that I have other issue I created new ticket .NET framework with DevExpress 20