Getting error as Please specify either -PackagesDirectory or -SolutionDirectory The Next CEO of Stack OverflowMissing nuget packages error while using msbuild from command lineHow can I configure a single packageRepository directory for multiple solutions?How to enable nugets package restore in Visual Studio 2015?NuGet Packages are missingGetting “project” nuget configuration is invalid errorPick a network share for NuGet's repositoryPathHow can I use msbuild without project.assets.json or nuget restore?Package destination of restore of .net-core projects is always global package directoryAssets file project.assets.json not found. Run a NuGet package restoreNugets packages from .net Standard 2.0 projects not showing in NuGet packages tab in TeamCity
What's the point of interval inversion?
Can a single photon have an energy density?
Why do professional authors make "consistency" mistakes? And how to avoid them?
What can we do to stop prior company from asking us questions?
MAZDA 3 2006 (UK) - poor acceleration then takes off at 3250 revs
Increase performance creating Mandelbrot set in python
If the heap is initialized for security, then why is the stack uninitialized?
% symbol leads to superlong (forever?) compilations
How did people program for Consoles with multiple CPUs?
How to write papers efficiently when English isn't my first language?
How do we know the LHC results are robust?
India just shot down a satellite from the ground. At what altitude range is the resulting debris field?
How does practicing restraint and performing actions of merit purify the mind?
What does this shorthand mean?
The King's new dress
How to understand which control sequence in undefined in "Undefined control sequence." message?
Does it take more energy to get to Venus or to Mars?
How to start emacs in "nothing" mode (`fundamental-mode`)
WOW air has ceased operation, can I get my tickets refunded?
Apart from "berlinern", do any other German dialects have a corresponding verb?
What happens if you roll doubles 3 times then land on "Go to jail?"
Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?
Grabbing quick drinks
Need some help with wall behind rangetop
Getting error as Please specify either -PackagesDirectory or -SolutionDirectory
The Next CEO of Stack OverflowMissing nuget packages error while using msbuild from command lineHow can I configure a single packageRepository directory for multiple solutions?How to enable nugets package restore in Visual Studio 2015?NuGet Packages are missingGetting “project” nuget configuration is invalid errorPick a network share for NuGet's repositoryPathHow can I use msbuild without project.assets.json or nuget restore?Package destination of restore of .net-core projects is always global package directoryAssets file project.assets.json not found. Run a NuGet package restoreNugets packages from .net Standard 2.0 projects not showing in NuGet packages tab in TeamCity
I'm trying to build my solution with existing build definition.
Here is the issue: I added a new separate solution to existing project. Existing project is on .net standard and mine is on .net framework (console + class library).
Existing project is building fine but when I try to initiate the build its getting failed with Please specify package direcotry ...
:
Found in Parent NuGet.Config they mentioned as "add key="repositoryPath" value=".packages" /"
Nugets are not restoring because its unable to find C:usersxyzpackages folder" ..."[error]buildCBTbuild.props(96,5): Error CBT.NuGet.1000: NuGet packages were not restored and the build cannot continue. Refer to other errors for more information."
msbuild nuget
add a comment |
I'm trying to build my solution with existing build definition.
Here is the issue: I added a new separate solution to existing project. Existing project is on .net standard and mine is on .net framework (console + class library).
Existing project is building fine but when I try to initiate the build its getting failed with Please specify package direcotry ...
:
Found in Parent NuGet.Config they mentioned as "add key="repositoryPath" value=".packages" /"
Nugets are not restoring because its unable to find C:usersxyzpackages folder" ..."[error]buildCBTbuild.props(96,5): Error CBT.NuGet.1000: NuGet packages were not restored and the build cannot continue. Refer to other errors for more information."
msbuild nuget
Did you put your solution file in the same folder as the other pre-existing solution file?
– C Johnson
Mar 8 at 19:48
It would help if you could provide an example, because it's not clear what you're doing. Normally NuGet only asks you to specify a PackagesDirectory or SolutionDirectory when you use nuget.exe to restore a packages.config file. If you're not running "nuget restore packages.config" yourself (or run a build script that does this), I don't know how you could have got this message. If you're using nuget.exe, you should restore the .sln file, but if you open the solution in Visual Studio, it should restore automatically (and never give that error message)
– zivkan
Mar 9 at 0:51
add a comment |
I'm trying to build my solution with existing build definition.
Here is the issue: I added a new separate solution to existing project. Existing project is on .net standard and mine is on .net framework (console + class library).
Existing project is building fine but when I try to initiate the build its getting failed with Please specify package direcotry ...
:
Found in Parent NuGet.Config they mentioned as "add key="repositoryPath" value=".packages" /"
Nugets are not restoring because its unable to find C:usersxyzpackages folder" ..."[error]buildCBTbuild.props(96,5): Error CBT.NuGet.1000: NuGet packages were not restored and the build cannot continue. Refer to other errors for more information."
msbuild nuget
I'm trying to build my solution with existing build definition.
Here is the issue: I added a new separate solution to existing project. Existing project is on .net standard and mine is on .net framework (console + class library).
Existing project is building fine but when I try to initiate the build its getting failed with Please specify package direcotry ...
:
Found in Parent NuGet.Config they mentioned as "add key="repositoryPath" value=".packages" /"
Nugets are not restoring because its unable to find C:usersxyzpackages folder" ..."[error]buildCBTbuild.props(96,5): Error CBT.NuGet.1000: NuGet packages were not restored and the build cannot continue. Refer to other errors for more information."
msbuild nuget
msbuild nuget
edited Mar 7 at 20:54
arghtype
3,183113348
3,183113348
asked Mar 7 at 14:30
Rajasekhar PasalapudiRajasekhar Pasalapudi
11
11
Did you put your solution file in the same folder as the other pre-existing solution file?
– C Johnson
Mar 8 at 19:48
It would help if you could provide an example, because it's not clear what you're doing. Normally NuGet only asks you to specify a PackagesDirectory or SolutionDirectory when you use nuget.exe to restore a packages.config file. If you're not running "nuget restore packages.config" yourself (or run a build script that does this), I don't know how you could have got this message. If you're using nuget.exe, you should restore the .sln file, but if you open the solution in Visual Studio, it should restore automatically (and never give that error message)
– zivkan
Mar 9 at 0:51
add a comment |
Did you put your solution file in the same folder as the other pre-existing solution file?
– C Johnson
Mar 8 at 19:48
It would help if you could provide an example, because it's not clear what you're doing. Normally NuGet only asks you to specify a PackagesDirectory or SolutionDirectory when you use nuget.exe to restore a packages.config file. If you're not running "nuget restore packages.config" yourself (or run a build script that does this), I don't know how you could have got this message. If you're using nuget.exe, you should restore the .sln file, but if you open the solution in Visual Studio, it should restore automatically (and never give that error message)
– zivkan
Mar 9 at 0:51
Did you put your solution file in the same folder as the other pre-existing solution file?
– C Johnson
Mar 8 at 19:48
Did you put your solution file in the same folder as the other pre-existing solution file?
– C Johnson
Mar 8 at 19:48
It would help if you could provide an example, because it's not clear what you're doing. Normally NuGet only asks you to specify a PackagesDirectory or SolutionDirectory when you use nuget.exe to restore a packages.config file. If you're not running "nuget restore packages.config" yourself (or run a build script that does this), I don't know how you could have got this message. If you're using nuget.exe, you should restore the .sln file, but if you open the solution in Visual Studio, it should restore automatically (and never give that error message)
– zivkan
Mar 9 at 0:51
It would help if you could provide an example, because it's not clear what you're doing. Normally NuGet only asks you to specify a PackagesDirectory or SolutionDirectory when you use nuget.exe to restore a packages.config file. If you're not running "nuget restore packages.config" yourself (or run a build script that does this), I don't know how you could have got this message. If you're using nuget.exe, you should restore the .sln file, but if you open the solution in Visual Studio, it should restore automatically (and never give that error message)
– zivkan
Mar 9 at 0:51
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55046202%2fgetting-error-as-please-specify-either-packagesdirectory-or-solutiondirectory%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55046202%2fgetting-error-as-please-specify-either-packagesdirectory-or-solutiondirectory%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you put your solution file in the same folder as the other pre-existing solution file?
– C Johnson
Mar 8 at 19:48
It would help if you could provide an example, because it's not clear what you're doing. Normally NuGet only asks you to specify a PackagesDirectory or SolutionDirectory when you use nuget.exe to restore a packages.config file. If you're not running "nuget restore packages.config" yourself (or run a build script that does this), I don't know how you could have got this message. If you're using nuget.exe, you should restore the .sln file, but if you open the solution in Visual Studio, it should restore automatically (and never give that error message)
– zivkan
Mar 9 at 0:51