{"id":16687143,"url":"https://github.com/redth/xamarinsingleprojectconcept","last_synced_at":"2026-03-09T12:32:31.511Z","repository":{"id":137487581,"uuid":"296060933","full_name":"Redth/XamarinSingleProjectConcept","owner":"Redth","description":"Working area for development a concept of what Single Projects could look like for Xamarin in net6","archived":false,"fork":false,"pushed_at":"2020-09-16T16:21:58.000Z","size":169,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T00:17:41.578Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Redth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-16T14:41:56.000Z","updated_at":"2024-02-15T12:27:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"49dc41f4-e0f9-45d0-84a5-ffdeaa6f62ca","html_url":"https://github.com/Redth/XamarinSingleProjectConcept","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FXamarinSingleProjectConcept","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FXamarinSingleProjectConcept/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FXamarinSingleProjectConcept/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FXamarinSingleProjectConcept/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Redth","download_url":"https://codeload.github.com/Redth/XamarinSingleProjectConcept/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131318,"owners_count":21052820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T15:07:58.691Z","updated_at":"2026-03-09T12:32:31.464Z","avatar_url":"https://github.com/Redth.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XamarinSingleProjectConcept\n\nThis repo contains a working area for refining the concept of a single project in Xamarin for .NET 6.0.\n\nAs the name implies, a single project assumes only one project (.csproj) file which uses multitargeting is used to target `net6.0-ios`, `net6.0-android`, etc platforms.\n\nSingle projects would have some default patterns enabled for including files such as these:\n\n```xml\n\u003c!-- Shared --\u003e\n\u003cItemGroup\u003e\n  \u003cImage Include=\"Shared/Resources/*.svg\" /\u003e\n  \u003cImage Include=\"Shared/Resources/*.png\" /\u003e\n  \n  \u003cFont Include=\"Shared/Resources/*.ttf\" /\u003e\n  \u003cFont Include=\"Shared/Resources/*.otf\" /\u003e\n  \n  \u003cCompile Include=\"Shared/**/*.cs\" /\u003e\n\u003c/ItemGroup\u003e\n\n\u003c!-- iOS --\u003e\n\u003cItemGroup Condition=\" '$(TargetPlatformIdentifier)' == 'ios' \" /\u003e\n  \u003cCompile Include=\"iOS/**/*.cs\" /\u003e\n  \n  \u003cBundleResource Include=\"iOS/Resources/*\" /\u003e\n\u003c/ItemGroup\u003e\n\n\u003c!-- Android --\u003e\n\u003cItemGroup Condition=\" '$(TargetPlatformIdentifier)' == 'android' \" /\u003e\n  \u003cCompile Include=\"Android/**/*.cs\" /\u003e\n  \n  \u003cLibraryResourceDirectories Include=\"Android/Resources\" Condition=\" Exists('Android/Resources') \" /\u003e\n  \n  \u003cAndroidManifests Include=\"Android/AndroidManifest.xml\" Condition=\" Exists('Android/AndroidManifest.xml') \" /\u003e\n\u003c/ItemGroup\u003e\n```\n\nThese patterns assume some conventions:\n\n - Platform specific code goes either in Platform specific folders (eg: `Android`), or inside `#ifdef` blocks\n - The `Shared` folder contains code and resources which are multitargeted\n - Resources specific to a platform go in the platform folders\n\nNuGet needs some work so that the UI can target packages to a specific platform when multitargeting if necessary.  For now, developers will need to add conditions around their package references where necessary:\n\n```xml\n\u003cItemGroup Condition=\" '$(TargetPlatformIdentifier)' == 'ios' \"\u003e\n\t\t\u003cPackageReference Include=\"Xamarin.Facebook.iOS\" Version=\"7.1.1\" /\u003e\n\u003c/ItemGroup\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredth%2Fxamarinsingleprojectconcept","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredth%2Fxamarinsingleprojectconcept","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredth%2Fxamarinsingleprojectconcept/lists"}