File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 2121 <OutputName >mscorlib</OutputName >
2222 <IsCoreAssembly >true</IsCoreAssembly >
2323 <IsMscorlib >true</IsMscorlib >
24+ <DefineConstants >$(DefineConstants);NANOCLR_APPDOMAINS</DefineConstants >
2425 <TargetFrameworkVersion >v1.0</TargetFrameworkVersion >
2526 <DocumentationFile >bin\$(Configuration)\mscorlib.xml</DocumentationFile >
2627 </PropertyGroup >
Original file line number Diff line number Diff line change 44// See LICENSE file in the project root for full license information.
55//
66
7+ ///////////////////////////////////////////////////
8+ // DEV NOTE: to enable the AppDomain API add //
9+ // 'NANOCLR_APPDOMAINS' to the compile constants //
10+ ///////////////////////////////////////////////////
11+ #if ( NANOCLR_APPDOMAINS )
12+
713using System . Reflection ;
814using System . Threading ;
915using System . Runtime . CompilerServices ;
@@ -113,3 +119,4 @@ public Assembly Load(String assemblyString)
113119 public static extern void Unload ( AppDomain domain ) ;
114120 }
115121}
122+ #endif // #if (NANOCLR_APPDOMAINS)
Original file line number Diff line number Diff line change @@ -168,11 +168,16 @@ public extern ThreadState ThreadState
168168 get ;
169169 }
170170
171+ #if ( NANOCLR_APPDOMAINS )
172+
171173 /// <summary>
172174 /// Returns the current domain in which the current thread is running.
173175 /// </summary>
174176 /// <returns>An AppDomain representing the current application domain of the running thread.</returns>
175177 [ MethodImpl ( MethodImplOptions . InternalCall ) ]
176178 public static extern AppDomain GetDomain ( ) ;
179+
180+ #endif // #if (NANOCLR_APPDOMAINS)
181+
177182 }
178183}
You can’t perform that action at this time.
0 commit comments