I tried to create .nuspec file in a different folder by giving path but it is giving me error
Nuget.exe spec ..\MYDEMOFOLDER
Nuget.exe pack ..\MYDEMOFOLDER\MYPROJECT.csproj
pause
want to create MYPROJECT.nuspec
in ..\MYDEMOFOLDER
folder location
getting error to create nuspec file
The package ID '..\MYDEMOFOLDER' contains invalid characters. Examples of valid package IDs in
clude 'MyPackage' and 'MyPackage.Sample'.
Unfortunately
nuget.exe spec
doesn't work like that. It expects a package ID.If you need to create a nuspec in a given folder, you will need to change to that directory.