Skip to content
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

Update services.proj #6415

Merged
merged 1 commit into from
May 24, 2019
Merged

Conversation

weshaggard
Copy link
Member

  • Add default value of "*" for ServiceDirectory
  • Add validation to ensure we have at least one project
  • Add extension so services can add or remove default projects

For example if a service wants to exclude all projects under a tools folder
they would create a file like sdk\service\service.projects with:

<Project>
  <ItemGroup>
    <ProjectReference Remove="$(MSBuildThisFileDirectory)**\tools\**\*.csproj" />
  </ItemGroup>
</Project>

PTAL @mitchdenny @chidozieononiwu

cc @azure/azure-sdk-eng

- Add default value of "*" for ServiceDirectory
- Add validation to ensure we have at least one project
- Add extension so services can add or remove default projects

For example if a service wants to exclude all projects under a tools folder
they would create a file like sdk\service\service.projects with:

<Project>
  <ItemGroup>
    <ProjectReference Remove="$(MSBuildThisFileDirectory)**\tools\**\*.csproj" />
  </ItemGroup>
</Project>
Copy link
Contributor

@mitchdenny mitchdenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is your expectation that this file, if it exists overrides everything that is discovered with the default rule?

@weshaggard
Copy link
Member Author

weshaggard commented May 24, 2019

Is your expectation that this file, if it exists overrides everything that is discovered with the default rule?

No it only mutates what was selected. If you see my example in the description it just removes items from the project reference set.

Copy link
Member

@chidozieononiwu chidozieononiwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this locally and it works as expected.

@mitchdenny
Copy link
Contributor

LGTM!

@chidozieononiwu chidozieononiwu merged commit 48204fd into Azure:master May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants