Skip to content

Commit 7f90ef5

Browse files
authored
Remove System.Deployment.Application xrefs (#13041)
1 parent 70a648e commit 7f90ef5

2 files changed

Lines changed: 23 additions & 28 deletions

File tree

xml/Microsoft.VisualBasic.ApplicationServices/AssemblyInfo.xml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -816,21 +816,19 @@
816816
## Remarks
817817
The `My.Application.Info.Version` property gets a <xref:System.Version> object containing the version number of the application. You can use the <xref:System.Version.Major*>, <xref:System.Version.Minor*>, <xref:System.Version.Build*>, and <xref:System.Version.Revision*> properties of the <xref:System.Version> object to access specific version information about the application.
818818
819-
ClickOnce-deployed applications should use the <xref:System.Deployment.Application.ApplicationDeployment.CurrentVersion> property of the <xref:Microsoft.VisualBasic.ApplicationServices.ConsoleApplicationBase.Deployment> property.
819+
ClickOnce-deployed applications should use the `My.Application.Deployment.CurrentVersion` property.
820820
821821
## Availability by Project Type
822822
823-
|Project type|Available|
824-
|------------------|---------------|
825-
|Windows Forms Application|**Yes**|
826-
|Class Library|**Yes**|
827-
|Console Application|**Yes**|
828-
|Windows Forms Control Library|**Yes**|
829-
|Web Control Library|No|
830-
|Windows Service|**Yes**|
831-
|Web Site|No|
832-
833-
823+
| Project type | Available |
824+
|-------------------------------|-----------|
825+
| Windows Forms Application | **Yes** |
826+
| Class Library | **Yes** |
827+
| Console Application | **Yes** |
828+
| Windows Forms Control Library | **Yes** |
829+
| Web Control Library | No |
830+
| Windows Service | **Yes** |
831+
| Web Site | No |
834832
835833
## Examples
836834
This example uses the `My.Application.Info.Version` property to display the version of the application.
@@ -841,7 +839,6 @@
841839
</remarks>
842840
<exception cref="T:System.Security.SecurityException">The application does not have sufficient permissions to access the assembly version.</exception>
843841
<altmember cref="P:Microsoft.VisualBasic.ApplicationServices.ApplicationBase.Info" />
844-
<altmember cref="P:System.Deployment.Application.ApplicationDeployment.CurrentVersion" />
845842
<altmember cref="T:System.Version" />
846843
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
847844
</Docs>

xml/Microsoft.VisualBasic.ApplicationServices/ConsoleApplicationBase.xml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -136,27 +136,25 @@
136136
> The `My.Application.CommandLineArgs` property returns only the command-line arguments. This is different from the behavior of the <xref:System.Environment.CommandLine> property, which returns the application name in addition to the arguments.
137137
138138
> [!NOTE]
139-
> In an application that is ClickOnce deployed, use the <xref:System.Deployment.Application.ApplicationDeployment.ActivationUri> property of the `My.Application.Deployment` object to get the command-line arguments. For more information, see <xref:Microsoft.VisualBasic.ApplicationServices.ConsoleApplicationBase.Deployment*>.
139+
> In an application that's ClickOnce-deployed, use the `My.Application.Deployment.ActivationUri` property to get the command-line arguments. For more information, see <xref:Microsoft.VisualBasic.ApplicationServices.ConsoleApplicationBase.Deployment*>.
140140
141141
The following table lists examples of tasks involving the `My.Application.CommandLineArgs` property.
142142
143-
|To|See|
144-
|-|-|
145-
|Check the command-line arguments of subsequent attempts to start a single-instance application|<xref:Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.StartupNextInstance>|
143+
| To | See |
144+
| - | - |
145+
| Check the command-line arguments of subsequent attempts to start a single-instance application | <xref:Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.StartupNextInstance> |
146146
147147
## Availability by Project Type
148148
149-
|Project type|Available|
150-
|-|-|
151-
|Windows Application|**Yes**|
152-
|Class Library|No|
153-
|Console Application|**Yes**|
154-
|Windows Control Library|No|
155-
|Web Control Library|No|
156-
|Windows Service|**Yes**|
157-
|Web Site|No|
158-
159-
149+
| Project type | Available |
150+
|-------------------------|-----------|
151+
| Windows Application | **Yes** |
152+
| Class Library | No |
153+
| Console Application | **Yes** |
154+
| Windows Control Library | No |
155+
| Web Control Library | No |
156+
| Windows Service | **Yes** |
157+
| Web Site | No |
160158
161159
## Examples
162160
This example uses the `My.Application.CommandLineArgs` property to examine the application's command-line arguments. If an argument is found that starts with `/input=`, the rest of that argument is displayed.

0 commit comments

Comments
 (0)