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

Publish more than once #4

Closed
Apostolique opened this issue Dec 21, 2019 · 4 comments
Closed

Publish more than once #4

Apostolique opened this issue Dec 21, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@Apostolique
Copy link

Apostolique commented Dec 21, 2019

If I run publish once, it works:

dotnet publish -r win-x64 -c Release

But if I run the command a second time, the .dll files don't get moved.

It looks like as long as the NetCoreBeauty file that gets generated exists, the .dll files don't get moved.

@liesauer liesauer self-assigned this Dec 21, 2019
@liesauer liesauer added the bug Something isn't working label Dec 21, 2019
@liesauer
Copy link
Member

you are right, once NetCoreBeauty exists, it won't run any more, so the deps.json won't be modified twice and the .dll won't be moved.

@liesauer liesauer added enhancement New feature or request and removed bug Something isn't working labels Dec 21, 2019
@liesauer
Copy link
Member

this is designed on purpose. the tool expects that the application should be moved or packed and when you publish the second time, the release dir should be nothing in there or be clean up, so when you cross two big different versions this can prevent some weird bugs. but how ever, this will de improved.

@Apostolique
Copy link
Author

Good to know! I'll try to follow that move or pack workflow for my releases.

@liesauer
Copy link
Member

fixed in v1.1.8
two ways to force beauty:

  1. --force
/path/to/ncbeauty --force /path/to/beauty runtimes
  1. ForceBeauty
<ForceBeauty>True</ForceBeauty>

add into PropertyGroup section in your csproj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants