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

C# ProjectCreateInformation类代码示例

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

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



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

示例1: NewProjectsCreated

		public NewProjectsCreated(
			ProjectCreateInformation createInfo,
			OpenMSBuildProjects openProjects)
		{
			this.createInfo = createInfo;
			this.openProjects = openProjects;
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:7,代码来源:NewProjectsCreated.cs


示例2: CreateCSharpProject

		public static MSBuildBasedProject CreateCSharpProject()
		{
			var createInfo = new ProjectCreateInformation();
			createInfo.Solution = new Solution(MockRepository.GenerateStub<IProjectChangeWatcher>());
			createInfo.OutputProjectFileName = @"d:\projects\MyProject\MyProject.csproj";
			return new MSBuildBasedProject(createInfo);
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:7,代码来源:MSBuildProjectHelper.cs


示例3: WixProject

		public WixProject(ProjectCreateInformation info)
			: base(info)
		{
			SetProperty("OutputType", "Package");
			AddWixTargetsPathProperties();
			AddImport(DefaultTargetsFile, null);
		}
开发者ID:Netring,项目名称:SharpDevelop,代码行数:7,代码来源:WixProject.cs


示例4: SetUpFixture

		public void SetUpFixture()
		{
			WixBindingTestsHelper.InitMSBuildEngine();
			
			// create the project.
			ProjectCreateInformation info = new ProjectCreateInformation();
			info.Solution = new Solution();
			info.ProjectName = "Test";
			info.OutputProjectFileName = @"C:\Projects\Test\Test.wixproj";

			wixProject = new WixProjectWithOverriddenSave(info);
			
			// Add wix library item.
			wixLibraryItem = new WixLibraryProjectItem(wixProject);
			wixLibraryItem.Include = @"..\..\first.wixlib";
			ProjectService.AddProjectItem(wixProject, wixLibraryItem);
			
			// Run Initialize on the WixLibraryFolderNode, which is 
			// equivalent to expanding the node, so it adds it children. Cannot
			// call ExtTreeNode.Expanding since this relies on the tree node
			// being visible.
			WixLibraryFolderNodeTester nodeTester = new WixLibraryFolderNodeTester(wixProject);
			nodeTester.RunInitialize();
			
			wixLibraryFolderNode = (WixLibraryFolderNode)nodeTester;
			wixLibraryNode = (WixLibraryNode)wixLibraryFolderNode.Nodes[0];
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:27,代码来源:DeleteWixLibraryNodeTestFixture.cs


示例5: CreateCSharpProject

		IProject CreateCSharpProject()
		{
			var createInfo = new ProjectCreateInformation();
			createInfo.Solution = new Solution(new MockProjectChangeWatcher());
			createInfo.OutputProjectFileName = @"d:\projects\MyProject\MyProject.csproj";
			return new MSBuildBasedProject(createInfo);
		}
开发者ID:fanyjie,项目名称:SharpDevelop,代码行数:7,代码来源:JavaScriptParserTests.cs


示例6: CreateProject

		public static TestableProject CreateProject(string fileName, string projectName)
		{
			var createInfo = new ProjectCreateInformation();
			createInfo.Solution = new Solution(null);
			createInfo.ProjectName = projectName;
			createInfo.OutputProjectFileName = fileName;
			return new TestableProject(createInfo);
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:8,代码来源:TestableProject.cs


示例7: OnInitializeFromTemplate

		protected override void OnInitializeFromTemplate (ProjectCreateInformation projectCreateInfo, XmlElement projectOptions)
		{
			base.OnInitializeFromTemplate (projectCreateInfo, projectOptions);
			languageName = projectOptions.GetAttribute ("language");

			string templateDefaultNamespace = GetDefaultNamespace (projectCreateInfo, projectOptions);
			DefaultNamespace = templateDefaultNamespace ?? projectCreateInfo.ProjectName;
		}
开发者ID:PlayScriptRedux,项目名称:monodevelop,代码行数:8,代码来源:SharedAssetsProject.cs


示例8: CreateProject

		public static TestableProject CreateProject()
		{
			var info = new ProjectCreateInformation();
			info.Solution = new Solution();
			info.OutputProjectFileName = @"d:\projects\MyProject\MyProject.csproj";
			info.ProjectName = "MyProject";
			return new TestableProject(info);
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:8,代码来源:ProjectHelper.cs


示例9: IsTestProjectWhenPassedRubyPythonProjectReturnsTrue

		public void IsTestProjectWhenPassedRubyPythonProjectReturnsTrue()
		{
			ProjectCreateInformation createInfo = new ProjectCreateInformation();
			createInfo.Solution = new Solution(new MockProjectChangeWatcher());
			createInfo.OutputProjectFileName = @"C:\projects\test.rbproj";
			RubyProject project = new RubyProject(createInfo);
			
			Assert.IsTrue(testFramework.IsTestProject(project));
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:9,代码来源:RubyTestFrameworkIsTestProjectTests.cs


示例10: SetUpFixture

		public void SetUpFixture()
		{
			projectBinding = new PythonProjectBinding();
			ProjectCreateInformation createInfo = new ProjectCreateInformation();
			createInfo.ProjectName = "Python";
			createInfo.OutputProjectFileName = @"C:\Projects\Python.pyproj";
			createInfo.Solution = new Solution(new MockProjectChangeWatcher());
			project = projectBinding.CreateProject(createInfo) as PythonProject;
		}
开发者ID:Rpinski,项目名称:SharpDevelop,代码行数:9,代码来源:ProjectBindingTestFixture.cs


示例11: IsTestProjectReturnsTrueForPythonProject

		public void IsTestProjectReturnsTrueForPythonProject()
		{
			ProjectCreateInformation createInfo = new ProjectCreateInformation();
			createInfo.Solution = new Solution();
			createInfo.OutputProjectFileName = @"C:\projects\test.pyproj";
			PythonProject project = new PythonProject(createInfo);
			
			Assert.IsTrue(testFramework.IsTestProject(project));
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:9,代码来源:PythonTestFrameworkIsTestProjectTests.cs


示例12: RunCommandWithProjectCreateInfoAsOwner

		void RunCommandWithProjectCreateInfoAsOwner(List<TestableProject> projects)
		{
			var createInfo = new ProjectCreateInformation(projects);
			createInfo.Solution = projects[0].ParentSolution;
			
			command.FakeProjectService.FakeOpenProjects.AddRange(projects);
			
			RunCommandWithProjectCreateInfoAsOwner(createInfo);
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:9,代码来源:InstallProjectTemplatePackagesCommandTests.cs


示例13: Create

		protected override void Create(ProjectCreateInformation information)
		{
			base.Create(information);
			
			SetProperty("Debug", null, "DefineConstants", "DEBUG;TRACE",
			            PropertyStorageLocations.ConfigurationSpecific, false);
			SetProperty("Release", null, "DefineConstants", "TRACE",
			            PropertyStorageLocations.ConfigurationSpecific, false);
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:9,代码来源:BooProject.cs


示例14: FSharpProject

		public FSharpProject(ProjectCreateInformation info) : base(info)
		{
			try {
				base.AddImport(@"$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets", null);
				base.ReevaluateIfNecessary(); // provoke exception if import is invalid
			} catch (InvalidProjectFileException ex) {
				throw new ProjectLoadException("Please ensure that the F# compiler is installed on your computer.\n\n" + ex.Message, ex);
			}
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:9,代码来源:FSharpProject.cs


示例15: SetUpFixture

		public void SetUpFixture()
		{
			projectBinding = new RubyProjectBinding();
			ProjectCreateInformation createInfo = new ProjectCreateInformation();
			createInfo.ProjectName = "Ruby";
			createInfo.OutputProjectFileName = @"C:\Projects\Ruby.rbproj";
			createInfo.Solution = new Solution();
			project = projectBinding.CreateProject(createInfo) as RubyProject;
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:9,代码来源:ProjectBindingTestFixture.cs


示例16: SetUpFixture

		public void SetUpFixture()
		{
			info = new ProjectCreateInformation();
			info.Solution = new Solution(new MockProjectChangeWatcher());
			info.ProjectName = "Test";
			info.OutputProjectFileName = @"C:\Projects\Test\Test.rbproj";
			info.RootNamespace = "Test";

			project = new RubyProject(info);
		}
开发者ID:Rpinski,项目名称:SharpDevelop,代码行数:10,代码来源:CreateNewRubyProjectTestFixture.cs


示例17: LSharpProject

		public LSharpProject(ProjectCreateInformation info)
			: base(info)
		{
			Init();
			
			SetProperty("Debug", null, "DefineConstants", "DEBUG;TRACE",
			            PropertyStorageLocations.ConfigurationSpecific, false);
			SetProperty("Release", null, "DefineConstants", "TRACE",
			            PropertyStorageLocations.ConfigurationSpecific, false);
		}
开发者ID:westybsa,项目名称:MP.LSharp,代码行数:10,代码来源:LSharpProject.cs


示例18: CreateTestProject

		protected override IProject CreateTestProject()
		{
			ProjectCreateInformation info = new ProjectCreateInformation();
			info.ProjectName = "Test";
			info.RootNamespace = "Test";
			info.OutputProjectFileName = Path.Combine(Path.GetTempPath(), "Test.vbproj");
			info.Solution = this.Solution;
			
			VBNetProject p = new VBNetProject(info);
			return p;
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:11,代码来源:AbstractVBNetResourceResolverTestFixture.cs


示例19: SetUpFixture

		public void SetUpFixture()
		{
			PythonMSBuildEngineHelper.InitMSBuildEngine();
			
			info = new ProjectCreateInformation();
			info.Solution = new Solution();
			info.ProjectName = "Test";
			info.OutputProjectFileName = @"C:\Projects\Test\Test.pyproj";
			info.RootNamespace = "Test";

			project = new PythonProject(info);
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:12,代码来源:CreateNewPythonProjectTestFixture.cs


示例20: SnippetCompilerProject

		SnippetCompilerProject(ProjectCreateInformation createInfo)
			: base(createInfo)
		{
			this.Parent = createInfo.Solution;
			this.AddImport(DefaultTargetsFile, null);
			
			SetProperty("Debug", null, "CheckForOverflowUnderflow", "True", PropertyStorageLocations.ConfigurationSpecific, true);
			SetProperty("Release", null, "CheckForOverflowUnderflow", "False", PropertyStorageLocations.ConfigurationSpecific, true);
			
			SetProperty("Debug", null, "DefineConstants", "DEBUG;TRACE", PropertyStorageLocations.ConfigurationSpecific, false);
			SetProperty("Release", null, "DefineConstants", "TRACE", PropertyStorageLocations.ConfigurationSpecific, false);
		}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:12,代码来源:SnippetCompilerProject.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# ProjectElement类代码示例发布时间:2022-05-24
下一篇:
C# Project类代码示例发布时间: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