Skip to content

[AOT] Clean up AOT warnings in the SPA Proxy project #46036

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

Closed
1 task done
amcasey opened this issue Jan 11, 2023 · 7 comments · Fixed by #46406
Closed
1 task done

[AOT] Clean up AOT warnings in the SPA Proxy project #46036

amcasey opened this issue Jan 11, 2023 · 7 comments · Fixed by #46406
Assignees
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates linker-friendliness Tracking linker friendliness NativeAOT
Milestone

Comments

@amcasey
Copy link
Member

amcasey commented Jan 11, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Split out from #45473 - #45604 suppressed AOT checking of the SPA Proxy project:

<EnableAOTAnalyzer>false</EnableAOTAnalyzer>

Describe the solution you'd like

Enable AOT checking and address all warnings.

Additional context

No response

@amcasey amcasey self-assigned this Jan 11, 2023
@amcasey amcasey added linker-friendliness Tracking linker friendliness NativeAOT labels Jan 11, 2023
@mkArtakMSFT mkArtakMSFT added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jan 18, 2023
@javiercn
Copy link
Member

@amcasey I'm not sure we need to do anything since this is a dev-only feature.

Spa proxy is a development only feature that is not used during deployment/aot. So, I do not think we need to do anything here? If there is a way we can configure this project to trim the reference as part of the app publishing, that would work great.

@mkArtakMSFT mkArtakMSFT added bug This issue describes a behavior which is not expected - a bug. and removed bug This issue describes a behavior which is not expected - a bug. labels Jan 24, 2023
@mkArtakMSFT
Copy link
Contributor

Closing based on @javiercn 's comment above as it seems there is no real value due to these warnings are specific only to dev-time enabled feature.

@mkArtakMSFT mkArtakMSFT closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2023
@amcasey
Copy link
Member Author

amcasey commented Jan 24, 2023

@mkArtakMSFT I had a quick call with @javiercn about this and it sounded like there was still a bit of work. I haven't checked it out yet, but it sounds like maybe this project is unnecessarily included as a runtime dependency and prevents some trimming that would otherwise happen. Or possibly he just wanted to confirm that that wasn't the case.

@Nick-Stanton Nick-Stanton reopened this Jan 24, 2023
@Nick-Stanton Nick-Stanton added this to the Backlog milestone Jan 24, 2023
@ghost
Copy link

ghost commented Jan 24, 2023

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@amcasey
Copy link
Member Author

amcasey commented Jan 30, 2023

Okay, some notes from poking around:

So, (1) the SPA proxy won't be used by the published app and (2) it's not referenced in a way that should affect trimming.

As a hygiene improvement, we could refrain from publishing the DLL but, AFAICT, that would actually require deleting it after publishing (since there's no built-in facility for controlling the publication of nuget references) and putting that code in the template seems kind of ugly.

@amcasey
Copy link
Member Author

amcasey commented Jan 30, 2023

If @javiercn agrees, I think we can just close this.

amcasey added a commit to amcasey/aspnetcore that referenced this issue Feb 2, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates linker-friendliness Tracking linker friendliness NativeAOT
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants