PDA

View Full Version : سوال: خطا پس از ایجاد مدل



Dr.Bronx
چهارشنبه 10 مهر 1392, 09:20 صبح
سلام .

در mvc 4 و با framework 4.5.1 وقتی که ado.net entity data model رو generate می کنم بدون مشکل دیاگرام رو میسازه و کلاس های رو ایجاد می کنه اما یک خطا موقع کامپایل میده



Error 1 The "EntityDeploySplit" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Data.Entity.Build .Tasks.dll. Could not load file or assembly 'file:///C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Data.Entity.Build .Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. MvcApplication1


ورژن فریم ورک رو هم تغییر دادم اما باز هم همین خطا رو میده .
حتی entity رو هم از طریق nuget console آپدیت کردم ولی باز هم مشکل داره .

آپدیت 1 :
ورژن ویژوال استودیو : Visual Studio 2013 RC


آپدیت 2 :
بعد از چند بار سعی در کامپایل کردن با این خطا مواجه شدم

Error 1 The "EntityDeploySplit" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\MSBuild\12.0\bin" directory. MvcApplication1


آپدیت 3 :
رفرنس EF رو حذف کردم و دوباره به وسیله nuget اضافه کردم .
پروژه رو هم Clean کردم و Rebuild کردم .

Amir Oveisi
چهارشنبه 10 مهر 1392, 12:50 عصر
یک بار رفرنس EF رو از رفرنس ها و فایل packages.config پاک کنید و دوباره با nuGet اضافه کنید ببینید چه نتیجه ای میگیرید.
یک بار پروژه رو clean کنید و دوباره build کنید.

Dr.Bronx
چهارشنبه 10 مهر 1392, 14:51 عصر
خیر باز هم داستان باقیست .

Amir Oveisi
چهارشنبه 10 مهر 1392, 16:06 عصر
مراحلی که برای ساخت مدل هاتون انجام دادید رو میگید؟