I wonder why Visual Studio is raising this warning:
Access of shared member, constant member, enum member or nested type through an instance
My code:
Dim a As ApplicationDeployment = deployment.Application.ApplicationDeployment.CurrentDeployment
If System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed Then
If a.IsNetworkDeployed Then
' do something
End If
End If
What implies "through an instance"? Also, why is this a "warning"?