|
BuildingFromSource
How to build Autofac from the source
Autofac2 Building a Release for .NET 4.0Important: 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 FilesThe help file is not built in the .NET 4.0 version because the help generation tools do not yet support that framework version. Other PlatformsThe 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:
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 | |||||||||||||||||||