FileClassifier Task


For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see FileClassifier Task on The FileClassifier task classifies a set of source resources as those that will be embedded into an assembly. If a resource is not localizable, it is embedded into the main application assembly; otherwise, it is embedded into a satellite assembly.

CultureOptional String parameter.

Specifies the culture for the build. This value can be null if the build is non-localizable. If null, the default value is the lowercase value that CultureInfo.InvariantCulture returns.
MainEmbeddedFilesOptional ITaskItem[] output parameter.

Specifies the non-localizable resources that are embedded into the main assembly.
OutputTypeRequired String parameter.

Specifies the type of file to embed the specified source files into. The valid values are exe, winexe, or library.
SatelliteEmbeddedFilesOptional ITaskItem[] output parameter.

Specifies the localizable files that are embedded into the satellite assembly for the culture specified by the Culture parameter.
SourceFilesRequired ITaskItem[] parameter.

Specifies the list of files to classify.

If the Culture parameter is not set, all resources that are specified by using the SourceFiles parameter are non-localizable; otherwise, they are localizable, unless they are associated with a Localizable attribute that is set to false.

The following example classifies a single source file as a resource and then embeds it in a satellite assembly for the French-Canadian (fr-CA) culture.

<Project xmlns="">  
    AssemblyFile="C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationBuildTasks.dll" />  
    <Resource Include="Resource1.bmp" />  
  <Target Name="FileClassifierTask">  
      OutputType="exe" />  

WPF MSBuild Reference
Task Reference
MSBuild Reference
Task Reference
Building a WPF Application (WPF)