Skip to content

msbuild pack specify version from command line? #4235

@red8888

Description

@red8888

This is what I do with nuget pack now:

nuget.exe pack myapp.csproj -IncludeReferencedProjects -Properties Configuration=Release;prerelease=INeedToSetThisFromTheCommandNotStaticConfigFile-123

msbuild pack says no:

msbuild myapp.csproj /T:pack /p:Configuration=Release;prerelease="-INeedToSetThisFromTheCommandNotStaticConfigFile-123"

prerelease=-INeedToSetThisFromTheCommandNotStaticConfigFile-123 : The term 'prerelease=-INeedToSetThisFromTheCommandNotStaticConfigFile-123' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions