Skip to content

Commit

Permalink
remove redundant MdTargetDir check
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jun 22, 2020
1 parent 7798e6e commit a62870a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CS1591</NoWarn>
<Version>19.0.0</Version>
<Version>19.0.1</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>Markdown, Snippets, mdsnippets, documentation, MarkdownSnippets</PackageTags>
<Description>Extracts snippets from code files and merges them into markdown documents.</Description>
Expand Down
5 changes: 0 additions & 5 deletions src/MarkdownSnippets.MsBuild/MarkdownSnippets.MsBuild.targets
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MarkdownSnippetsAssembly>$(MSBuildThisFileDirectory)..\task\MarkdownSnippets.MsBuild.dll</MarkdownSnippetsAssembly>
<MdTargetDir Condition="'$(SolutionDir)' != '' AND Exists('$(SolutionDir).git')">$(SolutionDir)</MdTargetDir>
<MdTargetDir Condition="'$(SolutionDir)' != '' AND Exists('$(SolutionDir)..\.git')">$(SolutionDir)..\</MdTargetDir>
</PropertyGroup>

<ItemGroup>
Expand All @@ -17,9 +15,6 @@
Name="MarkdownSnippetsTarget"
AfterTargets="AfterCompile"
Condition="$(DesignTimeBuild) != true AND '$(NCrunch)' != '1' AND ('$(TargetFrameworks)' == '' OR $(TargetFrameworks.EndsWith($(TargetFramework))))" >
<Error
Text="No '.git' directory found. Define a `MdTargetDir`."
Condition="'$(MdTargetDir)' == ''" />
<MarkdownSnippets.DocoTask
ProjectDirectory="$(MSBuildProjectDirectory)"
ReadOnly="$(MarkdownSnippetsReadOnly)"
Expand Down

0 comments on commit a62870a

Please sign in to comment.