Beispiel #1
0
        public void UpdateWebProjectProperties(WebProjectProperties properties)
        {
            var projectExtension = new VisualStudioProjectExtension(properties);

            projectExtension.Save(msbuildProject);
            SetMSBuildProperty("UseIISExpress", properties.UseIISExpress);
        }
		void CreateMSBuildProjectWithWebProjectProperties()
		{
			CreateMSBuildProject();
			var properties = new WebProjectProperties();
			var extension = new VisualStudioProjectExtension(properties);
			extension.Save(msbuildProject);
		}
Beispiel #3
0
		public bool HasWebProjectProperties()
		{
			if (VisualStudioProjectExtension.ProjectContainsExtension(msbuildProject)) {
				var projectExtension = new VisualStudioProjectExtension(msbuildProject);
				return projectExtension.ContainsWebProjectProperties();
			}
			return false;
		}
Beispiel #4
0
 public bool HasWebProjectProperties()
 {
     if (VisualStudioProjectExtension.ProjectContainsExtension(msbuildProject))
     {
         var projectExtension = new VisualStudioProjectExtension(msbuildProject);
         return(projectExtension.ContainsWebProjectProperties());
     }
     return(false);
 }
Beispiel #5
0
		public WebProjectProperties GetWebProjectProperties()
		{
			if (HasWebProjectProperties()) {
				var projectExtension = new VisualStudioProjectExtension(msbuildProject);
				WebProjectProperties properties = projectExtension.GetWebProjectProperties();
				properties.UseIISExpress = UseIISExpress;
				return properties;
			}
			return DefaultProperties;
		}
Beispiel #6
0
 public WebProjectProperties GetWebProjectProperties()
 {
     if (HasWebProjectProperties())
     {
         var projectExtension            = new VisualStudioProjectExtension(msbuildProject);
         WebProjectProperties properties = projectExtension.GetWebProjectProperties();
         properties.UseIISExpress = UseIISExpress;
         return(properties);
     }
     return(DefaultProperties);
 }
Beispiel #7
0
		public void UpdateWebProjectProperties(WebProjectProperties properties)
		{
			var projectExtension = new VisualStudioProjectExtension(properties);
			projectExtension.Save(msbuildProject);
			SetMSBuildProperty("UseIISExpress", properties.UseIISExpress);
		}
		void CreateExtension(MSBuildBasedProject msbuildProject)
		{
			extension = new VisualStudioProjectExtension(msbuildProject);
		}