Visual Studio For Mac Open Folder

Then, open the folder in Visual Studio (via File > Open > Folder or devenv.exe ). Alternatively, open a folder inside VS containing one of your existing CMake projects. Alternatively, open a folder inside VS containing one of your existing CMake projects. Visual Studio is a cross platform, lightweight IDE for application development which runs on both Mac and Linux. Debugging experience is really amazing and now with its latest update, you can install a number of extensions for your favorite open source language.

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

Trying to be helpful.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Here, the setting is 'sticky' - if I open a file from Documents, the next time I open (even after quitting and restarting Word), the Documents folder will open. As far as I can see, the relevant data is stored in the Preferences file in ~/Library/Preferences/com.microsoft.Word.plist
But assuming your installation is not doing that,

a. you could try to locate thatpreferences file and see what is stored in it. That's easier said than done, but in Finder you will need to hold down the Option key and use Go to open up the Library folder. There are various items in there with names that star 'NSNavLast' - not sure precisely which one stores this value
b. Do you have any macros in your normal.dotm? If there is one called 'FileOpen' it might alter this behaviour. Seems a bit unlikely, though.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

The setting is in Word > Preferences > File Locations.

I am an unpaid volunteer and do not work for Microsoft. 'Independent Advisors' work for contractors hired by Microsoft. 'Microsoft Agents' work for Microsoft Support.

2 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

It should also be clarified that this only sets the Default location Word looks to when you first launch the program. If you navigate away from that folder during any given session Word will not revert to the Default set in Preferences until the program is launched again.

Perhaps I'm misinterpreting, but I get the impression that DLambert13 may be expecting to have Word always return to the Documents folder.

As an MVP my contributions here are purely voluntary.
Please mark Yes/No as to whether a Reply answers your question.
Regards,
Bob J.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

The 'last current directory' pointers for Word are contain within:

'~/Library/Preferences/com.microsoft.word.plist'

If Word 'always' returns to the same subdirectory of their Documents directory, the above plist file could be corrupted. The OP could try, with Word completely 'Quit', renaming this plist file and restarting Word, which will generate a new plist containing the system default entries.

________________________________
Richard V. Michaels
info@greatcirclelearning.com
Provides free AuthorTec add-ins for Mac & Win-Office. Site: greatcirclelearning.com Blog: workfasterworksmarter.com

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Hi Bob,

You are correct. I would like Word to open up to the Documents folder every time I open it, but it inevitably opens to a sub-folder that I do not use often.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Hi Rich,

I follow the thought, but do not know how to accomplish your instructions. Could you walk me through how to do this?

Thanks!

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

As Jim suggested;

  1. Go to Word> Preferences> File Locations
  2. Select Documents in the list of File Types
  3. Click Modify
  4. Navigate to your Documents folder
  5. Once you select the folder, click Choose
  6. Click OK
  7. Quit/Launch Word

The Default Location should now be set to what you specified. Keep in mind, though, that it will continue to look to that location only as long as you don't navigate to a different one during the time you have Word running. However, each time you launch the program it will return to your Default Location (your Documents folder).

If that doesn't 'hold' you may have a corrupt Preferences file as Rich suggested. Replacing that would be the next step. I prefer to avoid discarding current .plist files unless there's a reasonably clear indication they are bad... It's out of concern for a matter of conveniences than anything else :-)

As an MVP my contributions here are purely voluntary.
Please mark Yes/No as to whether a Reply answers your question.
Regards,
Bob J.
Mac

3 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Hi Bob,

My default file location was 'Documents' :( I think the problem is that I keep Word open almost all of the time. I've shut it down and opened it again. It seems to be opening to Documents (one glitch) but I will continue to try this and see if that helps.

Thanks so much!

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Visual Studio For Mac Open Folder In New Window

Thanks for your feedback.

General [IMHO, wrong] impression [fostered by Apple :-)] that you never need to shut anything down.

Most experienced users advise that applications should be Quit when not in use, Macs should be restarted at least once weekly. For one reason, there is a lot of stuff a program does on launch, so if the program is constantly running those activities don't get done. Likewise with OS X... There's a lot of housekeeping that doesn't get done if the Mac is running continuously. Just 'closing the lid' doesn't count :-)

Fresh launches & restarts not only often cure but help prevent interference from all sorts of gremlins.

As an MVP my contributions here are purely voluntary.
Please mark Yes/No as to whether a Reply answers your question.
Regards,
Bob J.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

-->

NuGet is the most popular package manager for .NET development and is built in to Visual Studio for Mac and Visual Studio on Windows. You can search for and add packages to your Xamarin, .NET Core and ASP.NET projects using either IDE.

This article describes how to include a NuGet package in a project and demonstrates the tool chain that makes the process seamless.

NuGet in Visual Studio for Mac

To demonstrate the NuGet package functionality, we'll first walk through creating a new application and adding a package to it. Then we'll discuss the IDE features that help manage packages.

Create a new project

First, create a project named HelloNuget as illustrated below. This example shows the iOS Single View Application template, but any supported project type would work:

Adding a Package

With the project open in Visual Studio for Mac, right-click on the Packages folder in the Solution Pad and select Add NuGet Packages:

This launches the Add Packages window. Ensure that the Source drop-down, is set to nuget.org:

When the window opens it loads a list of packages from the default package source: nuget.org. The initial results look like this:

Use the search box in the top-right corner to find a specific package, for example azure mobile. When you have found a package that you wish to use, select it and click the Add Package button to begin installation.

Once the package has been downloaded, it will be added to your project. The solution will change as follows:

  • The References node will contain a list of all the assemblies that are part of a NuGet package.
  • The Packages node displays each NuGet package that you have downloaded. You can update or remove a package from this list.
  • A packages.config file will be added to the project. This XML file is used by the IDE to track which package versions are referenced in this project. This file should not be hand-edited, but you should keep it in version control. Note that a project.json file can be used instead of a packages.config file. The project.json file is a new package file format introduced with NuGet 3, which supports transitive restore. More detailed information on project.json can be found in the NuGet documentation. The project.json file needs to be added manually and the project closed and re-opened before the project.json file is used in Visual Studio for Mac.

Using NuGet Packages

Once the NuGet package has been added and the project references updated, you can program against the APIs as you would with any project reference.

Ensure that you add any required using directives to the top of your file:

Most NuGet provide additional information, such as a README or Project page link to the Nuget source. You can normally find a link to this in the package blurb on the Add Packages page:

Package Updates

Package updates can be done either all at once, by right-clicking on the Packages node, or individually on each component.

Right-click on Packages to access the context menu:

  • Add NuGet Packages - Opens the window to add more packages to the project.
  • Update - Checks the source server for each package and downloads any newer versions.
  • Restore - Downloads any missing packages (without updating existing packages to newer versions).

Update and Restore options are also available at the Solution level, and affect all the projects in the solution.

You can also right-click on individual packages to access a context menu:

  • Version Number - The version number is a disabled menu item - it is provided for informational purposes only.
  • Update - Checks the source server and downloads a newer version (if it exists).
  • Remove - Removes the package from this project and removes the relevant assemblies from the project's References.

Adding Package Sources

Packages available for installation are initially retrieved from nuget.org. However, you can add other package locations to Visual Studio for Mac. This can be useful for testing your own NuGet packages under development, or to use a private NuGet server inside your company or organization.

In Visual Studio for Mac, navigate to Visual Studio > Preferences > NuGet > Sources to view and edit the list of package sources. Note that sources can be a remote server (specified by a URL) or a local directory.

Click Add to set-up a new source. Enter a friendly name and the URL (or file path) to the package source. If the source is a secure web server, enter the username and password as well, otherwise leave these entries blank:

Different sources can then be selected when searching for packages:

Visual Studio

Version Control

The NuGet documentation discusses using NuGet without committing packages to source control. If you prefer not to store binaries and unused information in source control, you can configure Visual Studio for Mac to automatically restore packages from the server. This means that when a developer retrieves the project from source control for the first time, Visual Studio for Mac will automatically download and install the required packages.

Visual Studio For Mac Offline Installer

Refer to your particular source control documentation for details on how to exclude the packages directory from being tracked.

Visual Studio For Mac Licensing

Related Video

Install Visual Studio On Mac

See also