
The edml content gets lost after saving modified model when one of the projects in the solution was previously unloaded into which a template output is generated - even though enabled set to false -.
Scenario:
Model project contains the edml model with several templates which generate code into several other projects.
If I have a template's output set to a project that has been temporarilly unloaded (via project -> right click -> unload project) even though the enable property of that template has been set to false, the following error occurs "Custom tool error: Object reference not set to an instance of an object".
The edml model content gets completely erased (0 kb file size)!!!! which in turn gives the following error : "XML document must contain a root level element".
This is reproducable! If you re-enable the unloaded project, the errors disappear and everything works again as expected except for the lost model.
Project.DataAccess
Project.DataAccess.Interfaces
Project.Entities
Project.Model
- Model.edml
- Templates
-- DbContext
-- Repository
-- MVC Controller
--- Enabled = false
--- Output = Project.Presentation.Mvc
-- MVC View Advanced
--- Enabled = false
--- Output = Project.Presentation.Mvc
Project.Presentation.Wpf
Project.Presentation.Mvc (unavailable)
Devart Entity Developer 5.5.89 (licensed) / VS 2012 / Win 7