Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Compilation / NonBatchDirectoryCompiler.cs / 1 / NonBatchDirectoryCompiler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Compilation { using System; using System.IO; using System.Collections; using System.Reflection; using System.Configuration; using System.Web.Hosting; using System.Web.Util; using System.Web.Caching; using System.Web.UI; using System.Web.Configuration; /* * This class makes sure that every file in a directory is compiled individually (i.e. it * doesn't use batching. Also, the assemblies get stable names. */ internal class NonBatchDirectoryCompiler { // Theconfig section for the set of build providers that we handle private CompilationSection _compConfig; private VirtualDirectory _vdir; internal NonBatchDirectoryCompiler(VirtualDirectory vdir) { _vdir = vdir; _compConfig = RuntimeConfig.GetConfig(_vdir.VirtualPath).Compilation; } internal void Process() { foreach (VirtualFile vfile in _vdir.Files) { string extension = UrlPath.GetExtension(vfile.VirtualPath); // Skip any file for which we can't get a BuildProvider type, as it is not // compilable. Type buildProviderType = CompilationUtil.GetBuildProviderTypeFromExtension(_compConfig, extension, BuildProviderAppliesTo.Web, false /*failIfUnknown*/); if (buildProviderType == null) continue; // If it's a source file, skip it. We need to do this for v1 compatibility, // since v1 VS projects contain many source files which have already been // precompiled into bin, and that should not be compiled dynamically if (buildProviderType == typeof(SourceFileBuildProvider)) continue; // For the same reason, skip resources if (buildProviderType == typeof(ResXBuildProvider)) continue; // Call GetVPathBuildResult to cause the file to be compiled. We ignore the // return value. BuildManager.GetVPathBuildResult(vfile.VirtualPathObject); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EnumBuilder.cs
- AuthStoreRoleProvider.cs
- ComponentManagerBroker.cs
- NavigationProperty.cs
- ResourceReferenceKeyNotFoundException.cs
- MessageQueueEnumerator.cs
- ItemAutomationPeer.cs
- CodeArrayIndexerExpression.cs
- ImageListUtils.cs
- SignHashRequest.cs
- Matrix3D.cs
- OrderedDictionaryStateHelper.cs
- PrePrepareMethodAttribute.cs
- mediaeventshelper.cs
- SQLMoneyStorage.cs
- UpdatePanel.cs
- FreezableCollection.cs
- SynchronizationContextHelper.cs
- ThreadAbortException.cs
- ListContractAdapter.cs
- Point3D.cs
- NamedPipeHostedTransportConfiguration.cs
- WorkItem.cs
- _RequestCacheProtocol.cs
- ClientTargetSection.cs
- WriteableBitmap.cs
- ManagedIStream.cs
- FixedHyperLink.cs
- ThicknessAnimationUsingKeyFrames.cs
- FullTextState.cs
- ThreadLocal.cs
- SystemFonts.cs
- FillErrorEventArgs.cs
- CellPartitioner.cs
- AttributeUsageAttribute.cs
- GlobalProxySelection.cs
- EarlyBoundInfo.cs
- ServicePointManager.cs
- ReceiveReply.cs
- XmlParserContext.cs
- PreservationFileWriter.cs
- XmlEnumAttribute.cs
- SmiEventStream.cs
- HtmlAnchor.cs
- ToolStripGripRenderEventArgs.cs
- WebRequestModulesSection.cs
- ConsumerConnectionPointCollection.cs
- DataGridViewLinkColumn.cs
- UrlPropertyAttribute.cs
- DelegateArgumentValue.cs
- CreateRefExpr.cs
- _OSSOCK.cs
- ComplexTypeEmitter.cs
- DomNameTable.cs
- InkCanvasSelection.cs
- DecoderFallbackWithFailureFlag.cs
- documentsequencetextview.cs
- Permission.cs
- LinqDataSourceDisposeEventArgs.cs
- DesignerLabelAdapter.cs
- SocketException.cs
- StrongTypingException.cs
- UpdateTranslator.cs
- SynchronizationContext.cs
- SecurityManager.cs
- IfAction.cs
- ObjectDataSource.cs
- Size3D.cs
- DataGridViewLayoutData.cs
- ModulesEntry.cs
- BreadCrumbTextConverter.cs
- DesignerSelectionListAdapter.cs
- ImportCatalogPart.cs
- _UriSyntax.cs
- SqlAliaser.cs
- GroupBoxRenderer.cs
- DataGridTable.cs
- TextBoxBase.cs
- Input.cs
- CustomWebEventKey.cs
- WebPartDisplayModeCancelEventArgs.cs
- RemotingConfigParser.cs
- DoubleAnimationBase.cs
- XhtmlBasicLabelAdapter.cs
- BeginStoryboard.cs
- ProjectionPlanCompiler.cs
- DtrList.cs
- TemplateComponentConnector.cs
- SerializationSectionGroup.cs
- UIElementCollection.cs
- OutputBuffer.cs
- SizeF.cs
- TraceHandler.cs
- PropertyRecord.cs
- RegistrySecurity.cs
- PrimitiveType.cs
- SiteMap.cs
- UserControlParser.cs
- WorkflowInstanceAbortedRecord.cs
- ResXBuildProvider.cs