0

Using Visual Studio Express 2013 for Web

I am using System.IO.Packaging to edit a Word document using linq to xml.

After following instructions in this SO page System.IO.Packaging I added the reference to WindowsBase.dll.

All this works well and I get the desired results. When I try and publish to my web server though, during the compile I receive this error

The type or namespace name 'Packaging' does not exist in the namespace 'System.IO' Are you missing an assembly reference?

Thanks

Community
  • 1
  • 1
StripyTiger
  • 877
  • 1
  • 14
  • 31

1 Answers1

0

Mark the WindowsBase reference as Copy Local and it will be included in the package/deploy

Richard Szalay
  • 83,269
  • 19
  • 178
  • 237
  • 1
    you mean `CopyLocal=true` maybe you should explain that more perhaps the OP isn't aware that you `Click on the References-->Packaging.Dll` then in the properties window set the `CopyLocal=false, change that to true` – MethodMan Dec 01 '15 at 22:31
  • Thanks for your comments, but I cannot see the references in the solution explorer. If I open Project Properties, I can see the Windowsbase.dll reference, but I cannot open any properties. Could this be an Express limitation? – StripyTiger Dec 01 '15 at 22:39
  • @pbs Right click on the reference and select properties, from there change "Copy Local" to true – Richard Szalay Dec 02 '15 at 08:25