My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
BuildingFromSource  
How to build Autofac from the source
Autofac2
Updated Mar 25, 2012 by nicholas...@gmail.com

Building a Release for .NET 4.0

Important: To build Autofac, you need to open a Visual Studio 2010 command prompt. This can be found in the Start menu under Microsoft Visual Studio 2010/Visual Studio Tools.

The Autofac.build file is an MSBuild script that will build, test and package the core Autofac assemblies.

The Release target is used to build the redistributable versions found on the Autofac website.

The version can be specified via the Version property.

    msbuild Autofac.build /T:Release /P:Version=2.3.4.567

After the process completes, binaries will be zipped to the Build/Package sub-folder.

Help Files

The help file is not built in the .NET 4.0 version because the help generation tools do not yet support that framework version.

Other Platforms

The Silverlight and .NET 3.5 versions of Autofac still require the VS2010 tool set in order to be built from source.

The BuildFramework parameter selects the target framework:

BuildFramework Value Target Framework Notes
none .NET 4.0
NET35 .NET 3.5 Generates help file, see note below
SL4 Silverlight 4 Not fully tested
SL3 Silverlight 3
SL2 Silverlight 2 No longer officially supported

For example, to build against .NET 3.5 run:

    msbuild Autofac.build /T:Release /P:Version=2.3.4.567 /P:BuildFramework=NET35

The .NET 3.5 target requires Microsoft Sandcastle.

The Windows Phone 7 builds require the .NET Portable Class Library tools.

To build NET35 without generating Help files select targets manually:

    msbuild Autofac.build /T:Clean;_Version;Build;Test /P:Version=2.3.4.567 /P:BuildFramework=NET35

Sign in to add a comment
Powered by Google Project Hosting