Total Pageviews

Disclaimer

This is a personal web page. The views expressed on this blog are mine and do not necessarily reflect the views of my current employer.

I am currently employed by Morgan Stanley.

June 19, 2010

CatPaw Rumors: A Quick Way to Build Against .NET 4


Dotnet4
Originally uploaded by lextm
Starting from 5.0 release, you can build #SNMP thing against .NET simply via command line.

The trick on Windows is like this,

1. Open a Visual Studio 2010 command prompt and navigate to the folder that contains sharpsnmplib.sln.
2. Execute

msbuild sharpsnmplib.sln /p:TargetFrameworkVersion=v4.0

Then all resulting assemblies are linked against .NET 4 version of mscorlib.dll, and so on.

This is much easier than opening all csproj/vbproj files and modifying them. Right?

Of course, this trick applies to our upcoming 6.0 release, HoneyCell.

0 comments:

Post a Comment