• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ProjectInfo类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ProjectInfo的典型用法代码示例。如果您正苦于以下问题:C# ProjectInfo类的具体用法?C# ProjectInfo怎么用?C# ProjectInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ProjectInfo类属于命名空间,在下文中一共展示了ProjectInfo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: PropertiesForm

		public PropertiesForm(ProfilerProjectMode mode)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
			projectMode = ProfilerProjectMode.CreateProject;

			project = new ProjectInfo( ProjectType.File );
			this.Mode = mode;
			if (mode == ProfilerProjectMode.CreateProject)
			{
				List<string> files=SerializationHandler.GetRecentlyUsed();
				foreach (string file in files.GetRange(0,Math.Min(files.Count,5)))
				{
					LinkLabel label=new LinkLabel();
					label.AutoSize = true;
					label.Text=file;
					label.Click += delegate
					{
						ProfilerForm.form.Project = SerializationHandler.OpenProjectInfo(label.Text);
						Close();
					};
					recentProjects.Controls.Add(label);

				}
			}
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:32,代码来源:OptionsForm.cs


示例2: ProjectMetadata

 public ProjectMetadata(ProjectInfo projectInfo)
 {
     if (projectInfo == null)
         throw new ArgumentNullException("projectInfo");
     m_projectInfo = projectInfo;
     Init();
 }
开发者ID:MishaUliutin,项目名称:RemoveUnusedRef,代码行数:7,代码来源:ProjectMetadata.cs


示例3: GetProjectInfo

 public ProjectInfo GetProjectInfo()
 {
     var referenceProjectItems =
         from item in m_project.Items
         where item is ReferenceProjectItem
         select item as ReferenceProjectItem;
     var references =
         new List<ProjectReference>(referenceProjectItems.Count());
     referenceProjectItems.
         ForEach(item => references.Add(
             new ProjectReference
             {
                 Aliases = item.Aliases,
                 Name = item.Name,
                 Location = item.FileName,
                 Version = item.Version,
                 Culture = item.Culture,
                 PublicKeyToken = item.PublicKeyToken
             }));
     var projectInfo = new ProjectInfo
     {
         Name = m_project.Name,
         Configuration = m_project.ActiveConfiguration,
         Platform = m_project.ActivePlatform,
         OutputAssemblyPath = m_project.OutputAssemblyFullPath,
         Type = Guid.Parse(m_project.TypeGuid),
         References = references
     };
     return projectInfo;
 }
开发者ID:MishaUliutin,项目名称:RemoveUnusedRef,代码行数:30,代码来源:ShellProxy.cs


示例4: CreateUnusedReferencesList

 private IList<ProjectReference> CreateUnusedReferencesList(ProjectInfo projectInfo)
 {
     var references =
         from item in projectInfo.References
         where !item.Name.Equals(MsCorLib, StringComparison.InvariantCultureIgnoreCase) &&
             !item.Name.Equals(SystemCore, StringComparison.InvariantCultureIgnoreCase)
         select item;
     return references.ToList();
 }
开发者ID:MishaUliutin,项目名称:RemoveUnusedRef,代码行数:9,代码来源:UnusedReferencesAudit.cs


示例5: ProjectProvider

		public ProjectProvider (ProjectInfo pinfo) : base (null) {
			AddTarget ("name", pinfo.Name);
			AddTarget ("version", pinfo.Version);
			AddTarget ("compat_code", pinfo.CompatCode);

			// Alias to line up better with how it's declared
			// in the buildfile. (Need the underscore version so
			// we can reference it in .bundles)

			AddTarget ("compat-code", pinfo.CompatCode);
		}
开发者ID:emtees,项目名称:old-code,代码行数:11,代码来源:ProjectProvider.cs


示例6: Create

 public static ProjectAssemblyResolver Create(ProjectInfo projectInfo)
 {
     if (projectInfo == null)
         throw new ArgumentNullException("projectInfo");
     var assemblyResolver = new ProjectAssemblyResolver(projectInfo);
     assemblyResolver.AddSearchDirectory(Path.GetDirectoryName(projectInfo.OutputAssemblyPath));
     //assemblyResolver.AddSearchDirectory(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
     foreach (var path in GetLocations(projectInfo.References))
     {
         assemblyResolver.AddSearchDirectory(path);
     }
     return assemblyResolver;
 }
开发者ID:MishaUliutin,项目名称:RemoveUnusedRef,代码行数:13,代码来源:ProjectAssemblyResolver.cs


示例7: ProjectInfo_Serialization_InvalidFileName

        public void ProjectInfo_Serialization_InvalidFileName()
        {
            // 0. Setup
            ProjectInfo pi = new ProjectInfo();

            // 1a. Missing file name - save
            AssertException.Expects<ArgumentNullException>(() => pi.Save(null));
            AssertException.Expects<ArgumentNullException>(() => pi.Save(string.Empty));
            AssertException.Expects<ArgumentNullException>(() => pi.Save("\r\t "));

            // 1b. Missing file name - load
            AssertException.Expects<ArgumentNullException>(() => ProjectInfo.Load(null));
            AssertException.Expects<ArgumentNullException>(() => ProjectInfo.Load(string.Empty));
            AssertException.Expects<ArgumentNullException>(() => ProjectInfo.Load("\r\t "));
        }
开发者ID:BrightLight,项目名称:sonar-msbuild-runner,代码行数:15,代码来源:ProjectInfoTests.cs


示例8: Create

 public static UnusedReferencesAudit Create(ProjectInfo projectInfo)
 {
     if (projectInfo == null)
         throw new ArgumentNullException("projectInfo");
     switch (projectInfo.Type.ToString("D"))
     {
         case CSharpProjectTypeString:
             return new CSharpProjectAudit(projectInfo);
         case VBasicProjectTypeString:
             return new VBasicProjectAudit(projectInfo);
         case CppCliProjectTypeString:
             return new CppCliProjectAudit(projectInfo);
         default:
             throw new NotImplementedException();
     }
 }
开发者ID:MishaUliutin,项目名称:RemoveUnusedRef,代码行数:16,代码来源:UnusedReferencesAuditFactory.cs


示例9: getValue

 public static List<ProjectInfo> getValue(string sql)
 {
     List<ProjectInfo> list = new List<ProjectInfo>();
     OleDbDataReader odr = DBHelper.GetReader(sql);
     while (odr.Read())
     {
         ProjectInfo pi = new ProjectInfo();
         pi.ProjectID = Convert.ToInt32(odr["ProjectID"]);
         pi.ProjectName = odr["ProjectName"].ToString();
         pi.Province = odr["Province"].ToString();
         pi.Remarks = odr["remarks"].ToString();
         list.Add(pi);
     }
     odr.Close();
     return list;
 }
开发者ID:aifang,项目名称:ExceptionsCollectionSystem,代码行数:16,代码来源:ProjectService.cs


示例10: NemerleContainedLanguage

        public NemerleContainedLanguage(IVsTextBufferCoordinator bufferCoordinator, NemerleIntellisenseProvider intellisenseProject, uint itemId, IVsHierarchy pHierarchy)
        {
            if (null == bufferCoordinator)
            {
                throw new ArgumentNullException("bufferCoordinator");
            }
            if (null == intellisenseProject)
            {
                throw new ArgumentNullException("intellisenseProject");
            }
            _hierarchy = pHierarchy;

            object projectItem = null;
            pHierarchy.GetProperty(itemId, (int)__VSHPROPID.VSHPROPID_ExtObject, out projectItem);

            _projectItem = projectItem as EnvDTE.ProjectItem;

            EnvDTE.Property prop = _projectItem.Properties.Item("FullPath");
            if (prop != null)
                _filePath = prop.Value as string;

            var project = _projectItem.ContainingProject as NemerleOAProject;
            if(project != null)
            {
                _projectInfo = ((NemerleProjectNode)project.Project).ProjectInfo;
            }

            _typeResolutionService = null;
            DynamicTypeService typeService = LanguageService.GetService(typeof(DynamicTypeService)) as DynamicTypeService;
            if (typeService != null)
                _typeResolutionService = typeService.GetTypeResolutionService(this._hierarchy);

            this.bufferCoordinator = bufferCoordinator;
            this.intellisenseProject = intellisenseProject;
            this.itemId = itemId;

            // Make sure that the secondary buffer uses the IronPython language service.
            IVsTextLines buffer;
            ErrorHandler.ThrowOnFailure(bufferCoordinator.GetSecondaryBuffer(out buffer));

            Guid languageGuid;
            this.GetLanguageServiceID(out languageGuid);
            ErrorHandler.ThrowOnFailure(buffer.SetLanguageServiceID(ref languageGuid));

            _documentClosingEventHandler = new _dispDocumentEvents_DocumentClosingEventHandler(OnDocumentClosing);
        }
开发者ID:vestild,项目名称:nemerle,代码行数:46,代码来源:NemerleContainedLanguage.cs


示例11: ProjectInfo_Serialization_SaveAndReload

        public void ProjectInfo_Serialization_SaveAndReload()
        {
            // 0. Setup
            string testFolder = TestUtils.CreateTestSpecificFolder(this.TestContext);

            Guid projectGuid = Guid.NewGuid();

            ProjectInfo originalProjectInfo = new ProjectInfo();
            originalProjectInfo.FullPath = "c:\\fullPath\\project.proj";
            originalProjectInfo.ProjectLanguage = "a language";
            originalProjectInfo.ProjectType = ProjectType.Product;
            originalProjectInfo.ProjectGuid = projectGuid;
            originalProjectInfo.ProjectName = "MyProject";

            string fileName = Path.Combine(testFolder, "ProjectInfo1.xml");

            SaveAndReloadProjectInfo(originalProjectInfo, fileName);
        }
开发者ID:BrightLight,项目名称:sonar-msbuild-runner,代码行数:18,代码来源:ProjectInfoTests.cs


示例12: Open

        public static void Open(ProjectInfo project)
        {
            foreach (var view in IdeApp.Workbench.Documents)
            {
                var sourceDoc = view.GetContent<SourceControlExplorerView>();
                if (sourceDoc != null)
                {
                    sourceDoc.Load(project.Collection);
                    sourceDoc.ExpandPath(VersionControlPath.RootFolder + project.Name);
                    view.Window.SelectWindow();
                    return;
                }
            }

            var sourceControlExplorerView = new SourceControlExplorerView();
            sourceControlExplorerView.Load(project.Collection);
            sourceControlExplorerView.ExpandPath(VersionControlPath.RootFolder + project.Name);
            IdeApp.Workbench.OpenDocument(sourceControlExplorerView, true);
        }
开发者ID:Indomitable,项目名称:monodevelop-tfs-addin,代码行数:19,代码来源:SourceControlExplorerView.cs


示例13: GetResult

			public override object GetResult(out int level)
			{
				level = 1;
				ProjectInfo project = new ProjectInfo();
				NProf.form.Project = project;
				Profiler profiler = new Profiler();
				//project.ApplicationName = @"D:\Meta\0.2\bin\Debug\Meta.exe";
				//project.Arguments = "-test";
				project.ApplicationName = Path.Combine(NProfDirectory, @"TestProfilee\bin\Debug\TestProfilee.exe");

				run = project.CreateRun(profiler);
				run.profiler.Completed += new EventHandler(profiler_Completed);
				run.Start();

				while (result == null)
				{
					Thread.Sleep(100);
				}
				return result;
			}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:20,代码来源:Test.cs


示例14: AddProject

        public ActionResult AddProject( [DataSourceRequest] DataSourceRequest request,ProjectInfoModel model)
        {
            ProjectInfo project = new ProjectInfo();
            var getSatusId = _projects.GetstatusName(model.StatusName);
            if(ModelState.IsValid)
            {
                project.Id = model.Id;
                project.PM = model.PM;
                project.Project = model.Project;
                project.ProjectComment = model.ProjectComment;
                project.statusId = getSatusId.Id;
                project.percentage = model.percentage;
                _projects.CreateProjects(project);
                TempData["success"] = "Edited Succefully";
            }
            else
            {
                TempData["fail"] = " Not Edited Succefully";
            }

            return RedirectToAction("ProjectOnDisplay", "AdminProject");
        }
开发者ID:Oluyide,项目名称:ABUFORM,代码行数:22,代码来源:AdminProjectController.cs


示例15: NemerleErrorTask

        public NemerleErrorTask(ProjectInfo projectInfo, CompilerMessage compilerMessage)
        {
            ErrorHelper.ThrowIsNull(projectInfo,     "projectInfo");
            ErrorHelper.ThrowIsNull(compilerMessage, "compilerMessage");

            ProjectInfo     = projectInfo;
            CompilerMessage = compilerMessage;

            var loc = compilerMessage.Location;

            if (loc.FileIndex != 0)
            {
                var span = Utils.SpanFromLocation(loc);
                Document = loc.File;
                Line     = span.iStartLine;
                Column   = span.iStartIndex;
            }

            Text = compilerMessage.Msg;

            switch (compilerMessage.Kind)
            {
                case MessageKind.Error:
                    Priority = TaskPriority.High;
                    ErrorCategory = TaskErrorCategory.Error;
                    break;
                case MessageKind.Warning:
                    Priority = TaskPriority.Normal;
                    ErrorCategory = TaskErrorCategory.Warning;
                    break;
                default:
                    Priority = TaskPriority.Low;
                    ErrorCategory = TaskErrorCategory.Message;
                    break;
            }

            Category = TaskCategory.BuildCompile;
            HierarchyItem = projectInfo.ProjectNode.InteropSafeHierarchy;
        }
开发者ID:vestild,项目名称:nemerle,代码行数:39,代码来源:NemerleErrorTask.cs


示例16: ProjectInfo_Serialization_AnalysisResults

        public void ProjectInfo_Serialization_AnalysisResults()
        {
            // 0. Setup
            string testFolder = TestUtils.CreateTestSpecificFolder(this.TestContext);

            Guid projectGuid = Guid.NewGuid();

            ProjectInfo originalProjectInfo = new ProjectInfo();
            originalProjectInfo.ProjectGuid = projectGuid;

            // 1. Null list
            SaveAndReloadProjectInfo(originalProjectInfo, Path.Combine(testFolder, "ProjectInfo_AnalysisResults1.xml"));

            // 2. Empty list
            originalProjectInfo.AnalysisResults = new List<AnalysisResult>();
            SaveAndReloadProjectInfo(originalProjectInfo, Path.Combine(testFolder, "ProjectInfo_AnalysisResults2.xml"));

            // 3. Non-empty list
            originalProjectInfo.AnalysisResults.Add(new AnalysisResult() { Id = string.Empty, Location = string.Empty }); // empty item
            originalProjectInfo.AnalysisResults.Add(new AnalysisResult() { Id = "Id1", Location = "location1" });
            originalProjectInfo.AnalysisResults.Add(new AnalysisResult() { Id = "Id2", Location = "location2" });
            SaveAndReloadProjectInfo(originalProjectInfo, Path.Combine(testFolder, "ProjectInfo_AnalysisResults3.xml"));
        }
开发者ID:BrightLight,项目名称:sonar-msbuild-runner,代码行数:23,代码来源:ProjectInfoTests.cs


示例17: LoadData

    /// <summary>
    /// Load data.
    /// </summary>
    public void LoadData()
    {
        process = true;
        if (!Visible || StopProcessing)
        {
            EnableViewState = false;
            process = false;
        }

        IsLiveSite = false;

        if (ProjectID > 0)
        {
            // Get information on current project
            project = ProjectInfoProvider.GetProjectInfo(ProjectID);
        }

        // Get project resource
        resProjects = ResourceInfoProvider.GetResourceInfo("CMS.ProjectManagement");

        if ((resProjects != null) && (project != null))
        {
            QueryDataParameters parameters = new QueryDataParameters();
            parameters.Add("@ID", resProjects.ResourceId);
            parameters.Add("@ProjectID", project.ProjectID);
            parameters.Add("@SiteID", CMSContext.CurrentSiteID);

            string where = "";
            int groupId = project.ProjectGroupID;

            // Build where condition
            if (groupId > 0)
            {
                where = "RoleGroupID=" + groupId.ToString() + " AND PermissionDisplayInMatrix = 0";
            }
            else
            {
                where = "RoleGroupID IS NULL AND PermissionDisplayInMatrix = 0";
            }

            // Setup matrix control
            gridMatrix.IsLiveSite = IsLiveSite;
            gridMatrix.QueryParameters = parameters;
            gridMatrix.WhereCondition = where;
            gridMatrix.ContentBefore = "<table class=\"PermissionMatrix\" cellspacing=\"0\" cellpadding=\"0\" rules=\"rows\" border=\"1\" style=\"border-collapse:collapse;\">";
            gridMatrix.ContentAfter = "</table>";
        }
    }
开发者ID:hollycooper,项目名称:Sportscar-Standings,代码行数:51,代码来源:Security.ascx.cs


示例18: Save

    /// <summary>
    /// Saves control with actual data.
    /// </summary>
    public bool Save()
    {
        if (!CheckPermissions("CMS.ProjectManagement", PERMISSION_MANAGE))
        {
            return false;
        }

        // Validate the form
        if (Validate())
        {
            // Indicates whether project is new
            bool isNew = false;

            int progress = 0;

            // Ensure the info object
            if (ProjectObj == null)
            {
                // New project

                ProjectInfo pi = new ProjectInfo();
                // First initialization of the Access property - allow authenticated users
                pi.ProjectAccess = 1222;
                pi.ProjectCreatedByID = CMSContext.CurrentUser.UserID;

                pi.ProjectOwner = 0;

                if (CommunityGroupID != 0)
                {
                    pi.ProjectGroupID = CommunityGroupID;
                    // Set default access to the group
                    pi.ProjectAccess = 3333;
                }

                mProjectObj = pi;
                isNew = true;
            }
            else
            {
                // Existing project

                // Reset ProjectOrder if checkbox was unchecked
                if ((ProjectObj.ProjectAllowOrdering)
                    && (!chkProjectAllowOrdering.Checked))
                {
                    ProjectInfoProvider.ResetProjectOrder(ProjectObj.ProjectID);
                }

                // Clear the hashtables if the codename has been changed
                if ((ProjectObj.ProjectGroupID > 0)
                    && ProjectObj.ProjectName != txtProjectName.Text)
                {
                    ProjectInfoProvider.Clear(true);
                }

                progress = ProjectInfoProvider.GetProjectProgress(ProjectObj.ProjectID);
            }

            ltrProjectProgress.Text = ProjectTaskInfoProvider.GenerateProgressHtml(progress, true);

            // Initialize object
            ProjectObj.ProjectSiteID = CMSContext.CurrentSiteID;

            if (DisplayMode == ControlDisplayModeEnum.Simple)
            {
                if (isNew)
                {
                    ProjectObj.ProjectName = ValidationHelper.GetCodeName(txtProjectDisplayName.Text, 50) + ((CommunityGroupID > 0) ? "_group_" : "_general_") + CodenameGUID;
                }
            }
            else
            {
                ProjectObj.ProjectName = txtProjectName.Text.Trim();
            }
            ProjectObj.ProjectDisplayName = txtProjectDisplayName.Text.Trim();
            ProjectObj.ProjectDescription = txtProjectDescription.Text.Trim();
            ProjectObj.ProjectStartDate = dtpProjectStartDate.SelectedDateTime;
            ProjectObj.ProjectDeadline = dtpProjectDeadline.SelectedDateTime;
            ProjectObj.ProjectOwner = ValidationHelper.GetInteger(userSelector.UniSelector.Value, 0);
            ProjectObj.ProjectStatusID = ValidationHelper.GetInteger(drpProjectStatus.SelectedValue, 0);
            ProjectObj.ProjectAllowOrdering = chkProjectAllowOrdering.Checked;

            // Set ProjectNodeID
            if (!ShowPageSelector)
            {
                // Set current node id for new project
                if (isNew && (CMSContext.CurrentDocument != null))
                {
                    ProjectObj.ProjectNodeID = CMSContext.CurrentDocument.NodeID;
                }
            }
            else
            {
                TreeProvider treeProvider = new TreeProvider();
                TreeNode node = treeProvider.SelectSingleNode(ValidationHelper.GetGuid(pageSelector.Value, Guid.Empty), TreeProvider.ALL_CULTURES, CMSContext.CurrentSiteName);
                if (node != null)
                {
//.........这里部分代码省略.........
开发者ID:hollycooper,项目名称:Sportscar-Standings,代码行数:101,代码来源:Edit.ascx.cs


示例19: CreateIFCAddress

        /// <summary>
        /// Creates the IfcPostalAddress, and assigns it to the file.
        /// </summary>
        /// <param name="file">The IFC file.</param>
        /// <param name="address">The address string.</param>
        /// <param name="town">The town string.</param>
        /// <returns>The handle of IFC file.</returns>
        private IFCAnyHandle CreateIFCAddress(IFCFile file, Document document, ProjectInfo projInfo)
        {
            IFCAnyHandle postalAddress = null;
            postalAddress = CreateIFCAddressFromExtStorage(file, document);
            if (postalAddress != null)
                return postalAddress;

            string projectAddress = projInfo != null ? projInfo.Address : String.Empty;
            SiteLocation siteLoc = document.ActiveProjectLocation.SiteLocation;
            string location = siteLoc != null ? siteLoc.PlaceName : String.Empty;

            if (projectAddress == null)
                projectAddress = String.Empty;
            if (location == null)
                location = String.Empty;

            List<string> parsedAddress = new List<string>();
            string city = String.Empty;
            string state = String.Empty;
            string postCode = String.Empty;
            string country = String.Empty;

            string parsedTown = location;
            int commaLoc = -1;
            do
            {
                commaLoc = parsedTown.IndexOf(',');
                if (commaLoc >= 0)
                {
                    if (commaLoc > 0)
                        parsedAddress.Add(parsedTown.Substring(0, commaLoc));
                    parsedTown = parsedTown.Substring(commaLoc + 1).TrimStart(' ');
                }
                else if (!String.IsNullOrEmpty(parsedTown))
                    parsedAddress.Add(parsedTown);
            } while (commaLoc >= 0);

            int numLines = parsedAddress.Count;
            if (numLines > 0)
            {
                country = parsedAddress[numLines - 1];
                numLines--;
            }

            if (numLines > 0)
            {
                int spaceLoc = parsedAddress[numLines - 1].IndexOf(' ');
                if (spaceLoc > 0)
                {
                    state = parsedAddress[numLines - 1].Substring(0, spaceLoc);
                    postCode = parsedAddress[numLines - 1].Substring(spaceLoc + 1);
                }
                else
                    state = parsedAddress[numLines - 1];
                numLines--;
            }

            if (numLines > 0)
            {
                city = parsedAddress[numLines - 1];
                numLines--;
            }

            List<string> addressLines = new List<string>();
            if (!String.IsNullOrEmpty(projectAddress))
                addressLines.Add(projectAddress);

            for (int ii = 0; ii < numLines; ii++)
            {
                addressLines.Add(parsedAddress[ii]);
            }

            postalAddress = IFCInstanceExporter.CreatePostalAddress(file, null, null, null,
               null, addressLines, null, city, state, postCode, country);

            return postalAddress;
        }
开发者ID:whztt07,项目名称:RevitIFC,代码行数:84,代码来源:Exporter.cs


示例20: DumpNetModule

        static void DumpNetModule(ProjectInfo info, List<ProjectInfo> projectFiles)
        {
            var fileName = info.AssemblyFileName;
            if (string.IsNullOrEmpty(fileName))
                throw new Exception(".NET module filename is empty or null");

            var asmList = new AssemblyList("dnspc.exe", false);
            asmList.UseGAC = !noGac;
            asmList.AddSearchPath(Path.GetDirectoryName(fileName));
            foreach (var path in asmPaths)
                asmList.AddSearchPath(path);
            var lasm = new LoadedAssembly(asmList, fileName);
            var opts = new DecompilationOptions {
                FullDecompilation = true,
                CancellationToken = new CancellationToken(),
            };

            TextWriter writer = null;
            try {
                var lang = GetLanguage();

                if (useStdout)
                    writer = System.Console.Out;
                else {
                    var baseDir = GetProjectDir(lang, fileName);
                    Directory.CreateDirectory(baseDir);
                    writer = new StreamWriter(info.ProjectFileName, false, Encoding.UTF8);
                    opts.SaveAsProjectDirectory = baseDir;
                    opts.DontReferenceStdLib = noCorlibRef;
                    opts.ProjectFiles = projectFiles;
                    opts.ProjectGuid = info.ProjectGuid;
                    opts.DontShowCreateMethodBodyExceptions = dontMaskErr;
                    Console.WriteLine("Saving {0} to {1}", fileName, baseDir);
                }

                lang.DecompileAssembly(lasm, new PlainTextOutput(writer), opts);
            }
            finally {
                if (!useStdout && writer != null)
                    writer.Dispose();
            }
        }
开发者ID:BahNahNah,项目名称:dnSpy,代码行数:42,代码来源:Program.cs



注:本文中的ProjectInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ProjectItem类代码示例发布时间:2022-05-24
下一篇:
C# ProjectId类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap