Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom host changes for VS Scenario #3831

Merged
merged 108 commits into from
Sep 24, 2024
Merged

Conversation

aishwaryabh
Copy link
Contributor

@aishwaryabh aishwaryabh commented Sep 20, 2024

Issue describing the changes in this PR

resolves #3814

This PR creates the custom host needed for VS for the core tools scenario. Today we look at the user's local.settings.json to read the values if the function app is dotnet and if the user is running a .NET 8 in-proc app. We then load the appropriate func.dll depending on if we want to load an inproc6 or inproc8. The out-of-process scenario will be addressed in a separate PR.

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

build/Settings.cs Outdated Show resolved Hide resolved
host/src/CoreToolsHost/Program.cs Outdated Show resolved Hide resolved
host/src/CoreToolsHost/Program.cs Outdated Show resolved Hide resolved
host/src/CoreToolsHost/Program.cs Outdated Show resolved Hide resolved
host/src/CoreToolsHost/Program.cs Outdated Show resolved Hide resolved
host/src/CoreToolsHost/Program.cs Show resolved Hide resolved
}
if (!string.IsNullOrEmpty(fileContent))
{
var localSettingsJObject = JsonDocument.Parse(fileContent);
Copy link

@drdamour drdamour Oct 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line gave me a bad weekend :( glad #3866 is addressing some of it (but still not allowing my sweet sweet trailing commas :D )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a custom .NET host which will launch the appropriate func exe, for visual studio use case
4 participants