This document explains the developer setup and build execution for Autofac.
-
Visual Studio 2013 Premium/Ultimate. (Include the Windows Phone 8.0 SDK feature when installing.) This will give you:
- .NET 4.5
- WCF RIA Services
- Portable Class Library tooling
- FxCop
- SQL Server Express
-
All of the latest .NET, VS, and SQL patches through Microsoft Update.
-
All of the latest VS updates (stable/RTM, not RC) through VS Extension Manager.
-
NUnit Test Adapter for VS11 (optional - to run unit tests inside Visual Studio)
Developer build:
msbuild default.proj
Production/Release build:
msbuild default.proj /p:Production=true
The developer build will...
- Clean all build artifacts.
- Build the solution.
- Execute the unit tests.
- Run code analysis.
The production/release build will do everything in the developer build plus...
- Create zip packages for distribution.
- Create NuGet packages for distribution.
- Build the compiled API help documentation.
Note for developers: If you are working on the Autofac core, there is
also a project in Core/Tests/Autofac.Tests.AppCert
that should be built/run
separately to verify changes will pass Windows App Store certification. This
build is not chained into the standard developer build since it takes time to
run. There is a readme in that folder explaining more about how to run that
build and assess results.
Production package versions are centrally controlled through the
PackageVersions.proj
. Documentation in that file explains how to use it.
Before releasing new versions for consumption, be sure to update the
appropriate version(s).
The API docs are viewable at http://api.autofac.org. This is hosted on GitHub pages in the https://github.com/autofac/autofac.github.com repository.
- Build the API documentation.
- Update the contents in the
/apidoc
folder with the new docs (add/remove/update). - Make sure the index page in the
/apidoc
isindex.html
- lower case, fullhtml
extension. (By default, Sandcastle makes itIndex.htm
which doesn't work.)
User documentation is viewable at https://docs.autofac.org
(a CNAME to https://autofac.readthedocs.org).
It is stored in the /docs
folder in this source repo.
To build the docs and see them locally, you need to follow the Getting Started docs on Read The Docs so you get Python and Sphinx installed.
The docs are written in reStructuredText, which is very similar to Markdown but not quite. Check that out for a primer.
Updates to the documentation checked into the /docs
folder will automatically
propagate to Read The Docs. No build or separate push is required.