Include Xamarin.iOS/Mac facade directories (#47)
Fixes compilation against assemblies that have references to netstandard.dll, such as Xamarin.Forms. * Add sample that references Xamarin.Forms * Build HelloForms for simulator, disable code signing Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
После Ширина: | Высота: | Размер: 7.9 KiB |
Двоичные данные
samples/HelloForms/Assets.xcassets/AppIcon.appiconset/AppIcon-128@2x.png
Normal file
После Ширина: | Высота: | Размер: 20 KiB |
После Ширина: | Высота: | Размер: 711 B |
После Ширина: | Высота: | Размер: 1.4 KiB |
После Ширина: | Высота: | Размер: 20 KiB |
Двоичные данные
samples/HelloForms/Assets.xcassets/AppIcon.appiconset/AppIcon-256@2x.png
Normal file
После Ширина: | Высота: | Размер: 58 KiB |
После Ширина: | Высота: | Размер: 1.4 KiB |
После Ширина: | Высота: | Размер: 3.3 KiB |
После Ширина: | Высота: | Размер: 58 KiB |
Двоичные данные
samples/HelloForms/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png
Normal file
После Ширина: | Высота: | Размер: 174 KiB |
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
"images": [
|
||||
{
|
||||
"filename": "AppIcon-16.png",
|
||||
"size": "16x16",
|
||||
"scale": "1x",
|
||||
"idiom": "mac"
|
||||
},
|
||||
{
|
||||
"filename": "AppIcon-16@2x.png",
|
||||
"size": "16x16",
|
||||
"scale": "2x",
|
||||
"idiom": "mac"
|
||||
},
|
||||
{
|
||||
"filename": "AppIcon-32.png",
|
||||
"size": "32x32",
|
||||
"scale": "1x",
|
||||
"idiom": "mac"
|
||||
},
|
||||
{
|
||||
"filename": "AppIcon-32@2x.png",
|
||||
"size": "32x32",
|
||||
"scale": "2x",
|
||||
"idiom": "mac"
|
||||
},
|
||||
{
|
||||
"filename": "AppIcon-128.png",
|
||||
"size": "128x128",
|
||||
"scale": "1x",
|
||||
"idiom": "mac"
|
||||
},
|
||||
{
|
||||
"filename": "AppIcon-128@2x.png",
|
||||
"size": "128x128",
|
||||
"scale": "2x",
|
||||
"idiom": "mac"
|
||||
},
|
||||
{
|
||||
"filename": "AppIcon-256.png",
|
||||
"size": "256x256",
|
||||
"scale": "1x",
|
||||
"idiom": "mac"
|
||||
},
|
||||
{
|
||||
"filename": "AppIcon-256@2x.png",
|
||||
"size": "256x256",
|
||||
"scale": "2x",
|
||||
"idiom": "mac"
|
||||
},
|
||||
{
|
||||
"filename": "AppIcon-512.png",
|
||||
"size": "512x512",
|
||||
"scale": "1x",
|
||||
"idiom": "mac"
|
||||
},
|
||||
{
|
||||
"filename": "AppIcon-512@2x.png",
|
||||
"size": "512x512",
|
||||
"scale": "2x",
|
||||
"idiom": "mac"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"version": 1,
|
||||
"author": "xcode"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
<Project Sdk="Xamarin.Legacy.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>xamarin.ios10</TargetFramework>
|
||||
<OutputType>Exe</OutputType>
|
||||
<SupportedOSPlatformVersion>14.0</SupportedOSPlatformVersion>
|
||||
<Platform>iPhoneSimulator</Platform>
|
||||
<EnableCodeSigning>false</EnableCodeSigning>
|
||||
<MtouchArch>x86_64</MtouchArch>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2545" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Info.plist" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -0,0 +1,38 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>UIDeviceFamily</key>
|
||||
<array>
|
||||
<integer>1</integer>
|
||||
<integer>2</integer>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>14.0</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>HelloForms</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.companyname.HelloForms</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>HelloForms</string>
|
||||
<key>XSAppIconAssets</key>
|
||||
<string>Assets.xcassets/AppIcon.appiconset</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1,15 @@
|
|||
using Xamarin.Forms;
|
||||
|
||||
// Use an attribute from the Xamarin.Forms library
|
||||
[assembly: ResolutionGroupName("Anything")]
|
||||
|
||||
namespace Hello
|
||||
{
|
||||
public class Application
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
<resources>
|
||||
<string name="legacy">Hello, Xamarin.Android</string>
|
||||
<string name="net6">Hello, .NET 6!</string>
|
||||
</resources>
|
|
@ -13,6 +13,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{CFDB900E
|
|||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{149B3F40-F69B-4A1B-A499-F533B9717040}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloForms", "HelloForms\HelloForms.csproj", "{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
@ -59,6 +61,18 @@ Global
|
|||
{5B390F99-D000-4DB0-98C4-8FC0F4AC2D9D}.Release|x64.Build.0 = Release|Any CPU
|
||||
{5B390F99-D000-4DB0-98C4-8FC0F4AC2D9D}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{5B390F99-D000-4DB0-98C4-8FC0F4AC2D9D}.Release|x86.Build.0 = Release|Any CPU
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}.Release|x64.Build.0 = Release|Any CPU
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -67,6 +81,7 @@ Global
|
|||
{5E34FB3D-487C-433A-8A49-96444046888D} = {149B3F40-F69B-4A1B-A499-F533B9717040}
|
||||
{67EB8FFE-826F-445A-A8E6-8DAFB3A2E65F} = {149B3F40-F69B-4A1B-A499-F533B9717040}
|
||||
{5B390F99-D000-4DB0-98C4-8FC0F4AC2D9D} = {CFDB900E-AD95-43C6-BF87-FEE446EBF78B}
|
||||
{7A2D8CB7-F2DA-4789-97C0-B5E4112546D1} = {149B3F40-F69B-4A1B-A499-F533B9717040}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {A49B40B9-4E4D-4B19-B124-9B19C41B5759}
|
||||
|
|
|
@ -44,8 +44,13 @@
|
|||
Condition=" '$(_FixupsNeeded)' == 'true' and $([MSBuild]::IsOSPlatform ('osx')) "
|
||||
AfterTargets="GetReferenceAssemblyPaths">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworkDirectory>$(FrameworkPathOverride)</TargetFrameworkDirectory>
|
||||
<TargetFrameworkDirectory>$(FrameworkPathOverride);$(FrameworkPathOverride)Facades/</TargetFrameworkDirectory>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<DesignTimeFacadeDirectoryRoots Include="$(FrameworkPathOverride)" />
|
||||
<DesignTimeFacadeDirectoryRoots Include="$(FrameworkPathOverride)Facades/" />
|
||||
<DesignTimeFacadeDirectories Include="$(FrameworkPathOverride)Facades/" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
<Import Project="Xamarin.Hacks.targets" Condition=" '$(_FixupsNeeded)' == 'true' " />
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -43,8 +43,13 @@
|
|||
Condition=" '$(_FixupsNeeded)' == 'true' and $([MSBuild]::IsOSPlatform ('osx')) "
|
||||
AfterTargets="GetReferenceAssemblyPaths">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworkDirectory>$(FrameworkPathOverride)</TargetFrameworkDirectory>
|
||||
<TargetFrameworkDirectory>$(FrameworkPathOverride);$(FrameworkPathOverride)Facades/</TargetFrameworkDirectory>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<DesignTimeFacadeDirectoryRoots Include="$(FrameworkPathOverride)" />
|
||||
<DesignTimeFacadeDirectoryRoots Include="$(FrameworkPathOverride)Facades/" />
|
||||
<DesignTimeFacadeDirectories Include="$(FrameworkPathOverride)Facades/" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
<Import Project="Xamarin.Hacks.targets" Condition=" '$(_FixupsNeeded)' == 'true' " />
|
||||
</Project>
|
||||
|
|