Open
Description
Background
I use publish profiles/.pubxml files extensively when managing my .NET projects. I typically have several profiles with different combinations of framework-dependent/self-contained/ReadyToRun/trimming, and I use them via the VS UI or via dotnet publish /p:PublishProfile=Foo
.
Issues
There are several points where the user experience with .pubxml files is substandard/confusing:
- .pubxml files seem tied to Visual Studio and ASP.NET in some way:
- "ASP.NET Core / Host and deploy / Visual Studio publish profiles" seems to be the main .pubxml docs page
- I don't always use VS for .NET work, and I can't find a way to create a .pubxml file from the
dotnet
CLI
- Opening a .pubxml file in Visual Studio generates warnings
- .pubxml files are ignored in the default .gitignore (I think because ASP.NET sometimes puts passwords in pubxml files)
Questions
All this has left me wondering: should I be using .pubxml files to configure publishing for non-ASP.NET cross-platform .NET applications? Is there a different preferred approach?
This might be more of a discussion than an issue, but discussions are not enabled on this repo. Many apologies if this is not the right venue!