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

Create a props file used to include Azure.Base in the project. #5342

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,13 @@
<PackageReference Include="System.Memory" Version="4.5.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Azure.ApplicationModel.Configuration\Azure.Configuration.csproj" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\Azure.ApplicationModel.Configuration\Azure.Configuration.csproj" />
Copy link
Member

Choose a reason for hiding this comment

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

Any particular reason you added the $(MSBuildThisFileDirectory)? While it doesn't hurt anything relative paths also resolve correctly so was curious why prompted you to use it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing in particular, just that I've been hurt in the past with relative paths so I wanted to be explicit about them

</ItemGroup>

<ItemGroup>
<Compile Include="..\..\..\Azure.Base\data-plane\Azure.Base.Tests\Testing\TestPool.cs" Link="TestPool.cs" />
<Compile Include="$(MSBuildThisFileDirectory)..\..\..\Azure.Base\data-plane\Azure.Base.Tests\Testing\TestPool.cs" Link="TestPool.cs" />
</ItemGroup>

<!-- Project references -->
<ItemGroup Condition="'$(UseProjectReferenceToAzureBase)'=='true'">
<ProjectReference Include="..\..\..\Azure.Base\data-plane\Azure.Base\Azure.Base.csproj" />
</ItemGroup>

<!-- Package references -->
<ItemGroup Condition="'$(UseProjectReferenceToAzureBase)'==''">
<PackageReference Include="Azure.Base" Version="1.0.0-preview.3" />
</ItemGroup>
<!-- Import the Azure.Base project -->
<Import Project="$(MSBuildThisFileDirectory)..\..\..\Azure.Base\data-plane\Azure.Base\Azure.Base.props" />
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@
</PackageReference>
</ItemGroup>

<!-- Project references -->
<ItemGroup Condition="'$(UseProjectReferenceToAzureBase)'=='true'">
<ProjectReference Include="..\..\..\Azure.Base\data-plane\Azure.Base\Azure.Base.csproj" />
</ItemGroup>

<!-- Package references -->
<ItemGroup Condition="'$(UseProjectReferenceToAzureBase)'!='true'">
<PackageReference Include="Azure.Base" Version="1.0.0-preview.3" />
</ItemGroup>
<!-- Import the Azure.Base project -->
<Import Project="$(MSBuildThisFileDirectory)..\..\..\Azure.Base\data-plane\Azure.Base\Azure.Base.props" />
</Project>
11 changes: 11 additions & 0 deletions src/SDKs/Azure.Base/data-plane/Azure.Base/Azure.Base.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Project references -->
<ItemGroup Condition="'$(UseProjectReferenceToAzureBase)'=='true'">
<ProjectReference Include="$(MSBuildThisFileDirectory)Azure.Base.csproj" />
</ItemGroup>

<!-- Package references -->
<ItemGroup Condition="'$(UseProjectReferenceToAzureBase)'!='true'">
<PackageReference Include="Azure.Base" Version="1.0.0-preview.3" />
</ItemGroup>
</Project>