BoolBySigma / UpdateAssemblyInfo

SORRY THIS IS NO LONGER MAINTAINED
10 stars 9 forks source link

Alternative AssemblyInfo names. #2

Closed Sventric closed 7 years ago

Sventric commented 7 years ago

I have a 'GlobalAssemblyInfo.cs' on solution-level and include this this my projects. This file seems not to be found by this tool. Even when using the file-picker in VSTS.

gclpixel commented 7 years ago

In the extension code there is a hard reference to AssemblyInfo, even if you set the the AssemblyInfo File path to different file.

if (Test-Path -LiteralPath $assemblyInfoFiles) {
        $file = (Resolve-Path $assemblyInfoFiles).Path
        if ($file -like "*\AssemblyInfo.*") {
            $files += $file
        }
    } else {
        $files = Get-ChildItem $assemblyInfoFiles -Recurse 
                              | ForEach-Object {$_.FullName} 
                              | Where-Object {$_ -like "*\AssemblyInfo.*"}
    }

I also need this feature, because I have a global SolutionInfo.cs too.

ghost commented 7 years ago

Thank you for your input.

It is a good suggestion and we will look into it.

ghost commented 7 years ago

Published a patch for this issue.

You should now be able to pick a specific file using file picker or use wildcards eg. **GlobalAssembly.