Hello,
Thanks for your posting.
From your description, I know that you found the DefaultCachePolicy property of WebRequest was not recognized in visual studio 2013 preview.
I just tested this in Visual studio 2013 preview and it works fine on my end. Here is what I did for your reference:
- Create a simple console application.
- Added the following references: System.Net and System.Net.Cache.
- Using the following namespaces and check the DefaultCachePolicy property.
using System.Net ;
using System.Net.Cache;
…
WebRequest.DefaultCachePolicy = new RequestCachePolicy();
…
Please try above steps and let me know if it works for you.
Hope these help.
Lilia Gong <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.