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

Removed setting Language=C# from GitVersion.MsBuild.props #3701

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

abatishchev
Copy link
Contributor

@abatishchev abatishchev commented Sep 28, 2023

Description

Removed this line:

<Language Condition=" '$(Language)' == '' Or '$(DefaultLanguageSourceExtension)' == ''">C#</Language>

Related Issue

Resolves #3654.

Motivation and Context

GitVersion should not force C# language for projects that aren't C#, such as F# or generic *.msbuildproject.

How Has This Been Tested?

See #3654 and a detailed investigation in dotnet/project-system#9012

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@arturcic
Copy link
Member

@abatishchev thank you for submitting the PR. Most probably we will merge this one, but we need to check what was the reason to set the property in the first place.

Resolves GitTools#3654.

Rationale: GitVersion should not force C# language for projects that aren't C#, such as F# or generic *.msbuildproject.
@abatishchev
Copy link
Contributor Author

Hi @arturcic,
By looking at the description of the PR which added it - #2591. looks like it was a workaround for dotnet pack which doesn't seem to apply anymore, if the build from this PR succeeding at packing.

When I opened the PR, all checks have succeeded, I believe. But after I rebased in the morning - some tests fail with an unexpected error. Can you please take a look?

@arturcic arturcic merged commit 57b45f9 into GitTools:main Sep 29, 2023
101 checks passed
@mergify
Copy link
Contributor

mergify bot commented Sep 29, 2023

Thank you @abatishchev for your contribution!

@abatishchev abatishchev deleted the patch-1 branch September 29, 2023 14:53
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.

[Bug] GitVersion forces a C# language for projects that aren't C#
2 participants