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.
Description of Change
Context: https://github.com/xamarin/xamarin-android/blob/fcd9c30164d4ac0e88440357b5c96b9fdebccb39/Documentation/guides/OneDotNetSingleProject.md
We are aiming to get a new project type working that would have a
.csproj
such as:Within the project you would have:
*.cs
all shared codeiOS/*
- iOS only stuff, includingInfo.plist
Android/*
- Android only stuff, includingAndroidManifest.xml
I also used some other new settings that results in a smaller
Info.plist
andAndroidManifest.xml
:The eventual goal being we might be able to completely get rid of
Info.plist
andAndroidManifest.xml
for simple apps. You would onlyneed them for edge-case, platform-specific features.
To get this working within a NuGet package, we can include two new
files:
Xamarin.Forms.SingleProject.props
Xamarin.Forms.SingleProject.targets
They only enable things conditionally, if
$(SingleProject)
is set.I created a new sample with a single
Label
to demonstrate thingsworking.
API Changes
None
Platforms Affected
Behavioral/Visual Changes
A new
$(SingleProject)
MSBuild property will opt you into a new, magical project type.Before/After Screenshots
Not applicable
PR Checklist