private EnvironmentDetails CreateEnvironmentDetails(string fileName, PublishProfile webDeployProfile)
		{
			EnvironmentDetails newEnv = new EnvironmentDetails()
			{
				Name = fileName,
				Provider = "WebDeploy",
				//Provider = "FTP",
				Settings = new Settings()
				{
					ProviderSettings = new List<ProviderSetting>()
								  {
									  new ProviderSetting() { Name = "server", Value = new Value() { value = string.Format("https://{0}/MSDeploy.axd?site={1}", webDeployProfile.PublishUrl, webDeployProfile.MsdeploySite) } },
									  new ProviderSetting() { Name = "website", Value = new Value() { value = webDeployProfile.MsdeploySite } },
									  new ProviderSetting() { Name = "username", Value = new Value() { value = webDeployProfile.UserName } },
									  new ProviderSetting() { Name = "password", Value = new Value() { value = webDeployProfile.UserPWD } },
									  new ProviderSetting() { Name = "ntlm", Value = new Value() { value = null } },
									  new ProviderSetting() { Name = "remove_files", Value = new Value() { value = "true" } },
									  new ProviderSetting() { Name = "app_offline", Value = new Value() { value = "true" } },
									  new ProviderSetting() { Name = "do_not_use_checksum", Value = new Value() { value = null } },
									  new ProviderSetting() { Name = "skip_dirs", Value = new Value() { value = null } },
									  new ProviderSetting() { Name = "skip_files", Value = new Value() { value = null } },
									  new ProviderSetting() { Name = "pre_sync", Value = new Value() { value = null } },
									  new ProviderSetting() { Name = "post_sync", Value = new Value() { value = null } },
									  new ProviderSetting() { Name = "sync_wait_attempts", Value = new Value() { value = null } },
									  new ProviderSetting() { Name = "sync_wait_interval", Value = new Value() { value = null } },
									  new ProviderSetting() { Name = "artifact", Value = new Value() { value = null } },
									  new ProviderSetting() { Name = "aspnet_core", Value = new Value() { value = "true" } },
									  new ProviderSetting() { Name = "aspnet_core_force_restart", Value = new Value() { value = "true" } },
								  },
					EnvironmentVariables = new List<object>()
				}
			};

			return newEnv;
		}
		private async Task CreateEnvironment(EnvironmentDetails newEnv)
		{
			var jsonSerializerSettings = new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() };

			string envJson = JsonConvert.SerializeObject(newEnv, jsonSerializerSettings);

			using (var response = await httpClient.PostAsync("https://ci.appveyor.com/api/environments", new StringContent(envJson, Encoding.UTF8, "application/json")))
			{
				response.EnsureSuccessStatusCode();

				//var resultJson = await response.Content.ReadAsStringAsync();

			}

		}