blob: b6120afcd64ed30bf70860201b70608f25e696c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="GenerateAssemblyInfo"
Inputs="$(MSBuildProjectFile)"
Outputs="$(AssemblyInfoFile)"
Condition="'$(GenerateAssemblyInfo)'=='true'"
DependsOnTargets="CreateVersionFileDuringBuild;DecideIfWeNeedToIncludeDllSafeSearchPathAttribute">
<Error Condition="!Exists('$(IntermediateOutputPath)')" Text="GenerateAssemblyInfo failed because IntermediateOutputPath isn't set to a valid directory" />
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
<AssemblyInfoUsings Include="using System%3B" />
<AssemblyInfoUsings Include="using System.Reflection%3B" />
<AssemblyInfoLines Include="[assembly:AssemblyTitle("$(AssemblyTitle)")]" />
<AssemblyInfoLines Include="[assembly:AssemblyDescription("$(Description)")]" />
<AssemblyInfoLines Include="[assembly:AssemblyDefaultAlias("$(AssemblyName)")]" />
<AssemblyInfoLines Include="[assembly:AssemblyCompany("$(Company)")]" />
<AssemblyInfoLines Include="[assembly:AssemblyProduct("$(Product)")]" />
<AssemblyInfoLines Include="[assembly:AssemblyCopyright("$(Copyright)")]" />
<AssemblyInfoLines Include="[assembly:AssemblyVersion("$(AssemblyVersion)")]" />
<AssemblyInfoLines Include="[assembly:AssemblyFileVersion("$(FileVersion)")]" />
<AssemblyInfoLines Include="[assembly:AssemblyInformationalVersion(@"$(InformationalVersion)")]" />
<AssemblyInfoLines Condition="'$(CLSCompliant)'=='true'" Include="[assembly:CLSCompliant(true)]" />
<AssemblyInfoLines Condition="'$(AssemblyComVisible)'!=''" Include="[assembly:System.Runtime.InteropServices.ComVisible($(AssemblyComVisible))]" />
<AssemblyInfoLines Condition="'$(SkipFrameworkAssemblyMetadata)' != 'true'"
Include="[assembly:System.Reflection.AssemblyMetadata("%(AssemblyMetadata.Identity)", "%(AssemblyMetadata.Value)")]" />
<AssemblyInfoLines Condition="'$(IncludeDllSafeSearchPathAttribute)'=='true'"
Include="[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPathsAttribute(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)]" />
</ItemGroup>
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.vbproj'">
<AssemblyInfoUsings Include="Imports System" />
<AssemblyInfoUsings Include="Imports System.Reflection" />
<AssemblyInfoLines Include="<Assembly:AssemblyTitle("$(AssemblyTitle)")>" />
<AssemblyInfoLines Include="<Assembly:AssemblyDescription("$(Description)")>" />
<AssemblyInfoLines Include="<Assembly:AssemblyDefaultAlias("$(AssemblyName)")>" />
<AssemblyInfoLines Include="<Assembly:AssemblyCompany("$(Company)")>" />
<AssemblyInfoLines Include="<Assembly:AssemblyProduct("$(Product)k")>" />
<AssemblyInfoLines Include="<Assembly:AssemblyCopyright("$(Copyright)")>" />
<AssemblyInfoLines Include="<Assembly:AssemblyVersion("$(AssemblyVersion)")>" />
<AssemblyInfoLines Include="<Assembly:AssemblyFileVersion("$(FileVersion)")>" />
<AssemblyInfoLines Include="<Assembly:AssemblyInformationalVersion("$(InformationalVersion)")>" />
<AssemblyInfoLines Condition="'$(CLSCompliant)'=='true'" Include="<Assembly:CLSCompliant(True)>" />
<AssemblyInfoLines Condition="'$(AssemblyComVisible)'!=''" Include="<Assembly:System.Runtime.InteropServices.ComVisible($(AssemblyComVisible))>" />
<AssemblyInfoLines Condition="'$(SkipFrameworkAssemblyMetadata)' != 'true'"
Include="<assembly:System.Reflection.AssemblyMetadata("%(AssemblyMetadata.Identity)", "%(AssemblyMetadata.Value)")>" />
<AssemblyInfoLines Condition="'$(IncludeDllSafeSearchPathAttribute)'=='true'"
Include="<Assembly:System.Runtime.InteropServices.DefaultDllImportSearchPathsAttribute(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)>" />
</ItemGroup>
<WriteLinesToFile
File="$(AssemblyInfoFile)"
Lines="@(AssemblyInfoUsings);@(AssemblyInfoLines)"
Overwrite="true" />
<ItemGroup>
<Compile Include="$(AssemblyInfoFile)" />
<FileWrites Include="$(AssemblyInfoFile)" />
</ItemGroup>
</Target>
</Project>
|