Package Exports
- assembly-source
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (assembly-source) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
assembly-source
Create or change .NET assembly attributes in C# and JScript source code.
Usage
const Assembly = require('assembly-source')
const fs = require('fs')
// Construct from source code
const assembly = Assembly(fs.readFileSync('./AssemblyInfo.cs'))
// Read attributes (strings, booleans and numbers)
console.log(assembly.get('AssemblyVersion'))
// Modify and add attributes
assembly.set('AssemblyVersion', '1.2.3')
assembly.set('ComVisible', true)
// Then save
fs.writeFileSync('./AssemblyInfo.cs', assembly.toSource())
Or create metadata from scratch for JScript:
const assembly = Assembly({ language: 'jscript' })
assembly.set('AssemblyFileVersion', '1.2.3.4')
assembly.set('AssemblyInformationalVersion', '1.2.3')
const js = assembly.toSource({ preamble: true })
Install
With npm do:
npm install assembly-source
License
MIT © Vincent Weevers