Skip to content

Commit

Permalink
Update service.proj to fix check and mgmt filtering (Azure#6984)
Browse files Browse the repository at this point in the history
  • Loading branch information
weshaggard authored Jul 19, 2019
1 parent ce639b7 commit b9dd010
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eng/service.proj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<ExcludeMgmtLib Include="..\sdk\$(ServiceDirectory)\*.Management.*\**\*.csproj;..\sdk\*mgmt*\**\*.csproj;" />
<ExcludeMgmtLib Include="..\sdk\*\*.Management.*\**\*.csproj;..\sdk\*mgmt*\**\*.csproj;" />
<TestProjects Include="..\sdk\$(ServiceDirectory)\**\tests\**\*.csproj" />
<SrcProjects Include="..\sdk\$(ServiceDirectory)\**\*.csproj" Exclude="@(TestProjects)" />
<ProjectReference Include="@(TestProjects)" Exclude="@(ExcludeMgmtLib)" Condition="'$(IncludeTests)' == 'true'" />
Expand All @@ -17,7 +17,8 @@
<Import Project="..\sdk\$(ServiceDirectory)\*.projects" />

<Target Name="CheckProjects" AfterTargets="Build">
<Error Condition="'@(ProjectReference)' == ''"
<!-- If scope is set this likely came from a call to build.proj and in cases where there is only mgmt projects we don't want to error so skip this extra check -->
<Error Condition="'$(Scope)' == '' and '@(ProjectReference)' == ''"
Text="No Projects found with patttern [..\sdk\$(ServiceDirectory)\**\*.csproj], please make sure you have passed in the correct ServiceDirectory." />
</Target>
</Project>

0 comments on commit b9dd010

Please sign in to comment.