public XamarinFormsPortableClassLibraryProject(string assemblyName) : base(assemblyName, "Library", "v4.5") { AssemblyReferences.Clear(); this.WithNugetPackage(References.Nuget.XamarinForms_portable45); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Ad-Hoc", "Any CPU")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Ad-Hoc", "iPhone")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Ad-Hoc", "iPhoneSimulator")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("AppStore", "Any CPU")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("AppStore", "iPhone")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("AppStore", "iPhoneSimulator")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Debug", "Any CPU")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Debug", "iPhone")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Debug", "iPhoneSimulator")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Release", "Any CPU")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Release", "iPhone")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Release", "iPhoneSimulator")); string TargetFrameworkProfile = "Profile259"; mTargetFrameworkProfile = TargetFrameworkProfile; this.AddFileToFolder(new DefaultAppXamlFile(AssemblyName)); this.AddFileToFolder(new DefaultMainPageXamlFile(AssemblyName)); }
/// <summary> /// Clears the compilers reference collection, leaving it empty. /// </summary> public static void ClearAssemblyReference() { AssemblyReferences.Clear(); }