Installing Castle.Transactions from NuGet doesn't produce a DLL

222 Views Asked by At

A few days ago I installed the Castle.Facilities.AutoTx from NuGet which has a dependency on Castle.Transactions. When I ran my application I got a FileNotFoundException trying to load a DLL from the Castle.Transactions folder.

Both of these packages have recently been updated (27th June) and it seems like the update caused this problem. There is a reply to that announcement from someone else saying that they have the same problem and they created a pull request to fix the issue which has not yet been accepted by the looks of things.

I have tried to go back and install an earlier version of Castle.Facilities.AutoTx from Nuget using the commands in this Stack Overflow question but I ran into the problem detailed here in that the Rx-Core package had been renamed so that dependency couldn't be satisfied.

I have emailed Henrik Feldt who posted the 3.1 announcement and who also authors the Castle.Transactions package but I haven't had a response. I would really like to get the AutoTx facility working in my application, can you suggest how I can achieve that?

3

There are 3 best solutions below

1
On

I had the same problem few weeks ago. Unfortunately, since there is no other place to download it you'll have to fetch the source from GitHub, install Ruby, rake and other libraries needed for building it. If you try to build it just using VS, you'll be missing an AssemblyInfo.cs file which is generated by rake build script. So you'll have to build using Rake, to get the AssemblyInfo.cs, then manually update assembly version in the file, and then build again in VisualStudio. I could as well send you my assemblies, but it's safest for you to build yourself.

Temporarily, here's my build of the library.

0
On

You should apply this pull request before building it with rake.. https://github.com/haf/Castle.Transactions/pull/11

0
On

Just installed the package by itself and it generated a dll.

Install-Package Castle.Transactions

Imagine that it's probably a newer version than the one Castle.Facilities.AutoTx requires uses but it still compiled in my case.