#@ template language="C#" debug="false" hostspecific="true" #>
<#@ assembly name="EnvDTE" #>
<#@ import namespace="EnvDTE" #>
<#@ import namespace="System" #>
<#@ import namespace="System.IO" #>
<#@ import namespace="System.Text.RegularExpressions" #>
<#@ parameter type="System.String" name="ProjectPath" #>
<#@ output extension=".cs" #>
//
// This code was generated by a tool. Any changes made manually will be lost
// the next time this code is regenerated.
//
// Requires Modeling SDK for Microsoft Visual Studio to be installed during build.
//
<#
string realProjectPath;
if(ProjectPath == null) {
// when ran in Visual Studio
IServiceProvider serviceProvider = (IServiceProvider)this.Host;
var dte = serviceProvider.GetService(typeof(DTE)) as DTE;
var projectItem = dte.Solution.FindProjectItem(Host.TemplateFile);
var vsProject = projectItem.ContainingProject;
realProjectPath = vsProject.FullName;
} else {
// when ran in MSBuild
realProjectPath = ProjectPath;
}
var projectText = File.ReadAllText(realProjectPath);
var r = new Regex(@"(\d+\.\d+\.\d+\.\d+)");
var m = r.Match(projectText);
var publishNumber = m.Groups[1].Value;
var year = DateTime.Now.Year;
#>
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ki-Wi Platform")]
[assembly: AssemblyDescription("Unified platform for running digital signage content on Windows operating system.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Ki-Wi Digital s.r.o.")]
[assembly: AssemblyProduct("Ki-Wi Platform")]
[assembly: AssemblyCopyright("Copyright © Ki-Wi Digital s.r.o. 2007 - <#= year #>")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
//In order to begin building localizable applications, set
//CultureYouAreCodingWith in your .csproj file
//inside a . For example, if you are using US english
//in your source files, set the to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("<#= publishNumber #>")]
[assembly: AssemblyFileVersion("<#= publishNumber #>")]