in rider/src/main/kotlin/com/jetbrains/aspire/rider/orchestration/MauiProjectOrchestrationHandler.kt [87:104]
override suspend fun findExistingServiceDefaults(project: Project): Path? {
val dotnetProjects = project.serviceAsync<WorkspaceModel>().findProjects()
for (dotnetProject in dotnetProjects) {
if (dotnetProject.isAspireSharedProject()) {
val projectFile = dotnetProject.url?.virtualFile?.toNioPath()
if (projectFile == null) {
LOG.warn("Unable to find a virtual file for the Aspire ServiceDefaults project")
continue
}
val isMauiCoreInstalled = isNuGetPackageInstalled(MAUI_CORE_PACKAGE_NAME, dotnetProject, project)
if (isMauiCoreInstalled == true) {
return projectFile
}
}
}
return null
}