File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Messaging/Xamarin.Messaging.Build Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1515 https://dev.azure.com/azure-public/vside/_artifacts/feed/xamarin-impl/NuGet/Xamarin.Messaging.Client/
1616
1717 -->
18- <MessagingVersion Condition =" '$(MessagingVersion)' == ''" >[18.0.136-g9e200fbc6d ]</MessagingVersion >
18+ <MessagingVersion Condition =" '$(MessagingVersion)' == ''" >[18.0.280-ga047b642b9 ]</MessagingVersion >
1919 <HotRestartVersion >[17.14.133-g001ce2ac7a]</HotRestartVersion >
2020 </PropertyGroup >
2121 <Import Project =" $(MSBuildThisFileDirectory)../Directory.Build.props" />
Original file line number Diff line number Diff line change @@ -60,15 +60,19 @@ void SetDotNetVariables ()
6060 var xmaDotNetPath = default ( string ) ;
6161
6262 if ( IsValidDotNetInstallation ( xmaDotNetRootPath ) ) {
63- //If the XMA dotnet is already installed, we use it and also declare a custom home for it (for NuGet restore and caches)
64- Environment . SetEnvironmentVariable ( "DOTNET_CUSTOM_HOME" , Path . Combine ( xmaSdkRootPath , ".home" ) ) ;
6563 xmaDotNetPath = GetDotNetPath ( xmaDotNetRootPath ) ;
6664 } else {
6765 //In case the XMA dotnet has not been installed yet, we use the default dotnet installation
6866 xmaDotNetPath = GetDefaultDotNetPath ( ) ;
6967 xmaDotNetRootPath = Path . GetDirectoryName ( xmaDotNetPath ) ;
7068 }
7169
70+ //We want to define a custom home for dotnet only if it's the Pair To Mac SDK installation
71+ if ( xmaDotNetRootPath . StartsWith ( MessagingContext . BasePath , StringComparison . OrdinalIgnoreCase ) ) {
72+ //The custom home is used for storing caches and not mix them with the global installation (NuGet, dotnet, etc.)
73+ Environment . SetEnvironmentVariable ( "DOTNET_CUSTOM_HOME" , Path . Combine ( xmaSdkRootPath , ".home" ) ) ;
74+ }
75+
7276 var pathContent = GetPathContent ( ) ;
7377 //We add the XMA dotnet path first so it has priority over the default dotnet installation
7478 var newPathContent = $ "{ xmaDotNetRootPath } :{ pathContent } ";
You can’t perform that action at this time.
0 commit comments