Skip to content

[release/5.0] Port API fixes for single file apps#41385

Merged
agocke merged 5 commits into
release/5.0from
backport/pr-41019-to-release/5.0
Aug 26, 2020
Merged

[release/5.0] Port API fixes for single file apps#41385
agocke merged 5 commits into
release/5.0from
backport/pr-41019-to-release/5.0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Aug 26, 2020

Backport of #41019 and #40974 to release/5.0

/cc @agocke @mateoatr

Customer Impact

This PR fixes two APIs: GetCommandLineArgs and CodeBase. GetCommandLineArgs is changed such that the first argument is a path to the single-file binary, instead of the non-existent entry point module path. CodeBase is changed to throw instead of return a file that doesn't exist on disk.

The prior behavior of these APIs is incorrect and is corrected for 6.0. Backporting these fixes prevents confusion and later breaking changes.

Testing

Unit tests have been added for the behavior of these APIs in single file bundles.

Risk

Low. These changes only affect new (bundle) single-file scenarios, and are constrained to the specific APIs being changed, one of which is obsolete.

@Dotnet-GitSync-Bot
Copy link
Copy Markdown
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

Also adds test for Module.FullyQualifiedName

(cherry picked from commit 0546bd5)
@agocke agocke changed the title [release/5.0] Return host's file path when using Environment.GetCommandLineArgs()[0] in single-file apps [release/5.0] Port API fixes for single file apps in single-file apps Aug 26, 2020
@ghost
Copy link
Copy Markdown

ghost commented Aug 26, 2020

Tagging subscribers to this area: @swaroop-sridhar, @agocke
See info in area-owners.md if you want to be subscribed.

@agocke agocke added this to the 5.0.0 milestone Aug 26, 2020
@jeffschwMSFT
Copy link
Copy Markdown
Member

Approved. Please fill out the template, get a cr, and a clean ci.

@agocke agocke changed the title [release/5.0] Port API fixes for single file apps in single-file apps [release/5.0] Port API fixes for single file apps Aug 26, 2020
@agocke agocke requested review from mateoatr and vitek-karas August 26, 2020 19:21
@agocke agocke merged commit 94e7aa7 into release/5.0 Aug 26, 2020
@agocke agocke deleted the backport/pr-41019-to-release/5.0 branch August 26, 2020 19:48
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants