We're working with a Web Site project and trying to reference System.Data.DataSetExtensions
. (Using a Web Application would be better; the technical lead, though, has her reasons.)
Here is what we have tried:
- Find the assembly path.
- Open a Visual Studio Command Prompt and run
sn.exe -T "full\path.dll"
- Add the following to the web.config based on the Public key token.
web.config > system.web >
<compilation debug="true" targetFramework="4.0">
<assemblies>
<!-- Other assemblied omitted -->
<add assembly="System.Data.DataSetExtensions,
Version=4.0.0.0,
Culture=neutral,
PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
The full path is C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll
Despite this, msbuild still complains when we add using System.Data.DataSetExtensions
to a code behind file. What gives? How do we solve this?