<conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="/src/" /> </rule> </rules> </rewrite> </system.webServer>
The match url, <match url=".*" />
, will rewrite every request. You'll have to adjust this if you want some requests to get through, such as web API requests.
匹配 url <match url=".*" />
语句将会重写每一个请求。如果需要直接放行某些请求,比如一些 Web API 请求,你就必须调整它才行。
The URL in <action type="Rewrite" url="/src/"/>
should match the base href in index.html
.
<action type="Rewrite" url="/src/"/>
中的 url 将会匹配 index.html
中的基地址(base href)。
Build and launch the app with debugger by clicking the Run button or by pressing F5
.
点击 Run 按钮或者按 F5
键,用调试器构建和启动应用。
It's faster to run without the debugger by pressing Ctrl-F5
.
按 Ctrl-F5
不带调试器的运行应用,速度会更快。
The default browser opens and displays the QuickStart sample application.
默认浏览器打开并显示《快速上手》例子应用。
Try editing any of the project files. Save and refresh the browser to see the changes.
尝试编辑任何项目文件,保存并刷新浏览器来查看效果。