-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Avoid copying http-client.env.json to the output folder #50280
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for your PR, @@Varorbc. |
src/StaticWebAssetsSdk/Sdk/Sdk.StaticWebAssets.StaticAssets.ProjectSystem.props
Outdated
Show resolved
Hide resolved
@@ -40,6 +40,9 @@ Copyright (c) .NET Foundation. All rights reserved. | |||
<Content Include="**\*.config" ExcludeFromSingleFile="true" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);$(DefaultWebContentItemExcludes)" Condition="'$(ExcludeConfigFilesFromBuildOutput)'=='true'" /> | |||
<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" /> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Fixes dotnet/aspnetcore#63263