Skip to content

Customization of project version for a path with mutiple types #7180

@frohlichcortezh

Description

@frohlichcortezh

Code of Conduct

  • I agree to follow this project's Code of Conduct

What would you like to see changed?

Image

I have a path with a .csproj and .nuspec file, the .nuspec file has a placeholder.
Ive tried filtering the files for dotnet, but I guess that since .nuspec isnt a dotnet type, my filter didn`t work.

               {
                    "background": "#512bd4",
                    "foreground": "#ffffff",
                    "powerline_symbol": "\ue0b0",
                    "properties": {
                        "always_enabled": true
                    },
                    "dotnet_files": [".csproj"],
                    "nuspec_files" : [""],
                    "style": "powerline",
                    "template": " {{ if .Target }}\uf1b3 {{ .Target }} {{ end }}{{ if and (.Version) (not (contains .Version \"$\")) }}\uf02b v{{ .Version }}{{ end }} ",
                    "type": "project"
                },

I couldn't find a way to remove the .nuspec version, I guess I should try the template property ?

Also, the projects I'm working on use the AssemblyVersion property which seems not supported.

It would be nice to see both the project version and target framework.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions