views:

42

answers:

1

Here's my specific scenario: Using VS2010, Pex and TFS2008, generated moles files are getting automatically added to source-control (TFS).

Pex adds a "project_name.moles" file to your test project and then autogenerates 3 files at build time: project_name.Designer.cs, project_name.Moles.dll, and project_name.Moles.xml. I want to keep the *.moles files in TFS (it's source code) but I don't want the 3 generated files to be in TFS (they are still part of the project, but they are generated when first built on a new system).

There are two reasons I need this behavior: 1. It's not a good idea to store generated code in source-control (let's not debate the merits of that here). 2. Specially, the DLL file is BAD because every time someone builds, all moles files are regenerated and thus all files are checked-out and DLL files are checked-out EXCLUSIVELY (non-mergable) and so other people can no longer build on their local box.

The Pex/Moles team are working on this but the solution is still likely several months away.

Is there a csproj property that can be assigned to these project files so that they are in the project but not managed by version control? I don't mind hand-editing the csproj file.

A: 

Moles will not be adding any files to the project in the next version (v0.94). It will use MSBuild to generate the assemblies on demand.

Peli
Yup... but that's several months away probably. I guess I'll just have to wait :(
Simon Gillbee
Week, not month away.
Peli