Joined: Fri Mar 14, 2008 3:01 pm Posts: 8 Location: Marysville, PA
|
I testing NHibenate and have a simple console app with 1 embedded mapping. I want to use NHQG to generate strongly typed criteria. I have found snippets online about modifing the project file, and using a custom tool.
so far none of these options seem to work.
If I use the custom tool with with a name of NHibernateQueryGenerator the build tells me it cannot find the tool.
If I modify my project file it warns me I cannot include the file Foo.hbm.xml twice. (once as embedded resource, once as part of HbmFiles)
[code]<ItemGroup>
<HbmFiles Include="Domain\Mapping\*.hbm.xml" />
<Compile Include="Domain\Query\*.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="BeforeBuild">
<Exec Command="%22c:\...\NHQG.exe%22 cs %(HbmFiles.FullPath) Domain\Query\" />
</Target>[code]
If i remove the HbmFiles line nothing happens.
I downloaded the bits from ayendes web site and also got the source from SVN.
I'm using VS05. any ideas on what i'm doing wrong?
|
|