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

Fix regex to allow for installation of MsBuild in Program Files (x86) #183

Merged
merged 3 commits into from
Sep 17, 2023

Conversation

arontsang
Copy link
Contributor

fixes #182

@arontsang
Copy link
Contributor Author

@tomasbjerre Hi Tomas, I can't seem to get this PR to build correctly. Seems to be some kind of code formatting rule that prevents me from building.

Not sure what the rule is, can you please take a look?

@tomasbjerre
Copy link
Owner

@tomasbjerre Hi Tomas, I can't seem to get this PR to build correctly. Seems to be some kind of code formatting rule that prevents me from building.

Not sure what the rule is, can you please take a look?

The code will be formatted when you do ./gradlew googleJavaFormat

Unless you are using Java 17: https://github.com/tomasbjerre/gradle-scripts/blob/master/src/main/resources/main.gradle#L132

@arontsang
Copy link
Contributor Author

@tomasbjerre Hi Tomas, I can't seem to get this PR to build correctly. Seems to be some kind of code formatting rule that prevents me from building.
Not sure what the rule is, can you please take a look?

The code will be formatted when you do ./gradlew googleJavaFormat

Unless you are using Java 17: https://github.com/tomasbjerre/gradle-scripts/blob/master/src/main/resources/main.gradle#L132

Sigh...silly me, using the LTS Java. I probably should have Java 8 like everyone else...

@arontsang
Copy link
Contributor Author

@tomasbjerre Thank you for your help. Built successfully now.

@tomasbjerre
Copy link
Owner

@tomasbjerre Hi Tomas, I can't seem to get this PR to build correctly. Seems to be some kind of code formatting rule that prevents me from building.
Not sure what the rule is, can you please take a look?

The code will be formatted when you do ./gradlew googleJavaFormat
Unless you are using Java 17: https://github.com/tomasbjerre/gradle-scripts/blob/master/src/main/resources/main.gradle#L132

Sigh...silly me, using the LTS Java. I probably should have Java 8 like everyone else...

There is a newer version of the Google Java Format plugin that runs on 17, but it will not run on 8. So if upgrading build script to that I can no longer verify builds with 8.... it is not perfect :)

@tomasbjerre
Copy link
Owner

Can you supply a log that is currently not possible to parse:
https://github.com/tomasbjerre/violations-lib/tree/master/src/test/resources/msbuildlog

And add test case here:
https://github.com/tomasbjerre/violations-lib/blob/master/src/test/java/se/bjurr/violations/lib/MSBuildLogTest.java

The test case that is currently implemented seems to have MSBuild in C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild so I am not exactly sure what this fixes.

@arontsang
Copy link
Contributor Author

@tomasbjerre The new SDK style projects have a lot more warnings.

I've added a unit test to test for incompatible nuget dependencies and incompatible 'in solution' dependencies.

@tomasbjerre tomasbjerre merged commit 1f8d56d into tomasbjerre:master Sep 17, 2023
4 checks passed
@tomasbjerre
Copy link
Owner

Thanks, releasing this now.

@arontsang
Copy link
Contributor Author

@tomasbjerre Thank you very much. Very fast response.

I would also appreciate it if you bump the Jenkins plug in as well.

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.

MSBuildLogParser does not support installations of MsBuild on x64 Windows
2 participants