question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AssemblyInfoFilename file not found

See original GitHub issue

When I try to update the AssemblyInfo.cs files by setting the updateAssemblyInfo: true I get the following error:

 AssemblyInfoFilename file not found at 

Might be related to this issue on the GitVersion repo.

You can view the error in action at:

https://github.com/saturdaymp/XPlugins.iOS.BEMCheckBox/runs/710150101?check_suite_focus=true

To reproduce:

  1. Create a GitHub workflow file with the following:
name: CI
on: [push]

jobs:
  build:
    name: Build Job
    runs-on: macos-latest
    defaults:
      run:
        working-directory: Source

    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Fetch history for GitVersion
        run: git fetch --prune --unshallow

      - name: Install GitVersion
        uses: gittools/actions/gitversion/setup@v0.9.3
        with:
          versionSpec: '5.3.4'

      - name: Generate Version Info using GitVersion
        id: gitversion
        uses: gittools/actions/gitversion/execute@v0.9.3
        with: 
          updateAssemblyInfo: true
      
      - name: Display GitVersion values
        run: |
          echo "Major: ${{ steps.gitversion.outputs.major }}"
          echo "Minor: ${{ steps.gitversion.outputs.minor }}"
          echo "Patch: ${{ steps.gitversion.outputs.patch }}"
  1. When run the following error message is displayed:
Run gittools/actions/gitversion/execute@v0.9.3
  with:
    updateAssemblyInfo: true
    useConfigFile: false
  env:
    DOTNET_CLI_TELEMETRY_OPTOUT: 1
##[error]Error: AssemblyInfoFilename file not found at 

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
chris-codeflowcommented, Jan 24, 2021

I’ve submitted a PR (see #316 ) to resolve this issue.

1reaction
shieldsjaredcommented, Jul 10, 2020

A temporary workaround for this is to specify /updateAssemblyInfo in the Additional GitVersion arguments parameter of the Azure Devops Task. (Huge thanks for this tip on another issue https://github.com/GitTools/GitVersion/issues/2225#issuecomment-624425847)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source file 'Properties\AssemblyInfo.cs' could not be found
When I open my web solution & attempt to build, the build fails with the error "CSC(0,0): error CS2001: Source file 'Properties\AssemblyInfo.cs' ...
Read more >
GitTools/GitVersion 5.3.0 on GitHub - NewReleases.io
... an error "AssemblyInfoFilename file not found at null" when UpdateAssemblyInfo: true is set; #2204 [Bug] Unable to run on Centos 7 missing...
Read more >
How to use the azure-pipelines-task-lib/task.stats function in ...
Use Snyk Code to scan source code in minutes - no build needed - and fix issues ... else { throw new Error('AssemblyInfoFilename...
Read more >
Assembly Patching - GitVersion
GitVersion can generate an assembly info source file for you if it does not already exist. Use the /ensureassemblyinfo switch alongside /updateassemblyinfo < ......
Read more >
Broken powershell execution : TW-31567 - JetBrains YouTrack
Sometimes powershell build steps with mode -File (not stdin) and source code ... Write-Host "Original" Get-Content %AssemblyInfoFileName%.orig Write-Host ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found