This project has moved. For the latest updates, please go here.

KB 600005 How to compile source code on Windows

Summary

This article describes how to compile #SNMP source code on Windows.

Prerequisites

You may download the source code from https://github.com/lextm/sharpsnmplib/releases.

Default Configuration

#SNMP has several projects.

For release 8.0 and below, most of them are configured to compile against .NET Framework 3.5 except SharpSnmpLib.csproj who is against .NET Framework 2.0.

If you have .NET Framework 3.5 installed

.NET Framework 3.5 SP1 is available here.
  1. Install .NET SDK or Visual Studio.
  2. Execute prepare.bat to prepare necessary files.
  3. Execute release.35.bat to build the source code.
The compiled binaries are in the bin folder. They are built using MSBuild 3.5. Core assemblies are against .NET 2.0 SP2, while others against .NET 3.5 SP1.

For release 8.5, the projects are configured to compile against .NET 4.0.

If you have .NET Framework 4.0 installed

.NET Framework 4.0 installer is available here.
  1. Install .NET SDK or Visual Studio.
  2. Execute prepare.bat to prepare necessary files.
  3. Execute release.bat to build the source code.
The compiled binaries are in the bin folder. They are built using MSBuild 4.0.

.NET 4

Visual Studio 2013 Community Edition is the recommended IDE to view and edit the code base.

More Information

#SNMP is supported on Windows Vista (SP2), Windows 7 (SP1), Windows Server 2008 (SP2), Windows Server 2008 R2, Windows 8, Windows Server 2012, Windows 8.1, Windows Server 2012 R2 and Windows 10.

Windows XP and Windows Server 2003 support have expired due to Microsoft product lifecycle.

References

N/A

Last edited Sep 4, 2015 at 2:03 AM by lextm, version 9