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

Don't cause MSBuild warnings 'expected' failures #90

Merged
merged 1 commit into from
Dec 13, 2019
Merged

Don't cause MSBuild warnings 'expected' failures #90

merged 1 commit into from
Dec 13, 2019

Conversation

alanmcgovern
Copy link
Contributor

It's expected that git won't be in %PATH% so in this scenario we should
not generate an MSB3073 warning, nor write stderr as high importance.

This removes these lines from every build on windows for me:

1>'git' is not recognized as an internal or external command,
1>operable program or batch file.
1>C:\Users\almcgo\.nuget\packages\gitinfo\2.0.11\build\GitInfo.targets(897,3): warning MSB3073: The command "git --version" exited with code 9009.

It's expected that `git` won't be in %PATH% so in this scenario we should
not generate an `MSB3073` warning, nor write stderr as high importance.

This removes these lines from every build on windows for me:
```
1>'git' is not recognized as an internal or external command,
1>operable program or batch file.
1>C:\Users\almcgo\.nuget\packages\gitinfo\2.0.11\build\GitInfo.targets(897,3): warning MSB3073: The command "git --version" exited with code 9009.
```
@alanmcgovern
Copy link
Contributor Author

i'm not sure if this is 100% correct actually - let me test a bit more with a clean tree

@alanmcgovern
Copy link
Contributor Author

Nah, it is fine!

@alanmcgovern
Copy link
Contributor Author

@kzu any chance we can get this, or a variant of it, into a release? It'd be good to not emit warnings for expected things.

Copy link
Member

@kzu kzu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did it take me so looooong to approve this?? :(

@kzu kzu merged commit fdccf4c into devlooped:master Dec 13, 2019
@alanmcgovern
Copy link
Contributor Author

Thanks for that! It's good to be able to knock out these warnings without disabling them :)

@devlooped devlooped locked and limited conversation to collaborators Sep 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants