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

Is MSBuildGitHash not working without network connection? #27

Open
suchja opened this issue Jun 1, 2021 · 2 comments
Open

Is MSBuildGitHash not working without network connection? #27

suchja opened this issue Jun 1, 2021 · 2 comments

Comments

@suchja
Copy link

suchja commented Jun 1, 2021

On 2 of my machines MSBuildGitHash is working like a charm. However, I do have one machine which is not connected to the internet (and will not be connected). On this machine my project starts throwing many compilation errors (e.g. Type Exception not known, ...). Once I uninstall MSBuildGitHash everything is working like normal.

I copied my whole project including packages folder which contains MSBuildGitHash from a machine (with network connection) where everything works smoothly onto the machine which shows these wired errors.

Any ideas or do you need additional information?

@MarkPflug
Copy link
Owner

I'm not sure what's going on here. My best guess is that you are running into a framework version issue for some reason. That's usually what causes types from the BCL (like Exception) to be "missing". When you do a build, check the top of the Output window (not the errors window) and see if you see any warning/errors being reported about framework version. It is possible that this package is causing some build issue that interacts poorly with the sdk targets.

Is it an Sdk-Style project (Project Sdk="Microsoft.NET.Sdk") or is it old-style? What framework is your project targeting?

@suchja
Copy link
Author

suchja commented Jun 4, 2021

Thanks for the immediate response.

I'm targeting .NET Framework 4.6.1. So it is an old-style project.

Unfortunately the testing is a bit problematic. As soon as I do have the possibility to have it run again, I'll check the output window. However, I could bet to had a look there (but you never know ;).

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

No branches or pull requests

2 participants