diff options
Diffstat (limited to '.packages/microsoft.dotnet.buildtools/3.0.0-preview4-04022-01/lib/GenerateAssemblyInfo.NonSdk.targets')
-rwxr-xr-x | .packages/microsoft.dotnet.buildtools/3.0.0-preview4-04022-01/lib/GenerateAssemblyInfo.NonSdk.targets | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/.packages/microsoft.dotnet.buildtools/3.0.0-preview4-04022-01/lib/GenerateAssemblyInfo.NonSdk.targets b/.packages/microsoft.dotnet.buildtools/3.0.0-preview4-04022-01/lib/GenerateAssemblyInfo.NonSdk.targets new file mode 100755 index 0000000000..b6120afcd6 --- /dev/null +++ b/.packages/microsoft.dotnet.buildtools/3.0.0-preview4-04022-01/lib/GenerateAssemblyInfo.NonSdk.targets @@ -0,0 +1,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> |