AssemblyInfoFilename file not found
See original GitHub issueWhen 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:
- 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 }}"
- 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:
- Created 3 years ago
- Reactions:3
- Comments:9 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve submitted a PR (see #316 ) to resolve this issue.
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)