1.0.19 • Published 9 years ago

grunt-dotnet-assembly-info v1.0.19

Weekly downloads
15
License
MIT
Repository
github
Last release
9 years ago

grunt-dotnet-assembly-info

npm version build status Dependency Status npm downloads

Grunt plugin for editing .NET assembly info files. NOTE: this plugin requires Grunt 0.4.x and currently only supports C#.

Getting Started

From the same directory as your project's Gruntfile and package.json, install this plugin with the following command:

$ npm install grunt-dotnet-assembly-info --save-dev

Next add this line to your project's Gruntfile:

grunt.loadNpmTasks('grunt-dotnet-assembly-info');

Config

Inside your Gruntfile.js file, add a section named assemblyinfo, containing assembly information:

assemblyinfo: {
    options: {
        // Can be solutions, projects or individual assembly info files
        files: ['src/MySolution.sln', 
                'src/MyProject/MyProject.csproj', 
                'src/MyProject/Properties/AssemblyInfo.cs'],

        // Filename to search for when a solution or project is 
        // specified above. Default is AssemblyInfo.cs.
        filename: 'MyCustomAssemblyInfo.cs', 

        // Standard assembly info
        info: {
            title: 'Planet Express Website',
            description: 'Shipping and tracking website.', 
            configuration: 'Release', 
            company: 'Planet Express', 
            product: 'Planet Express Website', 
            copyright: 'Copyright 3002 © Planet Express', 
            trademark: 'Planet Express', 
            culture: 'div-MV',
            version: function (value) {
                var version = parseVersion(value);
                if (version.patch > packageVersion.patch) {
                    email('devs', patchNotes);
                }
                updatePackageVersion(version);
                // If no value is returned the assembly version will not be modified
            },
            fileVersion: '2.0.3.2345'
        }
    }
}

Contributors

Nate-Wilkins
Nate-Wilkins

License

MIT License

1.0.19

9 years ago

1.0.18

10 years ago

1.0.16

10 years ago

1.0.15

10 years ago

1.0.14

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago