Print Page | Close Window

Code First and VS11

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3348
Printed Date: 13-May-2026 at 7:58am


Topic: Code First and VS11
Posted By: Walid
Subject: Code First and VS11
Date Posted: 20-Mar-2012 at 3:38am
Maybe you are already aware of it but the Code First generation doesn't work under VS11 beta. The .ibmmx file is never generated.

Is there a workaround to manuall generate it ? 



Replies:
Posted By: sbelini
Date Posted: 20-Mar-2012 at 11:39am
Hi Walid,
Were you able to install DevForce2010 with VS11?
Can you confirm that the msbuild .target files were installed successfully?
Are you able to add the .cf template file to your Code First project?
Regards,
Silvio.


Posted By: Walid
Date Posted: 21-Mar-2012 at 6:27am
Hi,

I don't think the install is working since I have no access to the different project template.
I have 2 .Targets files located in C:\Program Files (x86)\DevForce 2010.

what should I do to manually install them so I could have the *.ibmmx creation process during the build ?


-------------


Posted By: sbelini
Date Posted: 22-Mar-2012 at 3:47pm
Walid,
Try this:
 
1) In the Program Files (x86)\MSBuild\v4.5 folder add:
 
<Import Project="..\IdeaBlade\IdeaBlade.DevForce.Common.targets" Condition="Exists('..\IdeaBlade\IdeaBlade.DevForce.Common.targets')" />
 
to the Custom.After.Microsoft.Common.targets file.
 
2) Create an IdeaBlade folder inside Program Files (x86)\MSBuild and copy
 
IdeaBlade.DevForce.Common.targets
 
and
 
IdeaBlade.VisualStudio.Build.Tasks.dll
 
into it. (you'll find these files in our installation folder: Program Files (x86)\DevForce 2010)
 
3) Be sure to add the .cf file to your project containing the Code First Model.
 
Regards,
   Silvio.
 
 
 
 



Print Page | Close Window