Skip to content

Commit

Permalink
Fallback to default targetFramework for desktop platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneySprings committed Nov 19, 2024
1 parent 31e97ad commit b66c896
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/VSCode.Extension/controllers/configurationController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ export class ConfigurationController {
return ConfigurationController.getSetting<boolean>(res.configIdUninstallApplicationBeforeInstalling, true);
}
public static getTargetFramework(): string | undefined {
return ConfigurationController.project?.frameworks.find(it => {
return it.includes(ConfigurationController.device?.platform ?? 'undefined');
});
const framework = ConfigurationController.project?.frameworks.find(it => it.includes(ConfigurationController.device?.platform ?? 'undefined'));
if (framework === undefined && (ConfigurationController.isWindows() || ConfigurationController.isMacCatalyst()))
return ConfigurationController.project?.frameworks.find(it => !it.includes('-'));

return framework;
}
public static getDebuggerOptions(): any {
return {
Expand Down

0 comments on commit b66c896

Please sign in to comment.