Mac App Embedded Resource Location

  1. Mac App Embedded Resource Location Download
  2. Mac App Embedded Resource Location Windows 10
  3. Mac App Embedded Resource Locations

The location of the CEF libraries and resource files can be customized using the CefSettings structure (see the README.txt file of “CefSettings” section for details). The application (app bundle) layout on Mac OS X is mandated by the Chromium implementation and consequently is not very flexible.

-->

All files in a Visual Studio for Mac project have a build action. The build action controls what happens to the file during a build.

Mac App Embedded Resource Location

Note

Mac App Embedded Resource Location Download

This topic applies to Visual Studio for Mac. For Visual Studio on Windows, see Build actions.

Set a build action

To set a build action for a file in Visual Studio for Mac, you can right-click on any file and browsing to Build Action, as illustrated below:

Mac App Embedded Resource Location Windows 10

Build actions for this file will be shown in the flyout menu.

Embedded

Build action values

Some of the common build actions for projects you can build in Visual Studio for Mac include:

Build ActionProject typesDescription
CompileanyThe file is passed to the C# compiler as a source file.
Content.NET, XamarinFor ASP.NET projects, these files are included as part of the site when it's deployed. For Xamarin.iOS and Xamarin.Mac projects, they'll be included in the app bundle.
Embedded Resource.NETThe file is passed to the C# compiler as a resource to be embedded in the assembly. Assembly.GetManifestResourceStream, from the System.Reflection namespace, can then be used to read the file from the assembly.
NoneanyThe file isn't part of the build in any way and is included in the project for easy access from the IDE. This value can be used for documentation files such as 'ReadMe' files, for example.

Note

Additional build actions may be defined by for specific project types, so the list of build actions depends on the project type and values might appear that are not in this list.

Xamarin.iOS projects have the BundleResource build action, which will add the file as part of the app bundle. Information on Xamarin.Android specific build actions can be found in the build process guide.

It's also possible to select more than one file in the solution explorer, allowing you to set the build action to many files at once.

Mac App Embedded Resource Locations

See also