@@ -13,6 +13,7 @@ import { ext } from "../extensionVariables";
1313import { IHostJsonV2 , INetheriteTaskJson , ISqlTaskJson , IStorageTaskJson } from "../funcConfig/host" ;
1414import { localize } from "../localize" ;
1515import { cpUtils } from "./cpUtils" ;
16+ import { dotnetUtils } from "./dotnetUtils" ;
1617import { hasNodeJsDependency } from "./nodeJsUtils" ;
1718import { pythonUtils } from "./pythonUtils" ;
1819import { venvUtils } from "./venvUtils" ;
@@ -107,14 +108,9 @@ export namespace durableUtils {
107108 const csProjContents : string = await AzExtFsExtra . readFile ( csProjPaths [ 0 ] . path ) ;
108109
109110 return new Promise ( ( resolve ) => {
110- // eslint-disable-next-line @typescript-eslint/no-explicit-any
111- xml2js . parseString ( csProjContents , { explicitArray : false } , ( err : any , result : any ) : void => {
111+ xml2js . parseString ( csProjContents , ( err : Error , result : unknown ) : void => {
112112 if ( result && ! err ) {
113- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
114- let packageReferences = result ?. [ 'Project' ] ?. [ 'ItemGroup' ] ?. [ 0 ] ?. PackageReference ?? [ ] ;
115- packageReferences = ( packageReferences instanceof Array ) ? packageReferences : [ packageReferences ] ;
116- // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
117- resolve ( packageReferences . some ( p => / D u r a b l e / i. test ( p ?. [ '$' ] ?. [ 'Include' ] ?? '' ) ) ) ;
113+ resolve ( dotnetUtils . getPackageReferences ( result ) . some ( p => / D u r a b l e / i. test ( p . Include ) ) ) ;
118114 }
119115 } ) ;
120116 } ) ;
0 commit comments