Skip to content

Publish profile (.pubxml file) UX and ownership are confusing #21427

Open
@rgwood

Description

@rgwood

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:

  1. .pubxml files seem tied to Visual Studio and ASP.NET in some way:
  2. Opening a .pubxml file in Visual Studio generates warnings
  3. .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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions