private static void setDotNetDevPath(string csBinPath) { string devPath = Environment.GetEnvironmentVariable("DEVPATH"); if(String.IsNullOrEmpty(devPath)) { Environment.SetEnvironmentVariable("DEVPATH", csBinPath); return; } if(devPath.Contains(csBinPath)) { ComponentList list = new ComponentList(csBinPath.Split(Path.PathSeparator)); list.Remove(csBinPath); devPath = list.ToString(Path.PathSeparator); } devPath = csBinPath + Path.PathSeparator + devPath; devPath = devPath.Trim(Path.PathSeparator); Environment.SetEnvironmentVariable("DEVPATH", devPath); }
public void removeBuilderFromProject(Project project, ComponentList components) { cleanProject(project, true); if(Util.isCppProject(project)) { Util.removeIceCppConfigurations(project); Util.setProjectProperty(project, Util.PropertyIceComponents, components.ToString()); } else if(Util.isCSharpProject(project)) { if(Util.isSilverlightProject(project)) { Util.removeDotNetReference(project, "IceSL"); } else { Util.removeDotNetReference(project, "Ice"); } } Util.setProjectProperty(project, Util.PropertyIceComponents, components.ToString()); Util.setProjectProperty(project, Util.PropertyIce, false.ToString()); }