AppVer.Development.CodeAnalyzer.VisualBasic
1.0.11
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AppVer.Development.CodeAnalyzer.VisualBasic --version 1.0.11
NuGet\Install-Package AppVer.Development.CodeAnalyzer.VisualBasic -Version 1.0.11
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AppVer.Development.CodeAnalyzer.VisualBasic" Version="1.0.11"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AppVer.Development.CodeAnalyzer.VisualBasic" Version="1.0.11" />
<PackageReference Include="AppVer.Development.CodeAnalyzer.VisualBasic"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AppVer.Development.CodeAnalyzer.VisualBasic --version 1.0.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AppVer.Development.CodeAnalyzer.VisualBasic, 1.0.11"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AppVer.Development.CodeAnalyzer.VisualBasic@1.0.11
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AppVer.Development.CodeAnalyzer.VisualBasic&version=1.0.11
#tool nuget:?package=AppVer.Development.CodeAnalyzer.VisualBasic&version=1.0.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
A Roslyn analyzer for Visual Basic that enforces explicit Return or Throw statements in all functions.
This helps prevent hidden fall-through paths.
- Reports missing return paths as errors - it will still compile unless you elevate the diagnostic to an error.
- Supports Visual Basic projects targeting .NET Framework and .NET Core.
Example Diagnostic
Function CalculateValue(x As Integer) As Integer
If x > 10 Then
Return 5
End If
' ❌ Missing explicit Return or Throw
End Function
Usage:
Install the package for your project and Visual Studio will automatically add it as Analyzer under Dependencies
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.