- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.5k
 
Use Microsoft.NET.Sdk and iOS/Android .NET Workloads #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            2 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      
    File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
This file was deleted.
      
      Oops, something went wrong.
      
    
  This file was deleted.
      
      Oops, something went wrong.
      
    
  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| <Project Sdk="Microsoft.Android.Sdk"> | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFramework>net5.0-android</TargetFramework> | ||
| <OutputType>Exe</OutputType> | ||
| <!-- TODO: disable Fast Deployment temporarily --> | ||
| <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk> | ||
| </PropertyGroup> | ||
| </Project> | 
This file was deleted.
      
      Oops, something went wrong.
      
    
  This file was deleted.
      
      Oops, something went wrong.
      
    
  
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| <!-- | ||
| A prototype of the setup for a Xamarin single project. | ||
| NOTE: this file will eventually go away to be part of Forms/MAUI itself | ||
| --> | ||
| <Project> | ||
| 
     | 
||
| <!-- Properties --> | ||
| <PropertyGroup> | ||
| <EnableDefaultItems>false</EnableDefaultItems> | ||
| <!-- Android --> | ||
| <AndroidProjectFolder>Android\</AndroidProjectFolder> | ||
| <AndroidManifest>$(AndroidProjectFolder)AndroidManifest.xml</AndroidManifest> | ||
| <MonoAndroidResourcePrefix>$(AndroidProjectFolder)Resources</MonoAndroidResourcePrefix> | ||
| <MonoAndroidAssetsPrefix>$(AndroidProjectFolder)Assets</MonoAndroidAssetsPrefix> | ||
| <!-- TODO: disable Fast Deployment temporarily --> | ||
| <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk> | ||
| <!-- iOS --> | ||
| <iOSProjectFolder>iOS\</iOSProjectFolder> | ||
| <IPhoneResourcePrefix>$(iOSProjectFolder)Resources</IPhoneResourcePrefix> | ||
| </PropertyGroup> | ||
| 
     | 
||
| <!-- Shared --> | ||
| <ItemGroup> | ||
| <Compile Include="Shared\**$(DefaultLanguageSourceExtension)" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" /> | ||
| <EmbeddedResource Include="Shared\**\*.xaml" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" /> | ||
| </ItemGroup> | ||
| 
     | 
||
| <!-- Android --> | ||
| <ItemGroup Condition=" '$(TargetPlatformIdentifier)' == 'android' "> | ||
| <Compile Include="$(AndroidProjectFolder)**$(DefaultLanguageSourceExtension)" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" /> | ||
| <AndroidResource Include="$(MonoAndroidResourcePrefix)\*\*.xml" /> | ||
| <AndroidResource Include="$(MonoAndroidResourcePrefix)\*\*.axml" /> | ||
| <AndroidResource Include="$(MonoAndroidResourcePrefix)\*\*.png" /> | ||
| <AndroidResource Include="$(MonoAndroidResourcePrefix)\*\*.jpg" /> | ||
| <AndroidResource Include="$(MonoAndroidResourcePrefix)\*\*.gif" /> | ||
| <AndroidResource Include="$(MonoAndroidResourcePrefix)\font\*.ttf" /> | ||
| <AndroidResource Include="$(MonoAndroidResourcePrefix)\font\*.otf" /> | ||
| <AndroidResource Include="$(MonoAndroidResourcePrefix)\font\*.ttc" /> | ||
| <AndroidResource Include="$(MonoAndroidResourcePrefix)\raw\*" Exclude="$(MonoAndroidResourcePrefix)\raw\.*" /> | ||
| <AndroidAsset Include="$(MonoAndroidAssetsPrefix)\**\*" Exclude="$(MonoAndroidAssetsPrefix)\**\.*\**" /> | ||
| </ItemGroup> | ||
| 
     | 
||
| <!-- iOS --> | ||
| <ItemGroup Condition=" '$(TargetPlatformIdentifier)' == 'ios' "> | ||
| <Compile Include="$(iOSProjectFolder)**$(DefaultLanguageSourceExtension)" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" /> | ||
| <None Include="$(iOSProjectFolder)Info.plist" LogicalName="Info.plist" /> | ||
| <SceneKitAsset Include="$(iOSProjectFolder)**\*.scnassets\*"> | ||
| <IsDefaultItem>true</IsDefaultItem> | ||
| </SceneKitAsset> | ||
| <InterfaceDefinition Include="$(iOSProjectFolder)**\*.storyboard;$(iOSProjectFolder)**\*.xib"> | ||
| <Link>$([MSBuild]::MakeRelative ('$(MSBuildProjectDirectory)', '%(Identity)'))</Link> | ||
| <IsDefaultItem>true</IsDefaultItem> | ||
| </InterfaceDefinition> | ||
| </ItemGroup> | ||
| 
     | 
||
| <!-- Workarounds - not specific to default item groups --> | ||
| 
     | 
||
| <!-- NOTE: the target below has workarounds for $(AssetTargetFallback) usage --> | ||
| <!-- see: https://github.com/NuGet/docs.microsoft.com-nuget/issues/1955 --> | ||
| <Target | ||
| Name="FixFormsNuGetAssemblies" | ||
| AfterTargets="ResolvePackageAssets" | ||
| Condition=" '$(PkgXamarin_Forms)' != '' and '$(TargetPlatformIdentifier)' == 'ios' "> | ||
| <ItemGroup> | ||
| <Reference Include="Xamarin.Forms.Platform.iOS" HintPath="$(PkgXamarin_Forms)\build\XCODE11\Xamarin.Forms.Platform.iOS.dll" /> | ||
| <Reference Include="Xamarin.Forms.Platform" HintPath="$(PkgXamarin_Forms)\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll" /> | ||
| <RuntimeCopyLocalItems Remove="$(PkgXamarin_Forms)\lib\netstandard2.0\Xamarin.Forms.Platform.dll" /> | ||
| <ResolvedCompileFileDefinitions Remove="$(PkgXamarin_Forms)\lib\netstandard2.0\Xamarin.Forms.Platform.dll" /> | ||
| </ItemGroup> | ||
| </Target> | ||
| 
     | 
||
| <!-- | ||
| The linker resolves some assembly references too eagerly, and | ||
| fails when it can't find them, so work around this by referencing | ||
| the missing assemblies. | ||
| See: https://github.com/mono/linker/issues/1139 | ||
| --> | ||
| <PropertyGroup> | ||
| <_DotNetPackageVersion>5.0.0-rc.2.20475.5</_DotNetPackageVersion> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="System.CodeDom" Version="$(_DotNetPackageVersion)" /> | ||
| <PackageReference Include="System.Diagnostics.EventLog" Version="$(_DotNetPackageVersion)" /> | ||
| <PackageReference Include="System.Diagnostics.PerformanceCounter" Version="$(_DotNetPackageVersion)" /> | ||
| <PackageReference Include="System.IO.Ports" Version="$(_DotNetPackageVersion)" /> | ||
| <PackageReference Include="System.Security.Permissions" Version="$(_DotNetPackageVersion)" /> | ||
| <PackageReference Include="System.Threading.AccessControl" Version="$(_DotNetPackageVersion)" /> | ||
| </ItemGroup> | ||
| 
     | 
||
| </Project> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,8 +1,10 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFramework>net5.0</TargetFramework> | ||
| <TargetFrameworks>net5.0-android;net5.0-ios</TargetFrameworks> | ||
| <RuntimeIdentifier Condition=" '$(TargetFramework)' == 'net5.0-ios' ">ios-x64</RuntimeIdentifier> | ||
| <OutputType>Exe</OutputType> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="Xamarin.Forms" Version="4.8.0.1364" /> | ||
| <PackageReference Include="Xamarin.Forms" Version="4.8.0.1364" GeneratePathProperty="true" /> | ||
| </ItemGroup> | ||
| </Project> | 
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
            File renamed without changes.
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
            File renamed without changes.
          
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
            File renamed without changes.
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
              File renamed without changes
          
    
            File renamed without changes.
          
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| { | ||
| "msbuild-sdks": { | ||
| "Microsoft.iOS.Sdk": "14.0.100-ci.main.568", | ||
| "Microsoft.Android.Sdk": "11.0.100-ci.master.169" | ||
| "sdk": { | ||
| "version": "5.0.100-rtm.20509.5", | ||
| "rollForward": "major", | ||
| "allowPrerelease": true | ||
| } | ||
| } | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.