{
Toolsets.Add (new Toolset ("2.0",
ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version20)));
-#if NET_3_5
Toolsets.Add (new Toolset ("3.0",
ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version30)));
Toolsets.Add (new Toolset ("3.5",
ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version35)));
-#endif
Toolsets.Add (new Toolset ("4.0",
ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version40)));
#if XBUILD_12
} else if (onErrorFound)
throw new InvalidProjectFileException (
"The element <OnError> must be last under element <Target>. Found element <Error> instead.");
-#if NET_3_5
else if (xe.Name == "ItemGroup") {
var group = new BuildTaskItemGroup (xe, this);
buildTasks.AddRange (group.Items);
buildTasks.Add (new BuildTaskPropertyGroup (xe, this));
continue;
}
-#endif
else
buildTasks.Add (new BuildTask (xe, this));
}
string profile = "net_4_5";
#elif NET_4_0
string profile = "net_4_0";
-#elif NET_3_5
- string profile = "net_3_5";
#else
string profile = "net_2_0";
#endif
return ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version45);
#elif NET_4_0
return ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version40);
-#elif NET_3_5
- return ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version35);
#else
return ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version20);
#endif
return " ToolsVersion='12.0'";
#elif NET_4_0
return " ToolsVersion='4.0'";
-#elif NET_3_5
- return " ToolsVersion='3.5'";
#else
return String.Empty;
#endif
return Path.Combine (BinPath, "Microsoft.Build.Tasks.v12.0.dll");
#elif NET_4_0
return Path.Combine (BinPath, "Microsoft.Build.Tasks.v4.0.dll");
-#elif NET_3_5
- return Path.Combine (BinPath, "Microsoft.Build.Tasks.v3.5.dll");
#else
return Path.Combine (BinPath, "Microsoft.Build.Tasks.dll");
#endif
}
}
-#if NET_3_5
bool Build (string projectXml, ILogger logger)
{
if (Environment.OSVersion.Platform == PlatformID.Win32NT) {
3, "COMPILE: input1a;input1b - output1", "COMPILE: input2a;input2b - output2");
}
- #endif
[Test]
public void TestTargetOutputsIncludingMetadata ()
string senderName;
int threadId;
DateTime timestamp;
-#if NET_3_5
BuildEventContext context;
-#endif
protected BuildEventArgs ()
: this (null, null, null)
this.senderName = senderName;
this.threadId = Thread.CurrentThread.GetHashCode ();
this.timestamp = eventTimestamp;
-#if NET_3_5
this.context = BuildEventContext.NewInstance ();
-#endif
}
public string HelpKeyword {
}
}
-#if NET_3_5
public BuildEventContext BuildEventContext {
get { return context; }
set {
context = value;
}
}
-#endif
}
}
}
}
-#if NET_3_5
public bool OverwriteReadOnlyFiles {
get {
return overwriteReadOnlyFiles;
overwriteReadOnlyFiles = value;
}
}
-#endif
[Required]
public ITaskItem[] SourceFiles {
set { include = value; }
}
-#if NET_3_5
public bool PreserveExistingMetadata {
get { return preserveExistingMetadata; }
set { preserveExistingMetadata = value; }
}
-#endif
}
}
}
}
-#if NET_3_5
[Output]
public string FrameworkVersion11Path {
get {
TargetDotNetFrameworkVersion.Version35);
}
}
-#endif
[Output]
public string FrameworkVersion40Path {
Assert.AreEqual (FileAttributes.Normal, File.GetAttributes (target_file), "A3");
}
-#if NET_3_5
[Test]
public void TestCopy_OverwriteReadOnlyTrue ()
{
File.SetAttributes (target_file, FileAttributes.Normal);
}
-#endif
void CheckCopyBuildItems (Project project, string [] source_files, string destination_folder, string prefix)
{
}
-#if NET_3_5 || NET_4_0
[Test]
public void TestItemsWithWildcards () {
Engine engine = new Engine (Consts.BinPath);
Directory.Delete (basedir, true);
}
}
-#endif
void CreateDirectoriesAndFiles (string basedir, string[] dirs, string[] files) {
foreach (string dir in dirs)
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#if NET_3_5
using System;
using System.Collections;
}
}
}
-#endif
{
Version11,
Version20,
-#if NET_3_5
Version30,
Version35,
-#endif
Version40,
Version45,
#if XBUILD_12
//Mono doesn't ship multiple versions of tools that are backwards/forwards compatible
if (!runningOnDotNet) {
-#if NET_3_5
//most of the 3.5 tools are in the 2.0 directory
if (version == TargetDotNetFrameworkVersion.Version35)
return GetPathToDotNetFrameworkFile (fileName, TargetDotNetFrameworkVersion.Version20);
-#endif
//unversioned tools are in the 4.5 directory
if (version == TargetDotNetFrameworkVersion.Version20)
return GetPathToDotNetFrameworkFile (fileName, (TargetDotNetFrameworkVersion)5);
[assembly: InternalsVisibleTo ("System.Design, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")]
[assembly: InternalsVisibleTo ("System.Web, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")]
-#if NET_3_5
// [assembly: InternalsVisibleTo ("System.Data.Entity, PublicKey=00000000000000000400000000000000")]
// [assembly: InternalsVisibleTo ("System.Data.DataSetExtensions, PublicKey=00000000000000000400000000000000")]
-#endif
[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
[assembly: ComCompatibleVersion (1, 0, 3300, 0)]
-#if NET_3_5
[assembly: InternalsVisibleTo ("System.Web.Extensions.Design, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]
-#endif
public void BindingCollections () {
ServiceModelSectionGroup g = GetConfig ("Test/config/test1.config");
List<BindingCollectionElement> coll = g.Bindings.BindingCollections;
-#if NET_3_5
Assert.AreEqual (20, coll.Count, "Count");
-#else
- Assert.AreEqual (16, coll.Count, "Count");
-#endif
}
[Test]
[assembly: AssemblyCompany (Consts.MonoCompany)]
[assembly: AssemblyProduct (Consts.MonoProduct)]
[assembly: AssemblyCopyright (Consts.MonoCopyright)]
-#if NET_3_5
[assembly: AssemblyVersion (Consts.FxVersion)]
-#else
- [assembly: AssemblyVersion ("1.0.61025.0")]
-#endif
[assembly: SatelliteContractVersion (Consts.FxVersion)]
[assembly: AssemblyInformationalVersion (Consts.FxFileVersion)]
[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
[assembly: AssemblyCompany (Consts.MonoCompany)]
[assembly: AssemblyProduct (Consts.MonoProduct)]
[assembly: AssemblyCopyright (Consts.MonoCopyright)]
-#if NET_3_5
[assembly: AssemblyVersion (Consts.FxVersion)]
[assembly: AssemblyInformationalVersion (Consts.FxFileVersion)]
-#else
- [assembly: AssemblyVersion ("1.0.61025.0")]
- [assembly: AssemblyInformationalVersion ("1.0.61025.0")]
-#endif
[assembly: SatelliteContractVersion (Consts.FxVersion)]
[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Net;
}
}
}
-#endif
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Collections.Specialized;
}
}
}
-#endif
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Specialized;
using System.ComponentModel;
}
}
}
-#endif
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Specialized;
using System.ComponentModel;
}
}
}
-#endif
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Specialized;
using System.ComponentModel;
}
}
}
-#endif
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Net;
ClientFormsAuthenticationCredentials GetCredentials ();
}
}
-#endif
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
}
}
}
-#endif
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Net;
}
}
}
-#endif
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Net;
}
}
}
-#endif
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Net;
}
}
}
-#endif
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Net;
}
}
}
-#endif
}
}
-#if NET_3_5
[ConfigurationPropertyAttribute ("maxJsonLength", DefaultValue = 2097152)]
-#else
- [ConfigurationPropertyAttribute ("maxJsonLength", DefaultValue = 102400)]
-#endif
public int MaxJsonLength {
get {
return (int) this ["maxJsonLength"];
}\r
\r
#endregion\r
-#if NET_3_5\r
void AppendResourceScriptContents (StringWriter sw, CompositeEntry entry)\r
{\r
if (entry.Assembly == null || entry.Attribute == null || String.IsNullOrEmpty (entry.NameOrPath))\r
if (notifyScriptLoaded)\r
OutputScriptLoadedNotification (response.Output);\r
}\r
-#endif\r
void OutputScriptLoadedNotification (TextWriter writer)\r
{\r
writer.WriteLine ();\r
{\r
HttpRequest request = context.Request;\r
bool notifyScriptLoaded = request.QueryString ["n"] == "t";\r
-#if NET_3_5\r
List <CompositeEntry> compositeEntries = CompositeScriptReference.GetCompositeScriptEntries (request.RawUrl);\r
if (compositeEntries != null) {\r
SendCompositeScript (context, request, notifyScriptLoaded, compositeEntries);\r
return;\r
}\r
-#endif\r
EmbeddedResource res;\r
Assembly assembly; \r
SendEmbeddedResource (context, out res, out assembly);\r
if (notifyScriptLoaded)\r
OutputScriptLoadedNotification (writer);\r
}\r
-#if NET_3_5\r
static void CheckIfResourceIsCompositeScript (string resourceName, ref bool includeTimeStamp)\r
{\r
bool isCompositeScript = resourceName.StartsWith (CompositeScriptReference.COMPOSITE_SCRIPT_REFERENCE_PREFIX, StringComparison.Ordinal);\r
{\r
return false;\r
}\r
-#endif\r
// TODO: add value cache?\r
static string GetScriptStringLiteral (string value)\r
{\r
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Security.Permissions;
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
}
}
}
-#endif
ScriptingJsonSerializationSection section = (ScriptingJsonSerializationSection) ConfigurationManager.GetSection ("system.web.extensions/scripting/webServices/jsonSerialization");
if (section == null) {
-#if NET_3_5
_maxJsonLength = 2097152;
-#else
- _maxJsonLength = 102400;
-#endif
_recursionLimit = 100;
} else {
_maxJsonLength = section.MaxJsonLength;
using System.IO;
using System.Xml.Serialization;
using System.Xml;
-#if NET_3_5
using System.ServiceModel;
using System.ServiceModel.Description;
-#endif
namespace System.Web.Script.Services
{
{
public static LogicalTypeInfo CreateTypeInfo (Type t, string filePath)
{
-#if NET_3_5
if (t.GetCustomAttributes (typeof (ServiceContractAttribute), false).Length > 0)
return new WcfLogicalTypeInfo (t, filePath);
else
-#endif
return new AsmxLogicalTypeInfo (t, filePath);
}
}
}
-#if NET_3_5
internal class WcfLogicalTypeInfo : LogicalTypeInfo
{
ContractDescription cd;
}
}
}
-#endif
}
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Security.Permissions;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Security.Permissions;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Specialized;
using System.ComponentModel;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections;
using System.ComponentModel;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Security.Permissions;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Security.Permissions;
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections;
using System.Collections.Specialized;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Security.Permissions;
using System.Web;
event EventHandler<PageEventArgs> TotalRowCountAvailable;
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
namespace System.Web.UI.WebControls
{
public enum InsertItemPosition
LastItem
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections;
using System.ComponentModel;
#endregion
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
public DataSourceOperation Operation { get; private set; }
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Generic;
using System.ComponentModel;
public object OriginalObject { get; private set; }
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Generic;
using System.ComponentModel;
public object ObjectInstance { get; private set; }
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Generic;
using System.ComponentModel;
public object NewObject { get; private set; }
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
public IDictionary<string, object> WhereParameters { get; private set; }
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Generic;
using System.ComponentModel;
public int TotalRowCount { get; private set; }
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
public object OriginalObject { get; private set; }
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Generic;
using System.ComponentModel;
public IDictionary<string, Exception> InnerExceptions { get; private set; }
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
// FIXME: in general we should create something like
// System.Web.Query,Dynamic.DynamicClass to execute DataContext operations.
#endregion
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections;
using System.Collections.Generic;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
namespace System.Web.UI.WebControls
{
public enum ListViewCancelMode
CancelingInsert
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
namespace System.Web.UI.WebControls
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Web;
using System.Web.UI;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
namespace System.Web.UI.WebControls
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Collections.Specialized;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Specialized;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Specialized;
using System.ComponentModel;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Specialized;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
namespace System.Web.UI.WebControls
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
namespace System.Web.UI.WebControls
{
public enum ListViewItemType
EmptyItem
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections;
using System.ComponentModel;
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Specialized;
using System.ComponentModel;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Specialized;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Security.Permissions;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Globalization;
using System.Security.Permissions;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Security.Permissions;
using System.Web;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
namespace System.Web.UI.WebControls
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.ComponentModel;
using System.Security.Permissions;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections;
using System.Collections.Concurrent;
}
}
}
-#endif
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections;
using System.Collections.Generic;
}
}
}
-#endif
const string hiddenField = "hiddenField";
const string arrayDeclaration = "arrayDeclaration";
const string scriptBlock = "scriptBlock";
-#if NET_3_5
const string scriptStartupBlock = "scriptStartupBlock";
-#endif
const string expando = "expando";
const string onSubmit = "onSubmit";
const string asyncPostBackControlIDs = "asyncPostBackControlIDs";
List<UpdatePanel> _panelsToRefresh;
List<UpdatePanel> _updatePanels;
ScriptReferenceCollection _scripts;
-#if NET_3_5
CompositeScriptReference _compositeScript;
-#endif
ServiceReferenceCollection _services;
bool _isInAsyncPostBack;
bool _isInPartialRendering;
return _scripts;
}
}
-#if NET_3_5
[PersistenceMode (PersistenceMode.InnerProperty)]
[Category ("Behavior")]
[DefaultValue (null)]
return _compositeScript;
}
}
-#endif
[PersistenceMode (PersistenceMode.InnerProperty)]
[DefaultValue ("")]
[MergableProperty (false)]
[Category ("Action")]
public event EventHandler<ScriptReferenceEventArgs> ResolveScriptReference;
-#if NET_3_5
[Category ("Action")]
public event EventHandler<CompositeScriptReferenceEventArgs> ResolveCompositeScriptReference;
-#endif
public static ScriptManager GetCurrent (Page page) {
if (page == null)
throw new ArgumentNullException ("page");
if (IsMultiForm)
RegisterScriptReference (this, ajaxWebFormsExtensionScript, true);
}
-#if NET_3_5
if (_compositeScript != null && _compositeScript.HaveScripts ()) {
OnResolveCompositeScriptReference (new CompositeScriptReferenceEventArgs (_compositeScript));
RegisterScriptReference (this, _compositeScript, true);
}
-#endif
// Register Scripts
if (_scriptToRegister != null)
for (int i = 0; i < _scriptToRegister.Count; i++)
}
}
}
-#if NET_3_5
protected virtual void OnResolveCompositeScriptReference (CompositeScriptReferenceEventArgs e)
{
EventHandler <CompositeScriptReferenceEventArgs> evt = ResolveCompositeScriptReference;
if (evt != null)
evt (this, e);
}
-#endif
protected virtual void OnResolveScriptReference (ScriptReferenceEventArgs e) {
if (ResolveScriptReference != null)
ResolveScriptReference (this, e);
else
WriteCallbackOutput (output, scriptBlock, scriptContentWithTags, SerializeScriptBlock (scriptEntry));
break;
-#if NET_3_5
case RegisteredScriptType.ClientStartupScript:
if (scriptEntry.AddScriptTags)
WriteCallbackOutput (output, scriptStartupBlock, scriptContentNoTags, scriptEntry.Script);
else
WriteCallbackOutput (output, scriptStartupBlock, scriptContentWithTags, SerializeScriptBlock (scriptEntry));
break;
-#endif
case RegisteredScriptType.ClientScriptInclude:
WriteCallbackOutput (output, scriptBlock, scriptPath, scriptEntry.Url);
break;
{
ScriptManager _scriptManager;
ScriptReferenceCollection _scripts;
-#if NET_3_5
CompositeScriptReference _compositeScript;
-#endif
ServiceReferenceCollection _services;
AuthenticationServiceManager _authenticationService;
ProfileServiceManager _profileService;
return _scripts;
}
}
-#if NET_3_5
[PersistenceMode (PersistenceMode.InnerProperty)]
[Category ("Behavior")]
[DefaultValue (null)]
return _compositeScript;
}
}
-#endif
[MergableProperty (false)]
[PersistenceMode (PersistenceMode.InnerProperty)]
[Category ("Behavior")]
[Category ("NotDotNet")]
public void TestDefaults () {
JavaScriptSerializer ser = new JavaScriptSerializer ();
-#if NET_3_5
Assert.AreEqual (2097152, ser.MaxJsonLength);
-#else
- Assert.AreEqual (102400, ser.MaxJsonLength);
-#endif
Assert.AreEqual (100, ser.RecursionLimit);
//List<JavaScriptConverter> l = new List<JavaScriptConverter> ();
//l.Add (new MyJavaScriptConverter ());
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Generic;
using System.Diagnostics;
}
}
-#endif
\ No newline at end of file
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Generic;
using System.Diagnostics;
}
}
}
-#endif
\ No newline at end of file
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections;
using System.Collections.Generic;
}
}
}
-#endif
\ No newline at end of file
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
}
}
}
-#endif
debug = resourceName.EndsWith (".debug.js", StringComparison.OrdinalIgnoreCase);
string dbgTail = debug ? "d" : String.Empty;
lookupKey = resourceNameHash + (notifyScriptLoaded ? "t" : "f") + dbgTail;
-#if NET_3_5
CheckIfResourceIsCompositeScript (resourceName, ref includeTimeStamp);
-#endif
#else
lookupKey = resourceNameHash;
#endif
HttpRuntimeClose = 12,
InitializationError = 13,
MaxRecompilationsReached = 14
-#if NET_3_5
, BuildManagerChange = 15
-#endif
}
}
namespace MonoTests.System.Web
{
[TestFixture]
-#if NET_3_0
[Ignore ("adapters.browser depends on System.Web_test_net_2_0.dll")]
-#endif
public class AppBrowsersTest
{
[TestFixtureSetUp]
return result.Response;
}
-#if NET_3_5
public Stream EndGetRequestStream (IAsyncResult asyncResult, out TransportContext transportContext)
{
transportContext = null;
return EndGetRequestStream (asyncResult);
}
-#endif
public override WebResponse GetResponse()
{
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_3_5
using System.Security.Authentication.ExtendedProtection;
}
}
-#endif