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

Disable inclusion of IIS hosting assets (ANCM & web.config) in publish output when PublishNativeAot=true #29896

Closed
DamianEdwards opened this issue Jan 11, 2023 · 0 comments · Fixed by #29984
Assignees
Labels
Area-NativeAOT Native AOT compilation Area-WebSDK
Milestone

Comments

@DamianEdwards
Copy link
Member

DamianEdwards commented Jan 11, 2023

When publishing for Windows today, the web SDK includes assets required to run the project on IIS, namely the ANCM module (aspnetcorev2_inprocess.dll) and a web.config file. As part of the work to support native AOT publish for ASP.NET Core, we should ensure that these assets are not included in the application output when the <PublishAot> property is set to true in the project file, as IIS hosting does not support native AOT published ASP.NET Core apps, i.e. set the default value of <PublishIISAssets> to false when <PublishAot> is true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NativeAOT Native AOT compilation Area-WebSDK
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants