Skip to content

Conversation

@Varorbc
Copy link

@Varorbc Varorbc commented Aug 15, 2025

@github-actions github-actions bot added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch label Aug 15, 2025
@dotnet-policy-service
Copy link
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
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
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
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
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants