Skip to content

Conversation

@da9l
Copy link
Contributor

@da9l da9l commented Nov 6, 2019

This partly fixes #1831.

What works:

Both exe and dll fsproj projects can use GitVersionTask and assemblies get version info when building in VisualStudio2019.

What does not work yet:

Neither dlls or exes get version info when build using dotnet build cli (3.0.100). This seems to be a bug in the dotnet core fsharp compiler atm. dotnet/fsharp#7220

Testing

Unfortunately I haven't found an easy way to automate testing of this.

I've created a test solution with both a csproj and a fsproj https://github.com/da9l/testgitversiontask4fsexe.git where I've tested this manually.

@da9l da9l closed this Nov 6, 2019
@da9l da9l deleted the feature/EnableGitVersionTaskForFSharpExeProjects branch November 6, 2019 19:28
@da9l
Copy link
Contributor Author

da9l commented Nov 6, 2019

Had to delete this since the branch name was too long.

@da9l
Copy link
Contributor Author

da9l commented Nov 7, 2019

Darn. Chocolatey is really picky with the length of the feature branch name. Should maybe be documented somewhere?

@asbjornu
Copy link
Member

Darn. Chocolatey is really picky with the length of the feature branch name. Should maybe be documented somewhere?

Yes, that's probably a good idea. Could you add that to the documentation somewhere?

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

Successfully merging this pull request may close these issues.

GitVersionTask does not work correctly with fsharp projects building an exe.

2 participants