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
feat(template): Move to single location projects #10611
Conversation
The build 63287 found UI Test snapshots differences: Details
|
5e03178
to
999430d
Compare
The build 63372 found UI Test snapshots differences: Details
|
f66fb38
to
bf52325
Compare
The build 63398 found UI Test snapshots differences: Details
|
The build 63417 found UI Test snapshots differences: Details
|
The build 63467 found UI Test snapshots differences: Details
|
13d3bec
to
aa50cef
Compare
The build 63488 found UI Test snapshots differences: Details
|
The build 63501 found UI Test snapshots differences: Details
|
The build 63537 found UI Test snapshots differences: Details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The AndroidManifest.xml / Info.plist's should be updated the remove the properties set by the msbuild properties... so this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.companyname.$ext_safeprojectname$" android:versionCode="1" android:versionName="1.0">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="31" />
<application android:label="$ext_safeprojectname$"></application>
</manifest>
Would become:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application></application>
</manifest>
NOTE: uses-sdk
is injected automatically based on the SDK version it is built against and the minimum supported sdk set in the csproj
948f11a
to
6755e47
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you can to marge #10357 before ? inside ? or after this PR ?
One of the nice things about the default net5+ .csproj
is that they are small and used to change defaults.
In contrast the current .csproj for Uno apps are quite large. It would be nice to move a lot of the config into some files inside Uno.
@dansiegel good catch. There's already an issue about this unoplatform/uno.templates#232 |
This change removes the use of shared projects, which cause many issues insde VS, as well as VS Code (incorrect removal, incorrect addition of files, failure to properly explain how to include multiple nuget packages, complex vscode globbing).
6755e47
to
90f32ef
Compare
Thanks for the reviews! Indeed, we can remove most of the content of the android xml file. |
You've also got this bit which can be removed from the Info.plist for the iOS, macOS, & MacCatalyst projects as these will be injected by the iOS/Mac SDK using the msbuild props <key>CFBundleDisplayName</key>
<string>$ext_safeprojectname$</string>
<key>CFBundleIdentifier</key>
<string>com.companyname.$ext_safeprojectname$</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string> |
src/SolutionTemplate/UnoSolutionTemplate.WinUI.netcore/Skia.WPF/Platforms/Skia.Wpf/App.xaml
Show resolved
Hide resolved
The build 63757 found UI Test snapshots differences: Details
|
GitHub Issue (If applicable): closes #
PR Type
What is the new behavior?
This change removes the use of shared projects, which cause many issues insde VS, as well as VS Code (incorrect removal, incorrect addition of files, failure to properly explain how to include multiple nuget packages, complex vscode globbing).
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):