Add the DbEntry MSBuild section to the csproj/vbproj file(s) which has Models in:

  <UsingTask TaskName="ProcessorTask" AssemblyFile="$(SolutionDir)Imports\Lephone.MSBuild.dll" />
  <Target Name="AfterCompile">
    <ProcessorTask
        KeyFile="$(KeyOriginatorFile)"
        ProjectDir="$(ProjectDir)"
        AssemblyName="@(IntermediateAssembly)"
        ReferenceFiles="@(ReferencePath)" />
  </Target>
And Change the AssemblyFile part to your Lephone.MSBuild.dll's path.

Lephone.UnitTest.csproj could be an example of it.

Last edited Feb 15, 2011 at 7:31 AM by lifeng, version 6

Comments

No comments yet.