Good morning All,
Little background:-
We are developing a "Classic ASP"to "ASP.NET" migration project. The project started using ASP.NETWeb site Template (not web application project (WAP)). Language:VB.NET, Currently using "VS.NET 2012", "LINQ to SQL" . Recently one of our senior person decided to develop the rest of the migration pages using Entity Framework Model Binding Web Forms. Initial we got some errors because we have already part of application (some migration pages) developed using LINQ TO SQL (.dbml)and new one's (rest of migration pages) we are planning to use Entity Framework (.edmx). We resolved all the issues and now i have some pages using entity frame work which are working along with old page developed using "LINQ to SQL".
Issue:-
The current issue is we are usingTFS 2012 and when i am kicking a build i am getting errors related to Entity Framework.
Some errors are like below
C:\Builds\2\MyProject\MyProject DEV_BRANCH\Sources\MyProject\MyProject DEV_BRANCH\App_Code\Models\MyProjectModel.Context.vb : Type 'DbSet' is not defined.
C:\Builds\2\MyProject\MyProject DEV_BRANCH\Sources\MyProject\MyProject DEV_BRANCH\App_Code\MyClass.vb:’SaveChanges’ is not a member of ‘MyProjectEntitities’.
Note:- Where ‘MyProjectEntitities’ is my context class of entity framework (.edmx)
My Project TFS build structure is like below
$
|____ My Project
|_____ BuildProcessTemplates
|_____ MyProject DEV_BRANCH
|____MyProject files (Account Folder, App_Code Folder, CSS Folder, Images Folder….)
|_____SolutionsFolder
Note:- Above the “SolutionsFolder” is a folder which contains all my “DEV”, “TEST” related .sln files. Ex:- For dev build the TFS build
Processè 1. RequiredèItems to Buildè Projects To Buildè“$/MyProject/Solutions Folder/MyProject_DEVBRANCH.sln”
My TFS Server does not have Entity Framework installed. Will putting below dll’s in GAC (dropping below dll’s to my server c:\windows\assembly) will help or what I have to do?
"EntityFramework.SqlServer.dll"
"EntityFramework.dll"
Thank you
Ashok