Intellenum Help

Installing Intellenum

dotnet add package Intellenum --version 1.0.0

NuGet\Install-Package Intellenum -Version 1.0.0

<PackageReference Include="Intellenum" Version="1.0.0" />

When added to your project, the source generator generates the wrappers for your enums and the code analyzer will let you know if you try to create invalid items.

.NET Framework support

If you have a .NET Framework project and are using the old style projects (the one before the 'SDK style' projects), then you'll need to do a few things differently:

add the reference using PackageReference in the .csproj file:

<ItemGroup> <PackageReference Include="Intellenum" Version="[LATEST_VERSION_HERE - E.G. 1.0.0]" PrivateAssets="all" /> </ItemGroup>

Next, set the language version to latest (or anything 8 or more):

<PropertyGroup> + <LangVersion>latest</LangVersion> <Configuration Condition= " '$(Configuration)' == '' ">Debug</Configuration>
Last modified: 12 September 2024