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: docs/debugger/using-the-debuggerdisplay-attribute.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,7 @@ public sealed class MyClass
82
82
}
83
83
}
84
84
```
85
+
The ",nq" suffix tells the expression evaluator to remove the quotes when displaying the final value (nq = no quotes).
85
86
86
87
## Example
87
88
The following code example shows how to use `DebuggerDisplay`, together with `DebuggerBrowseable` and `DebuggerTypeProxy`. When viewed in a debugger variables window, such as the **Watch** window, it produces an expansion that looks like this:
Copy file name to clipboardExpand all lines: docs/deployment/creating-bootstrapper-packages.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ The following table shows the properties that are automatically populated by the
81
81
|ApplicationName|The name of the application.|
82
82
|ProcessorArchitecture|The processor and bits-per-word of the platform targeted by an executable. Values include the following:<br /><br /> - Intel<br />- IA64<br />- AMD64|
83
83
|[Version9x](https://msdn.microsoft.com/en-us/library/aa372490\(v=vs.140\).aspx)|The version number for Microsoft Windows 95, Windows 98, or Windows ME operating systems. The syntax of the version is Major.Minor.ServicePack.|
84
-
|[VersionNT](https://msdn.microsoft.com/en-us/library/aa372495\(v=vs.140\).xaspx)|The version number for the Windows NT, Windows 2000, Windows XP, Windows Vista, Windows Server 2008, or Windows 7 operating systems. The syntax of the version is Major.Minor.ServicePack.|
84
+
|[VersionNT](https://msdn.microsoft.com/en-us/library/aa372495\(v=vs.140\).aspx)|The version number for the Windows NT, Windows 2000, Windows XP, Windows Vista, Windows Server 2008, or Windows 7 operating systems. The syntax of the version is Major.Minor.ServicePack.|
85
85
|[VersionMSI](https://msdn.microsoft.com/en-us/library/aa372493\(v=vs.140\).aspx)|The version of the Windows Installer assembly (msi.dll) run during the installation.|
86
86
|[AdminUser](https://msdn.microsoft.com/en-us/library/aa367545\(v=vs.140\).aspx)|This property is set if the user has administrator privileges. Values are true or false.|
87
87
|InstallMode|The installation mode indicates where the component needs to be installed from. Values include the following:<br /><br /> - HomeSite - prerequisites are installed from the vendor's Web site.<br />- SpecificSite - prerequisites are installed from the location that you select.<br />- SameSite - prerequisites are installed from the same location as the application.|
@@ -104,4 +104,4 @@ The redistributable list is an XML file that you should name using the following
104
104
[How to: Install Prerequisites with a ClickOnce Application](../deployment/how-to-install-prerequisites-with-a-clickonce-application.md)
Copy file name to clipboardExpand all lines: docs/deployment/trusted-application-deployment-overview.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ This topic provides an overview of how to deploy [!INCLUDE[ndptecclick](../deplo
81
81
Trusted Application Deployment is specific to [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)], and can only be used with [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] applications.
82
82
83
83
### Sign the Deployment
84
-
After obtaining your certificate, you must use it to sign your deployment. If you are deploying your application by using the [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] Publish wizard, the wizard will automatically generate a test certificate for you if you have not specified a certificate yourself. You can also use the [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] Project Designer window, however, to supply a certificate provided by a CA. Also see [How to: Publish a ClickOnce Application using the Publish Wizard](http://msdn.microsoft.com/library/31kztyey\(v=vs.110\).
84
+
After obtaining your certificate, you must use it to sign your deployment. If you are deploying your application by using the [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] Publish wizard, the wizard will automatically generate a test certificate for you if you have not specified a certificate yourself. You can also use the [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] Project Designer window, however, to supply a certificate provided by a CA. Also see [How to: Publish a ClickOnce Application using the Publish Wizard](../deployment/how-to-publish-a-clickonce-application-using-the-publish-wizard.md).
85
85
86
86
> [!CAUTION]
87
87
> We do not recommend that the application be deployed with a test certificate.
The style rules in this section concern modifier preferences, including requiring accessibility modifiers and specifying the desired modifier sort order.
297
+
The style rules in this section concern modifier preferences, including requiring accessibility modifiers, specifying the desired modifier sort order, and requiring the read-only modifier.
297
298
298
299
The following table shows the rule names, rule IDs, applicable programming languages, default values, and first supported version of Visual Studio:
299
300
@@ -302,6 +303,7 @@ The following table shows the rule names, rule IDs, applicable programming langu
@@ -310,7 +312,7 @@ This rule does not accept a **true** or **false** value; instead it accepts a va
310
312
| Value | Description |
311
313
| ----- |:----------- |
312
314
| always | Prefer accessibility modifiers to be specified |
313
-
| for\_non\_interface_members | Prefer accessibility modifiers to be declared except for public interface members. This will currently not differ from **always** and will act as future proofing for if C# adds default interface methods. |
315
+
| for\_non\_interface_members | Prefer accessibility modifiers to be declared except for public interface members. This is the same as **always** and has been added for future proofing if C# adds default interface methods. |
314
316
| never | Do not prefer accessibility modifiers to be specified |
315
317
316
318
Code examples:
@@ -359,12 +361,35 @@ Public Class MyClass
359
361
EndClass
360
362
```
361
363
364
+
**dotnet_style_readonly_field**
365
+
366
+
- When this rule is set to **true**, prefer that fields should be marked with `readonly` (C#) or `ReadOnly` (Visual Basic) if they are only ever assigned inline, or inside of a constructor.
367
+
- When this rule is set to **false**, specify no preference over whether fields should be marked with `readonly` (C#) or `ReadOnly` (Visual Basic).
368
+
369
+
Code examples:
370
+
371
+
```csharp
372
+
// dotnet_style_readonly_field = true
373
+
classMyClass
374
+
{
375
+
privatereadonlyint_daysInYear=365;
376
+
}
377
+
```
378
+
379
+
```vb
380
+
' dotnet_style_readonly_field = true
381
+
PublicClassMyClass
382
+
PrivateReadOnlydaysInYearAsInt=365
383
+
EndClass
384
+
```
385
+
362
386
These rules could appear in an *.editorconfig* file as follows:
Copy file name to clipboardExpand all lines: docs/python/learn-django-in-visual-studio-step-04-full-django-project-template.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ ms.workload:
17
17
18
18
**Previous step: [Serve static files, add pages, and use template inheritance](learn-django-in-visual-studio-step-03-serve-static-files-and-add-pages.md)**
19
19
20
-
Now that you've explored the basics of Django by building an app upon the "Blank Django App Project" template in Visual Studio, you can easily understand the fuller app that's produced by the "Django Web Project" template.
20
+
Now that you've explored the basics of Django by building an app upon the "Blank Django Web Project" template in Visual Studio, you can easily understand the fuller app that's produced by the "Django Web Project" template.
21
21
22
22
In this step you now:
23
23
@@ -213,4 +213,4 @@ Answer: The lack of the trailing '$' in the regular expression was a simple over
213
213
## Going deeper
214
214
215
215
-[Writing your first Django app, part 4 - forms and generic views](https://docs.djangoproject.com/en/2.0/intro/tutorial04/) (docs.djangoproject.com)
216
-
- Tutorial source code on GitHub: [Microsoft/python-sample-vs-learning-django](https://github.com/Microsoft/python-sample-vs-learning-django)
216
+
- Tutorial source code on GitHub: [Microsoft/python-sample-vs-learning-django](https://github.com/Microsoft/python-sample-vs-learning-django)
0 commit comments