Commit 16fedbe
committed
Move from
I believe this is a good idea anyway, but this should assist with:
dotnet/android#7451
Which is hitting the error:
error NU1102: Unable to find package Microsoft.NETCore.App.Host.osx-x64 with version (= 3.1.31)
.NET Core 3.1.31 is not released yet and is likely on a private feed.
Also pass `6.0.x` to the [`UseDotNet`][0] yaml task.
After these changes, the build failed with:
error MSB3971: The reference assemblies for ".NETFramework,Version=v6.0" were not found. You might be using an older .NET SDK to target .NET 5.0 or higher. Update Visual Studio and/or your .NET SDK.
Mono MSBuild probably can't build .NET 6 projects?
So I fixed various things in the build:
* Use `dotnet build` instead of MSBuild, remove NuGet commands
* No tests were running:
```
[warning] Project file(s) matching the specified pattern were not found.
```
* Fixed the path to test assemblies!
* Upload artifacts based on the
* Use `$(PackageOutputPath)` instead of `$(OutputPath)`
[0]: https://learn.microsoft.com/azure/devops/pipelines/tasks/tool/dotnet-core-tool-installernetcoreapp3.1 to net6.0
1 parent 0be567a commit 16fedbe
File tree
6 files changed
+13
-29
lines changed- src
- Microsoft.Android.Build.BaseTasks
- Xamarin.Android.Tools.AndroidSdk
- tests
- Microsoft.Android.Build.BaseTasks-Tests
- Xamarin.Android.Tools.AndroidSdk-Tests
- tools/ls-jdks
6 files changed
+13
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 45 | + | |
58 | 46 | | |
59 | | - | |
60 | | - | |
61 | 47 | | |
62 | 48 | | |
63 | 49 | | |
64 | 50 | | |
65 | 51 | | |
66 | | - | |
| 52 | + | |
67 | 53 | | |
68 | 54 | | |
69 | 55 | | |
| |||
73 | 59 | | |
74 | 60 | | |
75 | 61 | | |
76 | | - | |
| 62 | + | |
77 | 63 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 64 | | |
82 | 65 | | |
83 | | - | |
| 66 | + | |
84 | 67 | | |
85 | 68 | | |
86 | | - | |
87 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments