-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
317244d
New command-line build and verify,
adamchester 4278a18
fix casing of build.config file
adamchester f2c46a5
tests project: nowarn:CS1591 +warnAsError
adamchester 306150c
make build.cmd 'autonomous' (not reliant on the %PATH% to msbuild)
adamchester b3ab7a8
reverse the solution file format changes
adamchester File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@%WINDIR%\Microsoft.Net\Framework\v4.0.30319\msbuild build.proj /m /clp:Verbosity=minimal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<PropertyGroup> | ||
<XUnitPath>tools\xunit</XUnitPath> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<ReleaseFolder>Release</ReleaseFolder> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<BuildOutput Include="Src\Humanizer\bin\Release\Humanizer.dll" /> | ||
<BuildOutput Include="Src\Humanizer\bin\Release\Humanizer.XML" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectToBuild Include="Src\*.sln" /> | ||
</ItemGroup> | ||
<!-- Expand build output files AFTER the build has run. | ||
Note that the Build Task MUST BE defined by the file that includes this file. --> | ||
<Target Name="GetTestAssemblies" DependsOnTargets="Build"> | ||
<ItemGroup> | ||
<TestAssemblies Include="**\bin\Release\*.Tests.dll" /> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build;CopyToReleaseFolder" ToolsVersion="4.0"> | ||
<!--Project configuration--> | ||
<Import Project="Build.config" /> | ||
|
||
<UsingTask TaskName="xunit" AssemblyFile="$(XUnitPath)\xunit.runner.msbuild.dll" /> | ||
|
||
<!--Clean--> | ||
<Target Name="CleanAll" DependsOnTargets="CleanDebug;CleanVerify;CleanRelease" /> | ||
<Target Name="CleanDebug"> | ||
<MSBuild Projects="@(ProjectToBuild)" Targets="Clean" Properties="Configuration=Debug" /> | ||
</Target> | ||
<Target Name="CleanVerify"> | ||
<MSBuild Projects="@(ProjectToBuild)" Targets="Clean" Properties="Configuration=Verify" /> | ||
</Target> | ||
<Target Name="CleanRelease"> | ||
<MSBuild Projects="@(ProjectToBuild)" Targets="Clean" Properties="Configuration=Release" /> | ||
</Target> | ||
|
||
<!--Compile--> | ||
<Target Name="Build" DependsOnTargets="CleanAll"> | ||
<MSBuild Projects="@(ProjectToBuild)" Properties="Configuration=Verify" /> | ||
<MSBuild Projects="@(ProjectToBuild)" Properties="Configuration=Release" /> | ||
</Target> | ||
|
||
<!--Test. Note that the GetTestAssemblies Task MUST BE defined in the Build.config file. --> | ||
<Target Name="Test" DependsOnTargets="GetTestAssemblies"> | ||
<xunit Assemblies="@(TestAssemblies)" /> | ||
</Target> | ||
|
||
<!--Release--> | ||
<Target Name="DeleteReleaseFolder"> | ||
<RemoveDir Directories="$(ReleaseFolder)" /> | ||
</Target> | ||
<Target Name="MakeReleaseFolder" DependsOnTargets="DeleteReleaseFolder"> | ||
<MakeDir Directories="$(ReleaseFolder)" Condition="!Exists($(ReleaseFolder))" /> | ||
</Target> | ||
<Target Name="CopyToReleaseFolder" DependsOnTargets="Test"> | ||
<Copy SourceFiles="@(BuildOutput)" DestinationFolder="$(ReleaseFolder)" /> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RuleSet Name="Humanizer" Description="These rules focus on the most critical problems in your code, including potential security holes, application crashes, and other important logic and design errors. You should include this rule set in any custom rule set you create for your projects." ToolsVersion="12.0"> | ||
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed"> | ||
<Rule Id="CA1001" Action="Error" /> | ||
<Rule Id="CA1009" Action="Error" /> | ||
<Rule Id="CA1016" Action="Error" /> | ||
<Rule Id="CA1033" Action="Error" /> | ||
<Rule Id="CA1049" Action="Error" /> | ||
<Rule Id="CA1060" Action="Error" /> | ||
<Rule Id="CA1061" Action="Error" /> | ||
<Rule Id="CA1063" Action="Error" /> | ||
<Rule Id="CA1065" Action="Error" /> | ||
<Rule Id="CA1301" Action="Error" /> | ||
<Rule Id="CA1400" Action="Error" /> | ||
<Rule Id="CA1401" Action="Error" /> | ||
<Rule Id="CA1403" Action="Error" /> | ||
<Rule Id="CA1404" Action="Error" /> | ||
<Rule Id="CA1405" Action="Error" /> | ||
<Rule Id="CA1410" Action="Error" /> | ||
<Rule Id="CA1415" Action="Error" /> | ||
<Rule Id="CA1821" Action="Error" /> | ||
<Rule Id="CA1900" Action="Error" /> | ||
<Rule Id="CA1901" Action="Error" /> | ||
<Rule Id="CA2002" Action="Error" /> | ||
<Rule Id="CA2100" Action="Error" /> | ||
<Rule Id="CA2101" Action="Error" /> | ||
<Rule Id="CA2108" Action="Error" /> | ||
<Rule Id="CA2111" Action="Error" /> | ||
<Rule Id="CA2112" Action="Error" /> | ||
<Rule Id="CA2114" Action="Error" /> | ||
<Rule Id="CA2116" Action="Error" /> | ||
<Rule Id="CA2117" Action="Error" /> | ||
<Rule Id="CA2122" Action="Error" /> | ||
<Rule Id="CA2123" Action="Error" /> | ||
<Rule Id="CA2124" Action="Error" /> | ||
<Rule Id="CA2126" Action="Error" /> | ||
<Rule Id="CA2131" Action="Error" /> | ||
<Rule Id="CA2132" Action="Error" /> | ||
<Rule Id="CA2133" Action="Error" /> | ||
<Rule Id="CA2134" Action="Error" /> | ||
<Rule Id="CA2137" Action="Error" /> | ||
<Rule Id="CA2138" Action="Error" /> | ||
<Rule Id="CA2140" Action="Error" /> | ||
<Rule Id="CA2141" Action="Error" /> | ||
<Rule Id="CA2146" Action="Error" /> | ||
<Rule Id="CA2147" Action="Error" /> | ||
<Rule Id="CA2149" Action="Error" /> | ||
<Rule Id="CA2200" Action="Error" /> | ||
<Rule Id="CA2202" Action="Error" /> | ||
<Rule Id="CA2207" Action="Error" /> | ||
<Rule Id="CA2212" Action="Error" /> | ||
<Rule Id="CA2213" Action="Error" /> | ||
<Rule Id="CA2214" Action="Error" /> | ||
<Rule Id="CA2216" Action="Error" /> | ||
<Rule Id="CA2220" Action="Error" /> | ||
<Rule Id="CA2229" Action="Error" /> | ||
<Rule Id="CA2231" Action="Error" /> | ||
<Rule Id="CA2232" Action="Error" /> | ||
<Rule Id="CA2235" Action="Error" /> | ||
<Rule Id="CA2236" Action="Error" /> | ||
<Rule Id="CA2237" Action="Error" /> | ||
<Rule Id="CA2238" Action="Error" /> | ||
<Rule Id="CA2240" Action="Error" /> | ||
<Rule Id="CA2241" Action="Error" /> | ||
<Rule Id="CA2242" Action="Error" /> | ||
</Rules> | ||
</RuleSet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.