Mal.Mdk2.ModAnalyzers 2.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Mal.Mdk2.ModAnalyzers --version 2.1.1
                    
NuGet\Install-Package Mal.Mdk2.ModAnalyzers -Version 2.1.1
                    
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="Mal.Mdk2.ModAnalyzers" Version="2.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mal.Mdk2.ModAnalyzers" Version="2.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Mal.Mdk2.ModAnalyzers" />
                    
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 Mal.Mdk2.ModAnalyzers --version 2.1.1
                    
#r "nuget: Mal.Mdk2.ModAnalyzers, 2.1.1"
                    
#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.
#addin nuget:?package=Mal.Mdk2.ModAnalyzers&version=2.1.1
                    
Install Mal.Mdk2.ModAnalyzers as a Cake Addin
#tool nuget:?package=Mal.Mdk2.ModAnalyzers&version=2.1.1
                    
Install Mal.Mdk2.ModAnalyzers as a Cake Tool

MDK Analyzers


The game Space Engineers (by Keen Software House, no affiliation) supports scripting and modding using the C# language, but limited by a built-in whitelist to protect against dangerous or destructive code. This analyzer aims to inform the developer when they're trying to use parts of the .NET framework or game API they are not allowed to use.

This package is part of the MDK2 project.


Usage:

Simply reference the nuget package in your mod project. It should automatically start analyzing your project.

Nuget unfortunately does not notify you when there's updates to nuget packages, so you should check manually now and again, especially after game updates.

Ignoring paths and folders

Edit your project file. Within the first <PropertyGroup>, add

<Mdk-IgnorePaths>$(Mdk-IgnorePaths);PathToIgnore\**\*</Mdk-IgnorePaths>

Everything in that path, recursively, will now be ignored by the analyzer. Add multiple patterns with ;:

<Mdk-IgnorePaths>$(Mdk-IgnorePaths);FirstPath\**\*;**\*.debug.cs</Mdk-IgnorePaths>

Including the $(Mdk-IgnorePaths) will add to the ignore list rather than replace it.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Mal.Mdk2.ModAnalyzers:

Repository Stars
malforge/mdk2
Version Downloads Last updated
2.1.10 596 8/24/2024
2.1.9 202 7/7/2024
2.1.8 596 1/29/2024
2.1.7 649 11/18/2023
2.1.4 1,855 11/17/2023 2.1.4 is deprecated because it has critical bugs.
2.1.3 1,732 11/5/2023
2.1.2 1,728 11/5/2023
2.1.1 1,733 11/5/2023
2.1.0 1,804 11/5/2023

V.2.1.1
- Fixed bad default ignore path

V.2.1.0
- Nuget Rename (I am _so_ sorry, it had to be done, won't happen again, I promise)
- Added support for <Mdk-IgnorePaths> (see readme for instructions)
- Updated whitelist cache