The various build action options
- None: The file is not included in the project output group and is not compiled in the build process. An example is a text file that contains documentation, such as a Readme file.
- Compile: The file is compiled into the build output. This setting is used for code files.
- Content: Allows you to retrieve a file (in same dir as assembly) as a stream via Application.GetContentStream( uri ). For this method to work, it needs a AssemblyAssociatedContentFile custom attribute which VS graciously adds when you mark a file as “Content”
- Embedded resource: embeds the file in an exclusive assembly manifest resource.
- Resource (wpf only): embeds the file in a shared (by all files in the assembly with similar setting) assembly manifest resource named AppName.g.resources.
- Page (wpf only): Used to compile a
xaml file into
baml is then embedded with the same technique as
Resource (i.e. available as `AppName.g.resources)
- ApplicationDefinition (wpf only): Mark the XAML/class file that defines your application. You specify the code-behind with the x:Class=”Namespace.ClassName” and set the startup form/page with StartupUri=”Window1.xaml”
- SplashScreen (wpf only): An image that is marked as
SplashScreen is shown automatically when an WPF application loads, and then fades
- DesignData: Compiles xaml viewmodels so that usercontrols can be previewed with sample data in visual studio (uses mock types)
- DesignDataWithDesignTimeCreatableTypes: Compiles xaml viewmodels so that usercontrols can be previewed with sample data in visual studio (uses actual types)
- EntityDeploy: (Entity Framework): used to deploy the Entity Framework artifacts
- CodeAnalysisDictionary: A xml file containing custom word dictionary for spelling rules
Origin : Stack Overflow
Cannot access the file make sure it exists and you have permission
I was receiving this error while I was implementing excel automation in a WCF service
Oddly all you have to do is create two folders, or one if you are running a 32BIT OS
·Windows 2008 Server x64
Please make this folder.
·Windows 2008 Server x86
Please make this folder.
So it would seem that a folder named “Desktop” is required in the systemprofile folder in order that excel automation can open files
Time server working but time is wrong
If you have ever come across a situation where your Domain Controller (DC) is syncing properly to its ntp source, but the time is incorrect, the likelihood is that you are operating a virtual server environment and your Primary Domain Controller (PDC) is a virtual machine.
This Microsoft article Virtual Active Directory Domain Controller explains clearly, uner the heading “Time Service” that you must remove the sync between the virtual machine and the host.
I was late for a gym session because of this
For virtual machines that are configured as domain controllers, it is recommended that you disable time synchronization between the host system and guest operating system acting as a domain controller. This enables your guest domain controller to synchronize time from the domain hierarchy.
To disable the Hyper-V time synchronization provider, shut down the VM and clear the Time synchronization check box under Integration Services
Thinking about it, this makes perfect sense. With the option ticked, the PDC is set to get its time from the host, and if the host is part of the domain, it in turn is set to get its time from the nearest DC, who also in turn get their time from the PDC. A cyclic loop where no one gets the time from an external ntp source.
To configure the time server please visit here https://blogs.technet.microsoft.com/nepapfe/2013/03/01/its-simple-time-configuration-in-active-directory/
Un-tick the “Time synchrnoization” option from hyper v manager
Information Technology, Life, Interesting Stumbles, Servers, Configuration, Topology, Security, Best Practices, Developing, Fire Fighting, Problem solving, Visual Studio 2005 – 2015 .NET 1.1 – 4.5, jQuery, JSON & much much more