Skip to content

Avoid copying http-client.env.json to the output folder - #50280

Merged
wtgodbe merged 1 commit into
dotnet:mainfrom
Varorbc:main
Jul 27, 2026
Merged

wtgodbe merged 1 commit into
dotnet:mainfrom
Varorbc:main

Conversation

@Varorbc

@Varorbc Varorbc commented Aug 15, 2025

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, StaticWebAssetsSDK label Aug 15, 2025
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Thanks for your PR, @@Varorbc.
To learn about the PR process and branching schedule of this repo, please take a look at the SDK PR Guide.

<Content Include="**\*.json" ExcludeFromSingleFile="true" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);$(DefaultWebContentItemExcludes)" Condition="'$(ExcludeConfigFilesFromBuildOutput)'=='true'" />

<!-- Avoid copying http-client.env.json to the output directory. -->
<Content Update="**\http-client.env.json" CopyToOutputDirectory="Never" CopyToPublishDirectory="Never" />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do these files actually need to be Content items? Could they be added to DefaultItemExcludes above, on line 25.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Previously, I added it to DefaultItemExcludes, which resulted in the file not being visible in Vs.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe it can/should be a None item instead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just throwing ideas around. Someone from the SDK team will know better.

@github-actions

Copy link
Copy Markdown
Contributor

Due to lack of recent activity, this PR has been labeled as 'Stale'. It will be closed if no further activity occurs within 7 more days. Any new comment will remove the label.

@github-actions github-actions Bot added stale and removed stale labels Feb 24, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Due to lack of recent activity, this PR has been labeled as 'Stale'. It will be closed if no further activity occurs within 7 more days. Any new comment will remove the label.

@github-actions github-actions Bot added the stale label Jun 9, 2026
@Varorbc

Varorbc commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

@wtgodbe ping

@github-actions github-actions Bot removed the stale label Jun 9, 2026

@wtgodbe wtgodbe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but @javiercn can you take a look as well?

@wtgodbe
wtgodbe merged commit e8bcb34 into dotnet:main Jul 27, 2026
25 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, StaticWebAssetsSDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

http-client.env.json incorrectly copied to publish output directory

3 participants