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










0















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."











share|improve this question
























  • 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















0















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."











share|improve this question
























  • 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













0












0








0








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."











share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved