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

Can't find any way to set version #12910

Closed
brianary opened this issue Oct 17, 2019 · 2 comments
Closed

Can't find any way to set version #12910

brianary opened this issue Oct 17, 2019 · 2 comments

Comments

@brianary
Copy link

@brianary brianary commented Oct 17, 2019

Steps to reproduce

  1. Add <VersionPrefix>1.0.0</VersionPrefix> to netcoreapp3.0 fsproj file
  2. dotnet build Project.fsproj --version-suffix 1 (as documented)
  3. Get-ChildItem -Recurse -Filter Project.dll |Foreach-Object VersionInfo

or

  1. Add <Version>1.0.0</Version>
  2. dotnet build Project.fsproj
  3. Get-ChildItem -Recurse -Filter Project.dll |Foreach-Object VersionInfo

or

  1. dotnet build Project.fsproj /p:Version=1.0.0
  2. Get-ChildItem -Recurse -Filter Project.dll |Foreach-Object VersionInfo

Expected behavior

ProductVersion   FileVersion      FileName
--------------   -----------      --------
1.0.0            1.0.0            ...\bin\Debug\netcoreapp3.0\Project.dll
1.0.0            1.0.0            ...\obj\Debug\netcoreapp3.0\Project.dll

Actual behavior

ProductVersion   FileVersion      FileName
--------------   -----------      --------
                                  ...\bin\Debug\netcoreapp3.0\Project.dll
                                  ...\obj\Debug\netcoreapp3.0\Project.dll

Environment data

dotnet --info output:

.NET Core SDK (reflecting any global.json):
 Version:   3.0.100
 Commit:    04339c3a26

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.18362
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.0.100\

Host (useful for support):
  Version: 3.0.0
  Commit:  95a0a61858

.NET Core SDKs installed:
  1.0.0-preview2-003131 [C:\Program Files\dotnet\sdk]
  3.0.100 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 1.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download
@brianary

This comment has been minimized.

Copy link
Author

@brianary brianary commented Oct 17, 2019

If it helps, the specific repo I'm having this problem in is brianary/SelectXmlExtensions.

@livarcocc

This comment has been minimized.

Copy link
Member

@livarcocc livarcocc commented Oct 18, 2019

This issue has been fixed in 3.1.100.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.