You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/option.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,12 +27,16 @@ show_minor_errors=false
27
27
28
28
CodeBehind framework users can remove the path of aspx files from wwwroot and add them to their desired directory. If you use server-side code in view (aspx) pages, this option leads to more security of your applications.
29
29
30
+
Operation location: Compiling view files
31
+
30
32
**Move views from wwwroot path**
31
33
32
34
(`move_view_from_wwwroot=true`)
33
35
34
36
If you have selected the path of the view file in a path other than the wwwroot path, if the option to move from the wwwroot path is enabled, automatically after recompile, all aspx and astx files will be moved from the wwwroot path to your chosen path.
35
37
38
+
Operation location: Compiling view files
39
+
36
40
**Rewrite aspx path as directory**
37
41
38
42
(`rewrite_aspx_file_to_directory=false`)
@@ -48,12 +52,16 @@ Also access aspx file after rewrite as directory
48
52
(`access_aspx_file_after_rewrite=false`)
49
53
If you have enabled rewriting the path of aspx files as a directory name, enabling this option will allow you to still access the path of the aspx file.
50
54
55
+
Operation location: Compiling view files
56
+
51
57
**Ignore Default.aspx after rewrite**
52
58
53
59
(`ignore_default_after_rewrite=true`)
54
60
55
61
Naming the aspx file as Default.aspx makes it unnecessary to add the name of this file after the last directory, and this file is recognized automatically; If you have enabled rewriting the path of aspx files as a directory name, enabling this option will make the Default.aspx files be considered as the default file of the previous directory path. Therefore, the Default directory will not be executed.
56
62
63
+
Operation location: Compiling view files
64
+
57
65
**Don't worry about new lines and extra tabs and spaces.**
58
66
59
67
**Trim in start**
@@ -88,6 +96,8 @@ This way there will be no extra lines
88
96
<!DOCTYPE html>
89
97
```
90
98
99
+
Operation location: Compiling view files
100
+
91
101
**Trim in inner aspx**
92
102
93
103
(`inner_trim_in_aspx_file=true`)
@@ -102,18 +112,24 @@ Example for Razor syntax
102
112
Example for standard syntax
103
113
`<% code %>`
104
114
115
+
Operation location: Compiling view files
116
+
105
117
**Trim in end**
106
118
107
119
(`end_trim_in_aspx_file=true`)
108
120
109
121
If this option is active, every new line and extra tab and space will be deleted from the bottom of the aspx files.
110
122
123
+
Operation location: Compiling view files
124
+
111
125
**Break for layout**
112
126
113
127
(`set_break_for_layout_page=true`)
114
128
115
129
If this option is enabled, layout files are automatically ignored from direct access and cannot be accessed via url.
116
130
131
+
Operation location: Compiling view files
132
+
117
133
**Support cshtml extension**
118
134
119
135
(`convert_cshtml_to_aspx=false`)
@@ -127,10 +143,14 @@ For default cshtml pages, the name should be Default.cshtml; So pages named Inde
127
143
Please note that these files must not be added to projects in Visual Studio; The reason for this is that, in addition to the CodeBehind framework, these pages are also compiled in the default .NET mode and can create unstable situation and security risk conditions.
128
144
Also note that the default code highlighter of Visual Studio may in some cases have unnecessary errors from cshtml pages based on the CodeBehind framework.
129
145
146
+
Operation location: Compiling view files
147
+
130
148
**Show minor errors**
131
149
132
150
(`show_minor_errors=false`)
133
151
134
152
By enabling the show minor errors option, when compiling, errors that do not cause problems in the compilation process but are not optimal will be displayed in the `views_compile_error.log` file in the code_behind directory.
135
153
136
154
In the future, more customization options will be added to the options file.
0 commit comments