2017-04-18 07:52:04 +08:00
## Building an Entity Framework edmx with Visual Studio 2013 can fail with error MSB4062 if using the EntityDeploySplit or EntityClean tasks
2017-04-06 04:52:19 +08:00
### Scope
Major
### Version Introduced
4.5.1
### Version Reverted
4.6
### Source Analyzer Status
Available
### Change Description
2017-05-31 02:57:12 +08:00
MSBuild 12.0 tools (included in Visual Studio 2013) changed MSBuild file
2017-04-21 02:19:05 +08:00
locations, causing older Entity Framework targets files to be invalid. The
result is that `EntityDeploySplit` and `EntityClean` tasks fail because they are
unable to find `Microsoft.Data.Entity.Build.Tasks.dll` . Note that this break is
2017-05-31 02:57:12 +08:00
because of a toolset (MSBuild/VS) change, not because of a .NET Framework
2017-04-21 02:19:05 +08:00
change. It will only occur when upgrading developer tools, not when merely
upgrading the .NET Framework.
2017-04-06 04:52:19 +08:00
- [ ] Quirked
- [x] Build-time break
### Recommended Action
2017-05-31 02:57:12 +08:00
Entity Framework targets files are fixed to work with the new MSBuild layout beginning in the .NET Framework 4.6. Upgrading to that version of the Framework will fix this issue. Alternatively, [this ](http://stackoverflow.com/a/24249247/131944 ) workaround can be used to patch the targets files directly.
2017-04-06 04:52:19 +08:00
### Affected APIs
* Not detectable via API analysis
### Category
Entity Framework
[More information ](http://stackoverflow.com/questions/20400054/entitydeploysplit-error-microsoft-data-entity-build-tasks-dll-missing/24249247#24249247 )
2017-04-18 07:52:04 +08:00
<!-- breaking change id: 109 -->