Executing
nuget.exe pack ..\\.nuget\\nuget.exe pack ..\\pathToProject\\myproject.nuspec -IncludeReferencedProjects -Prop Configuration=Release
When using token replacement, make sure your are trying to nuget pack the csproj file, not the nuspec file
nuget pack myproject.csproj -IncludeReferencedProjects -Prop Configuration=Release
The nuspec is picked up automatically when given the same name as the csproj file.