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)); }
public XamariniOSAppProject(string assemblyName, string appName, string bundleIdentifier, Guid assemblyGuid, XamariniOSPlatform targetFrameworkVersion, NugetPackage xamarinPackage, string rootNamespace = "") : base(assemblyName, assemblyGuid, "Exe", targetFrameworkVersion, rootNamespace) { // project specific fields _appName = appName; _bundleIdentifier = bundleIdentifier; 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")); WithNugetPackage(xamarinPackage); AddDefaultAssemblyReferences(); AddDefaultFoldersAndFiles(); }
public XamarinAndroidAppProject(string assemblyName, string appName, string packageName, Guid assemblyGuid, XamarinAndroidPlatform targetFrameworkVersion, int minSdkVersion, int targetSdkVersion, NugetPackage xamarinPackage, string rootNamespace = "") : base(assemblyName, assemblyGuid, "Library", targetFrameworkVersion, rootNamespace) { _minSdkVersion = minSdkVersion; _targetSdkVersion = targetSdkVersion; _packageName = packageName; _appName = appName; 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")); WithNugetPackage(xamarinPackage); WithNugetPackage(References.Nuget.Xamarin_Android_Support_Design__27_0_2_1); WithNugetPackage(References.Nuget.Xamarin_Android_Support_v7_AppCompat__27_0_2_1); WithNugetPackage(References.Nuget.Xamarin_Android_Support_v4__27_0_2_1); WithNugetPackage(References.Nuget.Xamarin_Android_Support_v7_CardView__27_0_2_1); WithNugetPackage(References.Nuget.Xamarin_Android_Support_v7_MediaRouter__27_0_2_1); AddDefaultAssemblyReferences(); AddDefaultFoldersAndFiles(); }
public NetFrameworkConsoleApplicationCsProj(string assemblyName, NetFrameworkPlatform targetFrameworkVersion, string rootNamespace = "") : base(assemblyName, "Exe", targetFrameworkVersion, rootNamespace) { SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Debug", "Any CPU")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Release", "Any CPU")); AddFileToFolder(new AppConfigFile(targetFrameworkVersion)); }
public NetStandardXamarinClassLibraryProject(string assemblyName, NetStandardPlatform targetFrameworkVersion, NugetPackage xamarinPackage, string rootNamespace = "") : base(assemblyName, targetFrameworkVersion, rootNamespace) { 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", "iPhone")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Debug", "iPhoneSimulator")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Release", "iPhone")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Release", "iPhoneSimulator")); WithNugetPackage(xamarinPackage); AddFileToFolder(new DefaultAppXamlFile(RootNamespace)); AddFileToFolder(new DefaultMainPageXamlFile(RootNamespace)); }
public NetCoreConsoleApplicationProject(string assemblyName, NetCorePlatform targetFrameworkVersion, string rootNamespace = "") : base(assemblyName, "Exe", targetFrameworkVersion, rootNamespace) { SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Debug", "Any CPU")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Release", "Any CPU")); }
public NetFrameworkClassLibraryProject(string assemblyName, NetFrameworkPlatform targetFrameworkVersion, string rootNamespace = "") : base(assemblyName, "Library", targetFrameworkVersion, rootNamespace) { SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Debug", "Any CPU")); SupportedBuildConfigurations.Add(new SupportedBuildConfiguration("Release", "Any CPU")); }