@@ -128,7 +128,7 @@ private string ExecuteDotnetToolPipeline(
128128 var outputDirectory = Path . IsPathRooted ( nupkgDirectory ) ? nupkgDirectory : Path . Combine ( RepoRootPath , nupkgDirectory ) ;
129129 EnsureDirectoryExists ( outputDirectory ) ;
130130
131- var targetFramework = ResolveTargetFramework ( projectPath , "net9 .0" ) ;
131+ var targetFramework = ResolveTargetFramework ( projectPath , "net10 .0" ) ;
132132 var publishDirectory = Path . Combine ( Path . GetDirectoryName ( projectPath ) ! , "bin" , Configuration , targetFramework , "publish" ) ;
133133 var projectDocument = XDocument . Load ( projectPath ) ;
134134 var propertyGroups = projectDocument . Root ? . Elements ( ) . Where ( x => x . Name . LocalName == "PropertyGroup" ) . ToList ( ) ?? new List < XElement > ( ) ;
@@ -280,7 +280,7 @@ private string ExecuteDotnetToolPipeline(
280280 private string BuildAndroidPackageCore ( )
281281 {
282282 var projectPath = Path . Combine ( RepoRootPath , "src" , "McpServerManager.Android" , "McpServerManager.Android.csproj" ) ;
283- var targetFramework = ResolveTargetFramework ( projectPath , "net9 .0-android" ) ;
283+ var targetFramework = ResolveTargetFramework ( projectPath , "net10 .0-android" ) ;
284284 var version = ResolveVersionDetails ( PackageVersion ) ;
285285 var artifactsDirectory = ArtifactsDirectoryPath ;
286286 EnsureDirectoryExists ( artifactsDirectory ) ;
@@ -354,14 +354,14 @@ private string BuildAndroidPackageCore()
354354 private void DeployAndroidCore ( string deviceSerial )
355355 {
356356 var projectPath = Path . Combine ( RepoRootPath , "src" , "McpServerManager.Android" , "McpServerManager.Android.csproj" ) ;
357- var targetFramework = ResolveTargetFramework ( projectPath , "net9 .0-android" ) ;
357+ var targetFramework = ResolveTargetFramework ( projectPath , "net10 .0-android" ) ;
358358
359359 if ( ! ShouldExecuteAction ( $ "Deploy Android app to { deviceSerial } ") )
360360 {
361361 return ;
362362 }
363363
364- var devices = InvokeProcess ( "adb" , new List < string > { "devices" , "-l" } , RepoRootPath , true ) ;
364+ var devices = InvokeProcess ( ResolveAdbPath ( ) , new List < string > { "devices" , "-l" } , RepoRootPath , true ) ;
365365 foreach ( var line in devices . StandardOutputLines )
366366 {
367367 Info ( line ) ;
@@ -430,7 +430,7 @@ private string BuildDesktopDebCore(bool installAfterBuild)
430430 "-r" ,
431431 runtimeId ,
432432 "-f" ,
433- "net9 .0" ,
433+ "net10 .0" ,
434434 "--self-contained" ,
435435 "true" ,
436436 "-p:PublishSingleFile=true" ,
@@ -662,9 +662,9 @@ private DeploymentResult DeployAndroidSelection(string targetName, bool expectEm
662662 {
663663 try
664664 {
665- if ( ! CommandExists ( "adb" ) )
665+ if ( ! CommandExists ( "adb" ) && ResolveAdbPath ( ) == "adb" )
666666 {
667- return CreateDeploymentResult ( targetName , "Skipped" , "adb was not found in PATH." ) ;
667+ return CreateDeploymentResult ( targetName , "Skipped" , "adb was not found in PATH or Android SDK ." ) ;
668668 }
669669
670670 var resolution = ResolveAndroidDevice ( expectEmulator , requestedSerial ) ;
0 commit comments