|
3 | 3 | <SDKType Condition="'$(SDKType)' == ''">all</SDKType> |
4 | 4 | <ServiceDirectory Condition="'$(ServiceDirectory)' == '' and '$(Scope)' != ''">$(Scope)</ServiceDirectory> |
5 | 5 | <ServiceDirectory Condition="'$(ServiceDirectory)' == ''">*</ServiceDirectory> |
| 6 | + <Project Condition="'$(Project)' == ''">**</Project> |
6 | 7 | <IncludeTests Condition="'$(IncludeTests)' == ''">true</IncludeTests> |
7 | 8 | <IncludeSrc Condition="'$(IncludeSrc)' == ''">true</IncludeSrc> |
8 | 9 | <IncludeSamples Condition="'$(IncludeSamples)' == ''">true</IncludeSamples> |
|
14 | 15 |
|
15 | 16 | <ItemGroup> |
16 | 17 | <MgmtExcludePaths Include="$(MSBuildThisFileDirectory)..\sdk\*\Microsoft.*.Management.*\**\*.csproj;$(MSBuildThisFileDirectory)..\sdk\*mgmt*\**\*.csproj" /> |
17 | | - <TestProjects Include="..\sdk\$(ServiceDirectory)\**\tests\**\*.csproj" /> |
18 | | - <SamplesProjects Include="..\sdk\$(ServiceDirectory)\**\samples\**\*.csproj" /> |
19 | | - <PerfProjects Include="..\sdk\$(ServiceDirectory)\**\perf\**\*.csproj" /> |
20 | | - <StressProjects Include="..\sdk\$(ServiceDirectory)\**\stress\**\*.csproj" /> |
| 18 | + <TestProjects Include="..\sdk\$(ServiceDirectory)\$(Project)\tests\**\*.csproj" /> |
| 19 | + <SamplesProjects Include="..\sdk\$(ServiceDirectory)\$(Project)\samples\**\*.csproj" /> |
| 20 | + <PerfProjects Include="..\sdk\$(ServiceDirectory)\$(Project)\perf\**\*.csproj" /> |
| 21 | + <StressProjects Include="..\sdk\$(ServiceDirectory)\$(Project)\stress\**\*.csproj" /> |
21 | 22 | <SampleApplications Include="..\samples\**\*.csproj" /> |
22 | | - <SrcProjects Include="..\sdk\$(ServiceDirectory)\**\*.csproj" Exclude="@(TestProjects);@(SamplesProjects)"/> |
| 23 | + <SrcProjects Include="..\sdk\$(ServiceDirectory)\$(Project)\*.csproj" Exclude="@(TestProjects);@(SamplesProjects)"/> |
23 | 24 | <ProjectReference Include="@(TestProjects)" Exclude="@(MgmtExcludePaths)" Condition="'$(IncludeTests)' == 'true'" /> |
24 | 25 | <ProjectReference Include="@(SamplesProjects)" Exclude="@(MgmtExcludePaths)" Condition="'$(IncludeSamples)' == 'true'" /> |
25 | 26 | <ProjectReference Include="@(PerfProjects)" Exclude="@(MgmtExcludePaths)" Condition="'$(IncludePerf)' == 'true'" /> |
|
39 | 40 | <Target Name="CheckProjects" AfterTargets="Build"> |
40 | 41 | <!-- 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 --> |
41 | 42 | <Error Condition="'$(Scope)' == '' and '@(ProjectReference)' == ''" |
42 | | - Text="No Projects found with patttern [..\sdk\$(ServiceDirectory)\**\*.csproj], please make sure you have passed in the correct ServiceDirectory." /> |
| 43 | + Text="No Projects found with patttern [..\sdk\$(ServiceDirectory)\$(Project)\*.csproj], please make sure you have passed in the correct ServiceDirectory." /> |
43 | 44 | </Target> |
44 | 45 |
|
45 | 46 | <Target Name="GenerateCode"> |
|
0 commit comments