haf / Castle.Facilities.NHibernate

The NHibernate Facility supercedes NHibernateIntegration and integrates with the new Transaction support. Please read http://stackoverflow.com/questions/4010265/how-to-let-nhibernate-retry-deadlocked-transactions-when-using-session-per-reque before using, it will help you.
https://github.com/haf/Castle.Facilities.NHibernate/wiki
Apache License 2.0
15 stars 23 forks source link

Build with VS 2013 can't find Microsoft.Build.Tasks.v12.0.dll #18

Closed flcdrg closed 9 years ago

flcdrg commented 10 years ago

Building latest master is failing with this error:

D:\dev\git\Castle.Facilities.NHibernate\.nuget\nuget.targets(68,9): error MSB4175: The task factory "CodeTaskFactory" could not be loaded from the assembly "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Build.Tasks.v12.0.dll". Could not load file or assembly 'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Build.Tasks.v12.0.dll' or one of its dependencies. The system cannot find the file specified. [D:\dev\git\Castle.Facilities.NHibernate\src\Castle.Facilities.NHibernate.Castle.Facilities.NHibernate.csproj]

I think this relates to MSBuild being moved to be part of Visual Studio instead of .NET Framework. Some useful bits here which probably will help - https://gist.github.com/sayedihashimi/64736331b273162a1e76

haf commented 10 years ago

I'm afraid I don't have VS2013, so I can't test. I'll be watching your issue though.

sayedihashimi commented 10 years ago

@flcdrg I don't believe my getnuget.targets file will help you here. I don't have any data besides the error above, but I'm guessing this error relates to the usage of $(MSBuildToolsPath) in an inline task. I noticed when I switched to latest MSBuild my inline tasks broke. See how I workaround this https://github.com/ligershark/webjobsvs/blob/master/src/ligershark.webjobs.targets#L197. I'm not sure if that's the best approach, but I'll ping the MSBuild team.