Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PackageVersion not showing #318

Open
Mykullski opened this issue Mar 14, 2023 · 1 comment
Open

PackageVersion not showing #318

Mykullski opened this issue Mar 14, 2023 · 1 comment

Comments

@Mykullski
Copy link

I'm trying tot set the PackageVersion using Assembly-Info-NetCore@3 and nothing is showing in the Directory.Build.props or *.csproj. The other fields like VersionNumber, FileVersionNumber, and InformationalVersion work. Any ideas?

Starting: Set .Net Standard & Core Assembly Manifest Data
==============================================================================
Task         : Assembly Info (.Net Core & .Net Standard)
Description  : Set assembly or package information such as Version, Copyright and Repository URL's etc.
Version      : 3.2.3
Author       : Bleddyn Richards
Help         : [More Information](https://marketplace.visualstudio.com/items?itemName=bleddynrichards.Assembly-Info-Task)
==============================================================================
Task Parameters...
Source folder: /home/vsts/work/1/s
Source files: **/Directory.Build.props
Insert attributes: true
Ignore .Net Framework projects: false
File encoding: auto
Write unicode BOM: false
Generate XML documentation file: ignore
Generate NuGet package on build: true
Require license acceptance: ignore
Package id: 
Package version: 3.17.0-beta-props-targets.108
Authors: 
Company: 
Product: 
Description: 
Copyright: 
License File: 
License Expression: 
Project Url: 
Package Icon: 
Repository Url: 
Repository type: 
Tags: 
Release notes: 
Assembly neutral language: 
Assembly version: 3.17.0.108
Assembly file version: 3.17.0.108
Informational version: 3.17.0-beta-props-targets.108
Log Level: verbose
Fail on Warning: false
Build Tag: 
Build Number: 
Setting .Net Core / .Net Standard assembly info...
Processing: /home/vsts/work/1/s/Directory.Build.props
Detected file encoding: iso-8859-1
GeneratePackageOnBuild --> true
Version --> 3.17.0-beta-props-targets.108
AssemblyVersion --> 3.17.0.108
FileVersion --> 3.17.0.108
InformationalVersion --> 3.17.0-beta-props-targets.108
Verify file encoding: iso-8859-1
Setting output variables...
$.AssemblyInfo.Version: 3.17.0.108
$.AssemblyInfo.FileVersion: 3.17.0.108
$.AssemblyInfo.InformationalVersion: 3.17.0-beta-props-targets.108
$.AssemblyInfo.PackageVersion: 3.17.0-beta-props-targets.108
Updating build...
Finishing: Set .Net Standard & Core Assembly Manifest Data
@BMuuN
Copy link
Owner

BMuuN commented May 30, 2023

Hey @Mykullski looking at your logs the Package version is being set correctly. If you look at the output where the task is setting the assembly info on the Directory.Build.props file you can see the Version attribute is being set:

Processing: /home/vsts/work/1/s/Directory.Build.props
Detected file encoding: iso-8859-1
GeneratePackageOnBuild --> true
Version --> 3.17.0-beta-props-targets.108
AssemblyVersion --> 3.17.0.108
FileVersion --> 3.17.0.108
InformationalVersion --> 3.17.0-beta-props-targets.108
Verify file encoding: iso-8859-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants