-
Notifications
You must be signed in to change notification settings - Fork 516
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
[dotnet] Add support for universal apps. #11983
Merged
Merged
Changes from 6 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
87de6ea
[runtime] Add support for finding assemblies in an RID-specific subdi…
rolfbjarne 6fe54cb
[dotnet] Only trim when building a specific RuntimeIdentifier.
rolfbjarne 9a9562c
[tests] Add unified simple test app for all platforms we support.
rolfbjarne 0021c2b
[MachO] Make StaticLibrary.IsStaticLibrary work with files shorter th…
rolfbjarne 7aec86f
[tools] Create a PathUtils class and move some shareable code there.
rolfbjarne 0af6ec5
[MachO] Add a MachO.IsMachOFile method
rolfbjarne ba83560
[tools] Move parts of the binary file comparison to a helper file to …
rolfbjarne f864ff3
[tools] Move another IsUptodate overload to the FileCopier file to in…
rolfbjarne 5955cd1
[tests] Add a complex test library project with resources and app con…
rolfbjarne 724d0fe
[dotnet] Set a default RuntimeIdentifier and validate that we get a v…
rolfbjarne e1f31c6
[tests] Quote parameters containing semicolons when passed to 'dotnet…
rolfbjarne 003cf30
[dotnet] Don't execute ComputeResolvedFileToPublishList if we're in t…
rolfbjarne 5c50a2f
[msbuild] Implement a MergeAppBundles task to merge two (or more) app…
rolfbjarne 4f8e9a8
[tests] Add new tests for merging app bundles
rolfbjarne 91311a0
[dotnet] Implement support for multiple RuntimeIdentifiers.
rolfbjarne 81b139e
[dotnet] Ignore RuntimeIdentifier if RuntimeIdentifiers is set.
rolfbjarne 62865cb
Merge remote-tracking branch 'origin/main' into HEAD
rolfbjarne a32d605
[msbuild] Fix symlink check to check for file presence first.
rolfbjarne 4526a5e
[msbuild] Copy directories correctly.
rolfbjarne bc9e007
[tests] Updated list of not-yet-localized error messages.
rolfbjarne 718d954
[tests] Improve error reporting when SetUp fails in MergeAppBundleTas…
rolfbjarne f1cc00c
[tests] Update tests according to the actual error messages.
rolfbjarne 7179cac
[dotnet] Set the default RuntimeIdentifier earlier.
rolfbjarne 2f1667e
[tests] Remove MSBuildSDKsPath from the environment before invoking m…
rolfbjarne 70d0f86
Merge remote-tracking branch 'origin/main' into HEAD
rolfbjarne 889cf99
[dotnet] Compile entitlements before signing the merged app bundle.
rolfbjarne 5ecb7ae
[msbuild] List all files causing errors.
rolfbjarne 2a203b5
[msbuild] Compute input files slightly differently for CreateMergedAp…
rolfbjarne f6e9f55
[runtime] Add a xamarin_locate_app_resource function.
rolfbjarne 608dfb3
[dotnet] Make the globalization data file an architecture-specific file.
rolfbjarne a78be0a
[dotnet] Ignore Info.plist files from the input app bundles when merg…
rolfbjarne e68831b
[dotnet] Compile the app manifest in the outer build for multi-rid apps.
rolfbjarne 7f505c3
[dotnet] Rework how we compute the TargetArchitectures property.
rolfbjarne 9f82694
[msbuild] Use the same prefix in ErrorHelper as we do in other MSBuil…
rolfbjarne df369da
[MachO] Simplify code a bit according to review.
rolfbjarne c5dad31
[dotnet] Don't create debug settings / configurations for inner builds.
rolfbjarne 1fa1cf3
[dotnet] Use the correct relative paths for Info.plist for all platfo…
rolfbjarne 82fc13e
[tests] Fix assertions regarding errors after recent changes.
rolfbjarne 9a406d2
[tests] Fix makefile for ComplexAssembly to do nothing on a rebuild.
rolfbjarne 2f65937
[tests] Remove BOM in new file.
rolfbjarne 3497373
[dotnet] Compute 'ComputedPlatform' correctly for outer multi-rid bui…
rolfbjarne 31b48eb
[tests] Copy more supporting files for building monotouch-test with .…
rolfbjarne 6d6db24
[dotnet] Use relative paths in a few places.
rolfbjarne 8aff15a
[tests] Don't run parallel make in tests/common/TestProjects/ComplexA…
rolfbjarne 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 contains 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 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 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 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,19 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
using Foundation; | ||
|
||
namespace MySimpleApp | ||
{ | ||
public class Program | ||
{ | ||
static int Main (string[] args) | ||
{ | ||
GC.KeepAlive (typeof (NSObject)); // prevent linking away the platform assembly | ||
|
||
Console.WriteLine (Environment.GetEnvironmentVariable ("MAGIC_WORD")); | ||
|
||
return 0; | ||
} | ||
} | ||
} |
This file contains 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,6 @@ | ||
<?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> | ||
</dict> | ||
</plist> |
This file contains 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,9 @@ | ||
TOP=../../../.. | ||
|
||
include $(TOP)/Make.config | ||
|
||
build: | ||
$(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) | ||
|
||
run: | ||
$(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) -t:Run |
This file contains 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,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0-maccatalyst</TargetFramework> | ||
</PropertyGroup> | ||
<Import Project="..\shared.csproj" /> | ||
</Project> |
This file contains 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,20 @@ | ||
TOP=../../.. | ||
|
||
include $(TOP)/Make.config | ||
|
||
prepare: | ||
cd .. && $(MAKE) global.json NuGet.config | ||
rm -Rf */bin */obj | ||
|
||
all-ios: prepare | ||
$(DOTNET6) build iOS/*.csproj /bl | ||
|
||
all-mac: prepare | ||
$(DOTNET6) build macOS/*.csproj /bl | ||
|
||
run-mac: | ||
./macOS/bin/Debug/net6.0-macos/osx-x64/$(notdir $(CURDIR)).app/Contents/MacOS/$(notdir $(CURDIR)) | ||
|
||
diag: | ||
cd .. && $(MAKE) global.json NuGet.config | ||
$(DOTNET6) build /v:diag *binlog |
This file contains 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,8 @@ | ||
<?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> | ||
<!-- We need this because some tests will build this project for 32-bit targets --> | ||
<key>MinimumOSVersion</key> | ||
<string>10.0</string></dict> | ||
</plist> |
This file contains 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,9 @@ | ||
TOP=../../../.. | ||
|
||
include $(TOP)/Make.config | ||
|
||
build: | ||
$(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) | ||
|
||
run: | ||
$(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) -t:Run |
This file contains 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,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0-ios</TargetFramework> | ||
</PropertyGroup> | ||
<Import Project="..\shared.csproj" /> | ||
</Project> |
This file contains 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,6 @@ | ||
<?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> | ||
</dict> | ||
</plist> |
This file contains 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,9 @@ | ||
TOP=../../../.. | ||
|
||
include $(TOP)/Make.config | ||
|
||
build: | ||
$(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) | ||
|
||
run: | ||
$(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) -t:Run |
This file contains 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,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0-macos</TargetFramework> | ||
</PropertyGroup> | ||
<Import Project="..\shared.csproj" /> | ||
</Project> |
This file contains 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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
|
||
<ApplicationTitle>MySimpleApp</ApplicationTitle> | ||
<ApplicationId>com.xamarin.mysimpleapp</ApplicationId> | ||
<ApplicationVersion>3.14</ApplicationVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="../*.cs" /> | ||
<None Include="Info.plist" /> | ||
</ItemGroup> | ||
</Project> |
This file contains 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,6 @@ | ||
<?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> | ||
</dict> | ||
</plist> |
This file contains 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,9 @@ | ||
TOP=../../../.. | ||
|
||
include $(TOP)/Make.config | ||
|
||
build: | ||
$(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) | ||
|
||
run: | ||
$(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) -t:Run |
This file contains 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,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0-tvos</TargetFramework> | ||
</PropertyGroup> | ||
<Import Project="..\shared.csproj" /> | ||
</Project> |
This file contains 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 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 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.
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.
why reset the position ?
as the reader is not used before being disposed
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.
This was copied from somewhere else - I'll remove this line.