当前位置: 首页>>代码示例>>C#>>正文


C# ProjectCreateInformation类代码示例

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


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


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