-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Folder publish should publish empty folders #12475
Comments
Related: https://github.com/dotnet/cli/issues/1396 [but it's soooo old (project.json) that it's only barely relevant] @dasMulli linked issue is a better xref: aspnet/AspNetCoreModule#30 |
Any update on this issue? |
Looks like it's still "up for grabs." I'm still doing this ... <Target Name="CreateLogsFolder" AfterTargets="Publish">
<MakeDir Directories="$(PublishDir)Logs"
Condition="!Exists('$(PublishDir)Logs')" />
<WriteLinesToFile File="$(PublishDir)Logs\.log"
Lines="Generated file"
Overwrite="True"
Condition="!Exists('$(PublishDir)Logs\.log')" />
</Target> ... not so good, but it works. |
NuGet and others use marker files ( VS actually uses a |
For me, it does not work. I am publishing web applications under Default Web Site. And this command does not create any folders. |
Does it need to have an option like |
Would this be a good way to indicate to create an empty folder on publish if it doesn't exist? <ItemGroup>
<Folder Include="wwwroot\images\" />
</ItemGroup> |
Is this issue supposed to be fixed in SDK, or msbuild? |
Currently folder publish only publishes folders with files in them.
expected:
Folder publish should publish empty folders as well.
The text was updated successfully, but these errors were encountered: