本文整理汇总了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;
}
示例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);
}
示例3: WixProject
public WixProject(ProjectCreateInformation info)
: base(info)
{
SetProperty("OutputType", "Package");
AddWixTargetsPathProperties();
AddImport(DefaultTargetsFile, null);
}
示例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];
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例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));
}
示例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;
}
示例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));
}
示例12: RunCommandWithProjectCreateInfoAsOwner
void RunCommandWithProjectCreateInfoAsOwner(List<TestableProject> projects)
{
var createInfo = new ProjectCreateInformation(projects);
createInfo.Solution = projects[0].ParentSolution;
command.FakeProjectService.FakeOpenProjects.AddRange(projects);
RunCommandWithProjectCreateInfoAsOwner(createInfo);
}
示例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);
}
示例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);
}
}
示例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;
}