- Library
- iOS {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- Bindings project {F5B4F3BC-B597-4E2B-B552-EF5D8A32436F};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- Applications (exes) Universal, iPhone and iPad {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- Library
- Project modifications
-
rename existing *.csproj to *-Classic.csproj
-
copy to *-Classic.csproj to to .csproj unified=.csproj classic will become obsolete with time
-
open unified project file *.csproj
-
change project GUID
-
change project type to Xamarin iOS Unified Library projects from: * to: {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
-
change references fro unified Support from:
<Reference Include="monotouch" />
to:<Reference Include="Xamarin.iOS" />
-
change targets for unified support from:
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.MonoTouch.CSharp.targets" />
to:<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
-
preprocessor directive to support ios Unified from:
<DefineConstants>DEBUG</DefineConstants>
to:<DefineConstants>DEBUG;__UNIFIED__</DefineConstants>
1.
-
-
open classic support *-Classic.csproj
- change output folders
to:
<IntermediateOutputPath>obj\classic\$(Configuration)\</IntermediateOutputPath>
so from:<ConsolePause>false</ConsolePause>
to:<ConsolePause>false</ConsolePause> <IntermediateOutputPath>obj\unified\$(Configuration)\</IntermediateOutputPath>
- change output folders
to:
-
- Source code modifications
-
add following code in the files to fix usings `` #if UNIFIED using UIKit; using Foundation; using CoreAnimation; using CoreGraphics; #else using MonoTouch.UIKit; using MonoTouch.Foundation; using MonoTouch.CoreAnimation; using MonoTouch.CoreGraphics;
using System.Drawing; using CGRect = global::System.Drawing.RectangleF; using CGPoint = global::System.Drawing.PointF; using CGSize = global::System.Drawing.SizeF; #endif
``
-
- Project modifications
- Sample supporting Xamarin.ios unified