UNPKG

@autorest/powershell

Version:
30 lines (28 loc) 1.57 kB
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ Object.defineProperty(exports, "__esModule", { value: true }); exports.generateAssemblyInfo = void 0; async function generateAssemblyInfo(project) { if (!project.azure || !project.assemblyInfoPath) { return; } const info = `${project.csharpCommentHeaderForCsharp} using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: System.Reflection.AssemblyCompanyAttribute("${project.assemblyCompany}")] [assembly: System.Reflection.AssemblyCopyrightAttribute("${project.assemblyCopyright}")] [assembly: System.Reflection.AssemblyProductAttribute("${project.assemblyProduct}")] [assembly: System.Reflection.AssemblyTitleAttribute("${project.assemblyProduct} - ${project.title}")] [assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)]`; project.state.writeFile(project.assemblyInfoPath, info, undefined, 'source-file-csharp'); } exports.generateAssemblyInfo = generateAssemblyInfo; //# sourceMappingURL=AssemblyInfo.js.map