
Missing references in generated code
Missing references in generated code
The code generated by the tool doesn't compile because of missing assembly references. I added references to system.data.entity & system.data.entity.design and still no go. I am using .NET 4.6.1 and EN 5.8.782. I would like EN to add all the assembly references for its generated code.


Re: Missing references in generated code
Please give us the following information:
1. Are you using a standalone Entity Developer or the one integrated in Visual Studio?
2. Specify the value of the "Entity Framework version" field in Model Settings.
3. Tell us the exact version of your Visual Studio (via the Help > About menu).
4. What is the type of your project (e.g.: ASP.NET MVC 5 etc)?
The last step of Entity Developer integrated in Visual Studio offers to install EntityFramework.dll (checkbox) via NuGet package. For this, Internet connection should be available. You can also install it manually: open Tools > NuGet Package Manager > Package Manager Console and execute
Install-Package EntityFramework -Version 6.1.3
1. Are you using a standalone Entity Developer or the one integrated in Visual Studio?
2. Specify the value of the "Entity Framework version" field in Model Settings.
3. Tell us the exact version of your Visual Studio (via the Help > About menu).
4. What is the type of your project (e.g.: ASP.NET MVC 5 etc)?
The last step of Entity Developer integrated in Visual Studio offers to install EntityFramework.dll (checkbox) via NuGet package. For this, Internet connection should be available. You can also install it manually: open Tools > NuGet Package Manager > Package Manager Console and execute
Install-Package EntityFramework -Version 6.1.3
Re: Missing references in generated code
I am using the integrated one. In the wizard I indicated Entity Framework 6. I am using VS 2015.
The checkbox is selected by default. The wizard after it was done working didn't download entity framework package and it didn't add a reference to EN. I have a sample VS project. I don't find a way to add an attachment in this message.
The checkbox is selected by default. The wizard after it was done working didn't download entity framework package and it didn't add a reference to EN. I have a sample VS project. I don't find a way to add an attachment in this message.
Re: Missing references in generated code
1. Is internet available on your computer?Thenrich wrote:The wizard after it was done working didn't download entity framework package and it didn't add a reference to EN.
2. Does the issue persist with the newly created projects (with new model)? Are there any errors in popup message box or in View > Output?
3. Is the problem fixed after installing EntityFramework.dll manually? For this, open Tools > NuGet Package Manager > Package Manager Console and execute
Install-Package EntityFramework -Version 6.1.3
You can send it to us via contact form.Thenrich wrote:I have a sample VS project. I don't find a way to add an attachment in this message.