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

Add a parameter to pass through the initial assembly name #53599

Merged

Conversation

jasonmalinowski
Copy link
Member

@jasonmalinowski jasonmalinowski commented May 21, 2021

Right now we don't get the command line string for options until the full design time build has completed; however the project system can still give us the evaluated string which is likely to be close enough. This allows features that want to get symbol names for source to have a better chance of having something that they can use and look up in caches or in the cloud.

This unblocks dotnet/project-system#7216.

@jasonmalinowski jasonmalinowski self-assigned this May 21, 2021
@jasonmalinowski jasonmalinowski requested a review from a team as a code owner May 21, 2021 18:43
@jasonmalinowski jasonmalinowski changed the title Add a property to pass through the initial assembly name Add a parameter to pass through the initial assembly name May 21, 2021
Copy link
Contributor

@jmarolf jmarolf left a comment

Choose a reason for hiding this comment

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

I assume the evaluated-model-mode doesn't show diagnostics

@jasonmalinowski
Copy link
Member Author

@jmarolf: it shouldn't; right now if we aren't passing this the default assembly name becomes gibberish with a random GUID, which would be even worse for diagnostics!


/// <inheritdoc cref="CreateProjectContextAsync"/>
[Obsolete("Use CreateProjectContextAsync instead")]
IWorkspaceProjectContext CreateProjectContext(string languageName, string projectUniqueName, string projectFilePath, Guid projectGuid, object? hierarchy, string? binOutputPath, string? assemblyName);
Copy link
Member

@sharwell sharwell May 21, 2021

Choose a reason for hiding this comment

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

😕 Adding a method which from day 1 is obsolete?

Copy link
Member Author

Choose a reason for hiding this comment

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

So this is "fun": we obsoleted those methods, the project system tried moving to the new methods; that broke, so they rolled back, and we haven't fixed it. @CyrusNajmabadi what's the next step for resolving that?

Copy link
Member

Choose a reason for hiding this comment

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

There was an RPS regression when we tried using the new free-threaded API. The logs for that regression have no expired, so to understand that regression will require another PS insertion.

Right now we don't get the command line string for options until the
full design time build has completed; however the project system can
still give us the evaluated string which is likely to be close
enough. This allows features that want to get symbol names for source
to have a better chance of having something that they can use and
look up in caches or in the cloud.
@jasonmalinowski jasonmalinowski force-pushed the add-api-for-adding-assembly-name branch from 677c1ad to c2388e7 Compare May 27, 2021 20:05
@jasonmalinowski jasonmalinowski merged commit ce652d5 into dotnet:main May 27, 2021
@ghost ghost added this to the Next milestone May 27, 2021
@jasonmalinowski jasonmalinowski deleted the add-api-for-adding-assembly-name branch May 27, 2021 23:56
@jasonmalinowski jasonmalinowski restored the add-api-for-adding-assembly-name branch June 3, 2021 17:31
@RikkiGibson RikkiGibson modified the milestones: Next, 17.0.P2 Jun 29, 2021
@jasonmalinowski jasonmalinowski deleted the add-api-for-adding-assembly-name branch August 23, 2021 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants