-
Notifications
You must be signed in to change notification settings - Fork 966
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
New command-line build and verify #233
Conversation
@@ -1,6 +1,8 @@ | |||
| |||
Microsoft Visual Studio Solution File, Format Version 12.00 | |||
# Visual Studio 2012 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to change the Visual Studio version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's not necessary, but they are still backwards compatible.
@adamchester It looks good! I left a few comments that, I think, can be easily addressed. :) |
Cool. Thanks a lot guys for the work and discussions. @adamchester #230 is in. Please let me know when you're happy with this and I can merge it. |
by using `build.cmd` from a VS command line, in the root project folder, the following happens (by default): - the solution is built in Release and Verify configurations - in the new Verify configuration, code analysis, and msbuild 'treat warnings as errors' are enabled. CA ruleset is based on the 'Microsoft Managed Recommended Rules' from VS 2013. All enabled rules are set to error on violations. - Xunit tests are executed, reporting any errors This is based on the Albedo project (https://github.com/ploeh/Albedo). I removed the nuget and versioning-related tasks. They could be added back if needed.
OK, I think it's ready :) |
<Target Name="CleanVerify"> | ||
<MSBuild Projects="@(ProjectToBuild)" Targets="Clean" Properties="Configuration=Verify" /> | ||
</Target> | ||
<Target Name="CleanRelease"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to run Release too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do'h. Never mind.
This is awesome. Thanks for the great work @adamchester :) I added this to release-notes and readme files. |
This PR introduces a new command-line build and verify. Using
build.cmd
from a VS command line, in the root project folder, the following happens (by default):Sample output:
This is based on the Albedo project. I removed the nuget and versioning-related tasks. They could be added back if needed.
// cc @moodmosaic - would appreciate your feedback, if you can :)