什么是有效的 DNX --watch 标志值?
What are the valid DNX --watch flag values?
我正在处理我的第一个 ASP.NET 5 应用程序。尝试通过 运行ning 从命令行启动应用程序时:
dnx web --watch
我得到以下输出:
System.FormatException: Value for switch '--watch' is missing.
at Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationProvider.Load()
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Add(IConfigurationProvider provider)
at Microsoft.AspNet.Hosting.WebApplication.Run(Type startupType, String[] args)
at Microsoft.AspNet.Server.Kestrel.Program.Main(String[] args)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider)
at Microsoft.Dnx.ApplicationHost.Program.<>c__DisplayClass3_0.<ExecuteMain>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--watch
标志的有效值是多少?我试着给它一个虚拟值 0 然后更改了我的一些控制器代码,但更改没有反映出来。
更新
要安装 dnx-watch
运行 以下内容:
dnu commands install Microsoft.Dnx.Watcher
然后 运行 您的应用程序,方法如下:
dnx-watch web
在命令名称之后传递的参数(在您的情况下为 "web")是传递给该命令的参数。如果你想传递给 DNX 的参数,请在之前传递它们:dnx --watch web
但是,--watch
会消失。使用 dnx-watch
代替:https://github.com/aspnet/Announcements/issues/74
我正在处理我的第一个 ASP.NET 5 应用程序。尝试通过 运行ning 从命令行启动应用程序时:
dnx web --watch
我得到以下输出:
System.FormatException: Value for switch '--watch' is missing.
at Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationProvider.Load()
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Add(IConfigurationProvider provider)
at Microsoft.AspNet.Hosting.WebApplication.Run(Type startupType, String[] args)
at Microsoft.AspNet.Server.Kestrel.Program.Main(String[] args)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider)
at Microsoft.Dnx.ApplicationHost.Program.<>c__DisplayClass3_0.<ExecuteMain>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--watch
标志的有效值是多少?我试着给它一个虚拟值 0 然后更改了我的一些控制器代码,但更改没有反映出来。
更新
要安装 dnx-watch
运行 以下内容:
dnu commands install Microsoft.Dnx.Watcher
然后 运行 您的应用程序,方法如下:
dnx-watch web
在命令名称之后传递的参数(在您的情况下为 "web")是传递给该命令的参数。如果你想传递给 DNX 的参数,请在之前传递它们:dnx --watch web
但是,--watch
会消失。使用 dnx-watch
代替:https://github.com/aspnet/Announcements/issues/74