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

Enable fs exe projects #1894

Closed
wants to merge 22 commits into from
Closed

Enable fs exe projects #1894

wants to merge 22 commits into from

Conversation

da9l
Copy link
Contributor

@da9l da9l commented Nov 7, 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.

Note: This is my third attempt since the two first got rejected by chocolatey pack due to long branch name. I apologize for the mess.

@arturcic
Copy link
Member

arturcic commented Nov 7, 2019

Can you squash and rebase on top of master?

Daniel Hegner added 4 commits November 7, 2019 10:58
CompileBefore Include is used for F# projects to
include the generated AssemblyInfo and GitVersionInfo files
in the project before any already included fs source files.

This is accomplished with a conditional F# check on the language property.
@da9l
Copy link
Contributor Author

da9l commented Nov 7, 2019

I will close this PR and create a new one that is squashed and ready to be rebased on master.

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