Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Can't use System.Transactions

$
0
0

I'd like to use TransactionScope in a class library, so I added a reference to System.Transactions, but my "using System.Transactions" gives me:

The type or namespace name 'Transactions' does not exist in the namespace 'System' (are you missing an assembly reference?)

I read that I need to change its Copy Local to True, but that didn't help.

I tried adding a new class to my class library, and simply referenced System.Transactions, I took out the references from my other C# file, and the project built fine this time.  So, are there .NET libraries which, when you reference them, prevent referencing System.Transactions???



Viewing all articles
Browse latest Browse all 8156


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>