Test.CSharp.ModelAnalyzer 0.0.18

There is a newer version of this package available.
See the version list below for details.
dotnet add package Test.CSharp.ModelAnalyzer --version 0.0.18
                    
NuGet\Install-Package Test.CSharp.ModelAnalyzer -Version 0.0.18
                    
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="Test.CSharp.ModelAnalyzer" Version="0.0.18">
  <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="Test.CSharp.ModelAnalyzer" Version="0.0.18" />
                    
Directory.Packages.props
<PackageReference Include="Test.CSharp.ModelAnalyzer">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
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 Test.CSharp.ModelAnalyzer --version 0.0.18
                    
#r "nuget: Test.CSharp.ModelAnalyzer, 0.0.18"
                    
#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 Test.CSharp.ModelAnalyzer@0.0.18
                    
#: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=Test.CSharp.ModelAnalyzer&version=0.0.18
                    
Install as a Cake Addin
#tool nuget:?package=Test.CSharp.ModelAnalyzer&version=0.0.18
                    
Install as a Cake Tool

ModelAnalyzer

Roslyn-based analysis of class models with informal contracts.

How to install

To install this analyzer, in Visual Studio:

  • Open menu ToolsNuGet Package ManagerManage NuGet Packages for Solution. The NuGet - Solution window appears.
  • In the top right corner, make sure Package Source is selected to be either nuget.org or All.
  • Click the Browse tab and in the search prompt type ModelAnalyzer.
  • A list of packages appears, one one them called CSharp.ModelAnalyzer.
  • Click to select this package and in the right pane check projects you want to be analyzed.
  • Click the Install button.

How to uninstall

To uninstall this analyzer, in Visual Studio:

  • Open menu ToolsNuGet Package ManagerManage NuGet Packages for Solution. The NuGet - Solution window appears.
  • Click to select the CSharp.ModelAnalyzer package and in the right pane uncheck projects you no longer want to be analyzed.
  • Click the Uninstall button.

Model Analysis

This analyzer looks for inconsistencies by creating a model of a class from the source code. The model is basically a big mathematical proof of consistency. The proof is then analyzed by a theorem solver, and if found true it proves the source is consistent (in some abstract sense).

Caveat

A big caveat to what might look like magic is that this analyzer only supports a very restricted subset of C# (see below for a list). Anything that is not supported prevents the analysis from starting and displays a warning.

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.

Version Downloads Last Updated
0.0.29 520 1/28/2023
0.0.28 503 1/28/2023
0.0.27 492 1/28/2023
0.0.26 546 1/2/2023
0.0.25 460 12/29/2022
0.0.24 412 12/20/2022
0.0.23 474 12/19/2022
0.0.22 423 12/19/2022
0.0.21 392 12/15/2022
0.0.20 405 12/15/2022
0.0.19 353 12/15/2022
0.0.18 380 12/14/2022
0.0.17 397 12/14/2022
0.0.16 390 12/14/2022
0.0.15 381 12/14/2022
0.0.14 376 12/14/2022
0.0.13 375 12/14/2022
0.0.12 370 12/14/2022
0.0.11 401 12/14/2022
0.0.10 371 12/14/2022
0.0.9 363 12/13/2022
0.0.8 368 12/13/2022
0.0.7 413 12/13/2022
0.0.6 413 12/13/2022
0.0.5 411 12/13/2022
0.0.4 371 12/13/2022

Initial package.