diff --git a/BuildSample/BuildSample.sln b/BuildSample/BuildSample.sln index 734caac..bc84d07 100644 --- a/BuildSample/BuildSample.sln +++ b/BuildSample/BuildSample.sln @@ -5,6 +5,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoolApp", "BuildSample\Cool EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NotCompileApp", "NotCompileApp\NotCompileApp.csproj", "{3DE4FDFA-1502-44CF-9B73-78B6D730C59F}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Domain", "Domain\Domain.csproj", "{BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|iPhoneSimulator = Debug|iPhoneSimulator @@ -27,6 +29,18 @@ Global {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Release|iPhone.Build.0 = Release|iPhone {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}.AppStore|iPhone.ActiveCfg = Release|Any CPU + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}.AppStore|iPhone.Build.0 = Release|Any CPU + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}.Debug|iPhone.ActiveCfg = Debug|Any CPU + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}.Debug|iPhone.Build.0 = Debug|Any CPU + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}.Release|iPhone.ActiveCfg = Release|Any CPU + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}.Release|iPhone.Build.0 = Release|Any CPU + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1}.Release|iPhoneSimulator.Build.0 = Release|Any CPU {E7393DD4-5E5F-456A-89AB-000EC63BD901}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone {E7393DD4-5E5F-456A-89AB-000EC63BD901}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone {E7393DD4-5E5F-456A-89AB-000EC63BD901}.AppStore|iPhone.ActiveCfg = AppStore|iPhone diff --git a/BuildSample/BuildSample/CoolApp.csproj b/BuildSample/BuildSample/CoolApp.csproj index 3f88715..1737085 100644 --- a/BuildSample/BuildSample/CoolApp.csproj +++ b/BuildSample/BuildSample/CoolApp.csproj @@ -93,4 +93,10 @@ + + + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1} + Domain + + \ No newline at end of file diff --git a/BuildSample/BuildSample/MainController.cs b/BuildSample/BuildSample/MainController.cs index d436376..ef4b50b 100644 --- a/BuildSample/BuildSample/MainController.cs +++ b/BuildSample/BuildSample/MainController.cs @@ -1,11 +1,16 @@ using System; + using MonoTouch.UIKit; using MonoTouch.Foundation; +using Domain; + namespace BuildSample { public class MainController : UIViewController { + private UILabel _label; + public MainController() { } @@ -15,8 +20,20 @@ namespace BuildSample base.ViewDidLoad(); View.BackgroundColor = UIColor.White; + Person author = new Person + { + Age = 24, + Name = "Rustam" + }; - // insert your code here + + _label = new UILabel(); + _label.Text = author.ToString(); + _label.SizeToFit(); + + + View.AddSubview(_label); + _label.Center = View.Center; } } } diff --git a/BuildSample/Domain/Domain.csproj b/BuildSample/Domain/Domain.csproj new file mode 100644 index 0000000..5817392 --- /dev/null +++ b/BuildSample/Domain/Domain.csproj @@ -0,0 +1,44 @@ + + + + Debug + AnyCPU + 10.0.0 + 2.0 + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1} + {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Library + Domain + Domain + Profile1 + v4.0 + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + false + + + full + true + bin\Release + prompt + 4 + false + + + + + + + + + + + + \ No newline at end of file diff --git a/BuildSample/Domain/Person.cs b/BuildSample/Domain/Person.cs new file mode 100644 index 0000000..a455a99 --- /dev/null +++ b/BuildSample/Domain/Person.cs @@ -0,0 +1,20 @@ +using System; + +namespace Domain +{ + public class Person + { + public int Age { get; set; } + public string Name { get; set; } + + public Person() + { + } + + public override string ToString() + { + return string.Format("My name is {0}. I am {1}", Name, Age); + } + } +} + diff --git a/BuildSample/Domain/Properties/AssemblyInfo.cs b/BuildSample/Domain/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..caa26f0 --- /dev/null +++ b/BuildSample/Domain/Properties/AssemblyInfo.cs @@ -0,0 +1,27 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("Domain")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("rzaitov")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] + diff --git a/BuildSample/NotCompileApp/NotCompileApp.csproj b/BuildSample/NotCompileApp/NotCompileApp.csproj index 14e2708..f5a5561 100644 --- a/BuildSample/NotCompileApp/NotCompileApp.csproj +++ b/BuildSample/NotCompileApp/NotCompileApp.csproj @@ -92,4 +92,10 @@ + + + {BD5EC0A1-EDC9-4D90-BACF-AE54F26148C1} + Domain + + \ No newline at end of file diff --git a/scripts/buld.py b/scripts/buld.py index 5f239dd..4362b3c 100644 --- a/scripts/buld.py +++ b/scripts/buld.py @@ -18,7 +18,7 @@ import settings # print("projects to build:") # print(projects_to_build) -sln_config = "Debug|iPhone Simulator 6.0" +sln_config = "Debug|iPhone Simulator" build_cmd_pattern = '{0} -v build "--configuration:{1}" "--target:Build" {2}' # build_cmd_text = build_cmd_pattern.format(settings.mdtool, sln_config, settings.sln_path)