How to watch for file changes “dotnet watch” with Visual Studio ASP.NET Core

If you want to use ASP.NET 2.x or 3.x you need to change it a bit. The watch tool is a global tool now and you don’t need to add it as a reference any longer The syntax is slightly different “Watch”: { “executablePath”: “dotnet.exe”, “workingDirectory”: “$(ProjectDir)”, “commandLineArgs”: “watch run”, “launchBrowser”: true, “launchUrl”: “http://localhost:5000/”, “environmentVariables”: … Read more

How do I get the kestrel web server to listen to non-localhost requests?

The default configuration file used by Kestrel server is hosting.json. The name was changed multiple times in different beta versions. If you use now project.json with the following “command” section “commands”: { “web”: “Microsoft.AspNet.Server.Kestrel” } then during starting the server from the command line by dnx web the file hosting.json will be read. The file … Read more

How can I diagnose missing dependencies (or other loader failures) in dnx?

Good question. For your specific problem, it looks like you have a mismatch in your resolved dependencies. When things like this happen it’s likely because you’re running your application on an incompatible dnx. We’re still making very big breaking changes so if you ever see method missing of type missing, chances are you ended up … Read more