There is still big difference, but it is being reduced from day to day and in order to understand that one needs some history. Visual Studio for Mac is successor of Xamarin.Studio and Xamarin.Studio was a combination of open source IDE MonoDevelop. All files in a Visual Studio project have a build action. The build action controls what happens to the file when the project is compiled. This topic applies to Visual Studio on Windows. For Visual Studio for Mac, see Build actions in Visual Studio for Mac. Set a build action. To set the build action for a file. Embedded Resource.NET. Visual Studio 2019 for Mac. Develop apps and games for iOS, Android and using.NET. Download Visual Studio for Mac. Create and deploy scalable, performant apps using.NET and C# on the Mac. Embedded Studio is a complete all-in-one solution for managing, building, testing, and deploying your embedded applications: From the project generator which gets you easily started with common microcontrollers, to the powerful project manager, and source code editor, the included C/C compiler, and the integrated debugger with advanced debug.
-->All files in a Visual Studio project have a build action. The build action controls what happens to the file when the project is compiled.
Note
This topic applies to Visual Studio on Windows. For Visual Studio for Mac, see Build actions in Visual Studio for Mac.
Set a build action
Iphone file transfer to pc. To set the build action for a file, open the file's properties in the Properties window by selecting the file in Solution Explorer and pressing Alt+Enter. Or, right-click on the file in Solution Explorer and choose Properties. In the Properties window, under the Advanced section, use the drop-down list next to Build Action to set a build action for the file.
Build action values
Some of the more common build actions for C# and Visual Basic project files are:
Build Action | Project types | Description |
---|---|---|
AdditionalFiles | C#, Visual Basic | A non-source text file that's passed to the C# or Visual Basic compiler as input. This build action is mainly used to provide inputs to analyzers that are referenced by a project to verify code quality. For more information, see Use additional files. |
ApplicationDefinition | WPF | The file that defines your application. When you first create a project, this is App.xaml. |
CodeAnalysisDictionary | .NET | A custom word dictionary, used by Code Analysis for spell checking. See How to: Customize the Code Analysis Dictionary |
Compile | any | The file is passed to the compiler as a source file. |
Content | .NET | A file marked as Content can be retrieved as a stream by calling Application.GetContentStream. For ASP.NET projects, these files are included as part of the site when it's deployed. |
DesignData | WPF | Used for XAML ViewModel files, to enable user controls to be viewed at design time, with dummy types and sample data. |
DesignDataWithDesignTimeCreateable | WPF | Like DesignData, but with actual types. |
Embedded Resource | .NET | The file is passed to the compiler as a resource to be embedded in the assembly. You can call System.Reflection.Assembly.GetManifestResourceStream to read the file from the assembly. |
EntityDeploy | .NET | For Entity Framework (EF) .edmx files that specify deployment of EF artifacts. |
Fakes | .NET | Used for the Microsoft Fakes testing framework. See Isolate code under test using Microsoft Fakes |
None | any | The file isn't part of the build in any way. This value can be used for documentation files such as 'ReadMe' files, for example. |
Page | WPF | Compile a XAML file to a binary .baml file for faster loading at run time. |
Resource | WPF | Specifies to embed the file in an assembly manifest resource file with the extension .g.resources. |
Shadow | .NET | Used for an .accessor file that contains a list of built assembly filenames, one per line. For each assembly on the list, generate public classes with the names ClassName_Accessor that are just like the originals, but with public methods instead of private methods. Used for unit testing. |
Splash Screen | WPF | Specifies an image file to be displayed at run time when the app is starting up. |
XamlAppDef | Windows Workflow Foundation | Instructs the build to build a workflow XAML file into an assembly with an embedded workflow. |
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.
See also
-->Resource files are files that are part of an application but are not compiled, for example icon files or audio files. Since these files are not part of the compilation process, you can change them without having to recompile your binaries. If you are planning to localize your application, you should use resource files for all the strings and other resources that need to be changed when you localize your application.
![Studio Studio](/uploads/1/2/6/8/126871996/262038874.png)
Note
Vs Studio Mac App Embedded Resource Location Windows 10
This topic applies to Visual Studio on Windows. For Visual Studio for Mac, see Managing app resources (Visual Studio for Mac).
For more information about resources in .NET desktop apps, see Resources in desktop apps.
Work with resources
In a managed code project, open the project properties window. You can open the properties window by either:
- Right-clicking the project node in Solution Explorer and selecting Properties
- Typing project properties in the Ctrl+Q search box
- Choosing Alt+Enter in Solution Explorer
Select the Resources tab. You can add a .resx file if your project does not contain one already, add and delete different kinds of resources, and modify existing resources.
Resources in other project types
Resources are managed differently in .NET projects than in other project types. For more information about resources in:
- Universal Windows Platform (UWP) apps, see App resources and the Resource Management System
- C++ projects, see Work with resource files and How to: Create a resource