Live reboot and asp.net vNext on OSX

How do you get the "k kestrel" command to reboot (one of the advantages of asp.net vNext) on MacOSX?

Following "k -h", it looks like the command "k --watch kestrel", however, it does not restart when I make changes to my HelloMvc Controller sample.

+6
source share
2 answers

Currently, according to David Fowler, Mono has an error that prohibits detection of file changes. However, the new FileSystemWatcher had to be merged recently, so this might work out soon!

+7
source

I was able to fix this problem by following the proposed miguellira solution on this issue: https://github.com/aspnet/Home/issues/508

I skipped the first second step, I just changed my ~ / .bash_profile file, adding the following:

alias dnu="brew switch mono 4.1.0 && dnu" code () { brew switch mono 4.0.1 if [[ $# = 0 ]] then open -a "Visual Studio Code" else [[ $1 = /* ]] && F="$1" || F="$PWD/${1#./}" open -a "Visual Studio Code" --args "$F" fi } export MONO_MANAGED_WATCHER=enabled 

As for the bash_profile file, if you donโ€™t know how to change it (or create it if you donโ€™t already have it), see the link: https://discussions.apple.com/message/19065947#19065947

0
source

Source: https://habr.com/ru/post/978224/


All Articles