This article is a mirror article of machine translation, please click here to jump to the original article.

View: 2004|Reply: 0

[Source] A bug about dotnet-cli publishing the publish project PublishUrl

[Copy link]
Posted on 9/12/2024 5:34:37 PM | | | |
Requirements: Build a release package using the dotnet 6 command line, and it doesn't feel like it's being executed according to the configuration.

In the new construction of the projectProperties\PublishProfiles\FolderProfile.pubxmlThe configuration file is as follows:


Publishing with VS 2022 right click has no problem, but publishing with the dotnet-cli command line always feels like no configuration is being read.

The dotnet-cli command is as follows:

Finally, the discovery is a bug for dotnet-cli, documentation:The hyperlink login is visible.

In the .pubxml file:

PublishUrl is used by Visual Studio to represent the publish target.
The CLI uses PublishDir to represent the publishing target.



solution

The new PublishDir configuration is as follows:

Reference:

The hyperlink login is visible.
The hyperlink login is visible.





Previous:ERP Kingdee Cloud Starry Sky (3) Single sign-on to any user account
Next:MySQL database /var/lib/mysql/ binlog takes up space
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com