Skip to content

Conversation

@KevinRansom
Copy link
Contributor

The GitTool.Version nuget package sets the language version to C# if it hasn't been set ...
https://github.com/GitTools/GitVersion/blob/28ce1b4f5ea8d1337485b8ca9d01c80fb4c94e6d/src/GitVersion.MsBuild/msbuild/tools/GitVersion.MsBuild.props#L7

This breaks the design time build because now it thinks it's handling C# files and so calls build targets that aren't even loaded in an F# design time build. This change allows us to specify that it is an F# project at our first chance, w/o fixing in the dotnet sdk itself, because afer all if it is loading F# props and targets, it for sure is an F# project.

It would be good, if the owners of Gittool.Version could properly fix their package, to not set the Language property, they can always update their code to handle a not set Language, without impacting all subsequent imported props and targets.

Error:
image

Fixed:
image

@KevinRansom KevinRansom requested a review from a team as a code owner May 17, 2023 01:39
@T-Gro T-Gro merged commit ebe1b35 into dotnet:main May 17, 2023
@KevinRansom KevinRansom self-assigned this May 24, 2023
@KevinRansom KevinRansom added this to the May-2023 milestone May 24, 2023
@KevinRansom KevinRansom deleted the webapiintellisense branch March 21, 2024 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants