Commit 7435114
[messaging] Fixed environment variables logic on Build Agent (#23676)
We were setting a custom home folder (.home directory defined in the
DOTNET_CUSTOM_HOME env var) when the dotnet SDK was installed by Pair To
Mac, to encapsulate caches and to not mix them with the global dotnet
installation:
https://github.com/dotnet/macios/blob/main/msbuild/Messaging/Xamarin.Messaging.Build/TaskRunner.cs#L62C4-L66C6
If the user assigns the global dotnet installation to the
"_DotNetRootRemoteDirectory" MSBuild property, the Build agent will end
up overriding the HOME folder with a custom home that doesn't exist
(there's no .home folder in the user profile in the Mac (where dotnet
installs the global caches).
This issue has been revealed from the recent changes that allows the
MSBuild client to bypass the "_DotNetRootRemoteDirectory" property to
the Build Agent:
https://dev.azure.com/devdiv/DevDiv/_git/ClientTools.Platform/pullrequest/663026
The fix consists of setting the custom home only if the dotnet SDK path
to use is not the global one
---------
Co-authored-by: GitHub Actions Autoformatter <[email protected]>1 parent 6602e24 commit 7435114
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
0 commit comments