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

C# Project.MSBuildBasedProject类代码示例

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

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



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

示例1: OpenCoverSettingsFileName

		public void OpenCoverSettingsFileName()
		{
			MSBuildBasedProject project = new MSBuildBasedProject(
				new ProjectCreateInformation(MockSolution.Create(), new FileName(@"C:\temp\test.csproj")));
			
			Assert.AreEqual(@"C:\temp\test.OpenCover.Settings", OpenCoverSettings.GetFileName(project));
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:7,代码来源:OpenCoverSettingsTestFixture.cs


示例2: TestableSharpDevelopProjectSystem

        public TestableSharpDevelopProjectSystem(MSBuildBasedProject project)
            : this(project,
				new FakeFileService(project),
				new FakePackageManagementProjectService(),
				new FakeLogger())
        {
        }
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:7,代码来源:TestableSharpDevelopProjectSystem.cs


示例3: PartCoverSettingsFileName

		public void PartCoverSettingsFileName()
		{
			MSBuildBasedProject project = new MSBuildBasedProject(MSBuildInternals.CreateEngine());
			project.FileName = @"C:\temp\test.csproj";
			
			Assert.AreEqual(@"C:\temp\test.PartCover.Settings", PartCoverSettings.GetFileName(project));
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:7,代码来源:PartCoverSettingsTestFixture.cs


示例4: SetUpFixture

		public void SetUpFixture()
		{
			wixNodeBuilder = new WixProjectNodeBuilder();
			project = new MSBuildBasedProject(MSBuildInternals.CreateEngine());
			project.IdGuid = "FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF";
			project.FileName = @"C:\Projects\Test\test.csproj";
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:7,代码来源:WixBuilderCannotBuildNonWixProjectTestFixture.cs


示例5: LogProjectImportsChanged

		void LogProjectImportsChanged(MSBuildBasedProject project)
		{
			logger.Log(
				MessageLevel.Info,
				"Project imports have been modified outside SharpDevelop for project '{0}'.",
				project.Name);
		}
开发者ID:asiazhang,项目名称:SharpDevelop,代码行数:7,代码来源:GlobalMSBuildProjectCollection.cs


示例6: References

		public References(
			MSBuildBasedProject project,
			IPackageManagementProjectService projectService)
		{
			this.msbuildProject = project;
			this.projectService = projectService;
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:7,代码来源:References.cs


示例7: Load

		public void Load(MSBuildBasedProject project, string configuration, string platform)
		{
			UpdateTargetFrameworkCombo();
			if (DocumentationFile.Value.Length > 0) {
				documentFileIsChecked = true;
			}
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:7,代码来源:BuildOutput.xaml.cs


示例8: InstallPackages

		public void InstallPackages(
			IEnumerable<PackageReference> packageReferences,
			MSBuildBasedProject project)
		{
			List<InstallPackageAction> actions = GetInstallPackageActions(packageReferences, project);
			packageActionRunner.Run(actions);
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:7,代码来源:PackageReferenceInstaller.cs


示例9: Project

		public Project(MSBuildBasedProject project)
			: this(
				project,
				new PackageManagementProjectService(),
				new PackageManagementFileService())
		{
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:7,代码来源:Project.cs


示例10: SetupProject

        private void SetupProject(MSBuildBasedProject project)
        {
            var projectFile = project.MSBuildProjectFile;

            // Fix project type
            projectFile.AddProperty("ProjectTypeGuids", "{337B7DB7-2D1E-448D-BEBF-17E887A46E37};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}");

            // Set property values
            projectFile.AddProperty("TargetFrameworkVersion", ProjectCreateData.TargetFrameworkVersion);
            projectFile.AddProperty("AndroidVersion", "$(TargetFrameworkVersion)");
            projectFile.AddProperty("ApkFilename", project.Name + ".apk");
            projectFile.AddProperty("PackageName", "com." + project.Name);
            projectFile.AddProperty("ApkCertificatePath", ProjectCreateData.CertificatePath);
            projectFile.AddProperty("ApkCertificateThumbprint", ProjectCreateData.CertificateThumbprint);

            // Add Dot42ExtensionPath properties
            projectFile.AddProperty("Dot42ExtensionsPath", @"$(Registry:HKEY_CURRENT_USER\SOFTWARE\TallComponents\[email protected])").Condition = " '$(Dot42ExtensionsPath)' == '' ";
            projectFile.AddProperty("Dot42ExtensionsPath", @"$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\TallComponents\[email protected])").Condition = " '$(Dot42ExtensionsPath)' == '' ";

            // Add dot42 Import
            projectFile.AddImport(@"$(Dot42ExtensionsPath)\Dot42.CSharp.targets");

            // Add R.cs
            projectFile.AddItem("Compile", "$(ResourcesGeneratedCodePath)R.cs");

            // Add additional library
            foreach (var name in ProjectCreateData.AdditionalLibraryNames)
            {
                projectFile.AddItem("Reference", name);
            }
        }
开发者ID:Xtremrules,项目名称:dot42,代码行数:31,代码来源:SetupDot42ProjectCommand.cs


示例11: ProjectContentContainer

		public ProjectContentContainer(MSBuildBasedProject project, IProjectContent initialProjectContent)
		{
			if (project == null)
				throw new ArgumentNullException("project");
			this.project = project;
			this.projectContent = initialProjectContent.SetAssemblyName(project.AssemblyName).SetLocation(project.OutputAssemblyFullPath);
			this.assemblyModel = (IUpdateableAssemblyModel)project.AssemblyModel;
			this.assemblyModel.AssemblyName = this.projectContent.AssemblyName;
			this.assemblyModel.FullAssemblyName = this.projectContent.FullAssemblyName;
			this.cacheFileName = GetCacheFileName(project.FileName);
			
			SD.ProjectService.ProjectItemAdded += OnProjectItemAdded;
			SD.ProjectService.ProjectItemRemoved += OnProjectItemRemoved;
			SD.AssemblyParserService.AssemblyRefreshed += OnAssemblyRefreshed;
			
			List<FileName> filesToParse = new List<FileName>();
			foreach (var file in project.Items.OfType<FileProjectItem>()) {
				if (IsParseableFile(file)) {
					var fileName = file.FileName;
					parserService.AddOwnerProject(fileName, project, startAsyncParse: false, isLinkedFile: file.IsLink);
					filesToParse.Add(fileName);
				}
			}
			
			SD.ParserService.LoadSolutionProjectsThread.AddJob(
				monitor => Initialize(monitor, filesToParse),
				"Loading " + project.Name + "...", filesToParse.Count + LoadingReferencesWorkAmount);
		}
开发者ID:jrenzas,项目名称:SharpDevelop,代码行数:28,代码来源:ProjectContentContainer.cs


示例12: Save

		protected override bool Save(MSBuildBasedProject project, string configuration, string platform)
		{
			if (signAssemblyCheckBox.IsChecked == true) {
				this.AssemblyOriginatorKeyMode.Value = "File";
			}
			return base.Save(project, configuration, platform);
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:7,代码来源:Signing.xaml.cs


示例13: TypeScriptProject

		public TypeScriptProject(IProject project)
		{
			this.project = project;
			var msbuildBasedProject = project as MSBuildBasedProject;
			if (msbuildBasedProject != null) {
				this.msbuildProject = msbuildBasedProject;
			}
		}
开发者ID:Inzaghi2012,项目名称:SharpDevelop,代码行数:8,代码来源:TypeScriptProject.cs


示例14: Save

		protected override bool Save(MSBuildBasedProject project, string configuration, string platform)
		{
			if (IsDirty) {
				webProject.UpdateWebProjectProperties(properties);
			}
			IsDirty = false;
			return true;
		}
开发者ID:Netring,项目名称:SharpDevelop,代码行数:8,代码来源:WebProjectOptionsPanel.xaml.cs


示例15: PackageReferencesForProject

        public PackageReferencesForProject(
			MSBuildBasedProject project,
			IPackageRepositoryCache packageRepositoryCache)
            : this(project,
				new PackageReferenceInstaller(packageRepositoryCache),
				new PackageReferenceFileFactory())
        {
        }
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:8,代码来源:PackageReferencesForProject.cs


示例16: LogProjectImportMergeResult

 void LogProjectImportMergeResult(MSBuildBasedProject project, MSBuildProjectImportsMergeResult result)
 {
     logger.Log(
         MessageLevel.Info,
         "Project import merge result for project '{0}':\r\n{1}",
         project.Name,
         result);
 }
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:8,代码来源:GlobalMSBuildProjectCollection.cs


示例17: MSBuildProjectPropertiesMerger

        public MSBuildProjectPropertiesMerger(
			Project msbuildProject,
			MSBuildBasedProject sharpDevelopProject,
			IPackageManagementProjectService projectService)
        {
            this.msbuildProject = msbuildProject;
            this.sharpDevelopProject = sharpDevelopProject;
            this.projectService = projectService;
        }
开发者ID:ichengzi,项目名称:SharpDevelop,代码行数:9,代码来源:MSBuildProjectPropertiesMerger.cs


示例18: PackageReferencesForProject

		public PackageReferencesForProject(
			MSBuildBasedProject project,
			IPackageReferenceInstaller packageReferenceInstaller,
			IPackageReferenceFileFactory packageReferenceFileFactory)
		{
			this.project = project;
			this.packageReferenceFileFactory = packageReferenceFileFactory;
			this.packageReferenceInstaller = packageReferenceInstaller;
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:9,代码来源:PackageReferencesForProject.cs


示例19: GetReference

		public static ReferenceProjectItem GetReference(MSBuildBasedProject project, string referenceName)
		{
			foreach (ReferenceProjectItem referenceProjectItem in project.GetItemsOfType(ItemType.Reference)) {
				if (referenceProjectItem.Include == referenceName) {
					return referenceProjectItem;
				}
			}
			return null;
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:9,代码来源:ProjectHelper.cs


示例20: Load

		protected override void Load(MSBuildBasedProject project, string configuration, string platform)
		{
			base.Load(project, configuration, platform);
			if (String.IsNullOrEmpty(SourceAnalysisOverrideSettingsFile.Value)) {
				SourceAnalysisOverrideSettingsFile.Value = StyleCopWrapper.GetMasterSettingsFile();
				SourceAnalysisOverrideSettingsFile.Location =  PropertyStorageLocations.Base;
				IsDirty = false;
			}
		}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:9,代码来源:AnalysisOptionsPanel.xaml.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Project.ProjectBuildOptions类代码示例发布时间:2022-05-26
下一篇:
C# Project.FileProjectItem类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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