Beispiel #1
0
        internal Project(EnvDTE.Project project)
        {
            Name        = project.Name;
            ProjectFile = project.FullName;
            ProjectPath = project.GetPropertyString("FullPath");
            var outputPath     = project.ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath").Value.ToString();
            var outputFileName = project.GetPropertyString("OutputFileName");

            OutputAssembly = new FileInfo(Path.Combine(ProjectPath, outputPath, outputFileName));
        }
Beispiel #2
0
 public static bool HasProperty(this EnvDTE.Project project, string propertyName)
 {
     return(!string.IsNullOrEmpty(project.GetPropertyString(propertyName)));
 }