Last active
August 8, 2018 17:57
-
-
Save jaredcnance/f0ff6e8d7efda2bd9578b8dd6e4cfcfd to your computer and use it in GitHub Desktop.
Example for switching between Package and Project References
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
export WORKSPACE_PATH=~/dev | |
- figure out if it is possible to create delimited lists in msbuild properties | |
e.g. export WORKSPACE_PROJECT_PATHS=~/dev/Bar/src/Bar.csproj;~/dev/Foo/Foo.csproj | |
--> | |
<PropertyGroup> | |
<JsonApiDotNetCoreRelativePath>/JsonApiDotNetCore/src/JsonApiDotNetCore.csproj<JsonApiDotNetCoreRelativePath> | |
</PropertyGroup> | |
<ItemGroup Condition="Exists('$(WORKSPACE_PATH)$(JsonApiDotNetCoreRelativePath)')"> | |
<ProjectReference Include="$(WORKSPACE_PATH)$(JsonApiDotNetCoreRelativePath)" /> | |
</ItemGroup> | |
<ItemGroup Condition="!Exists('$(JsonApiDotNetCorePath)')"> | |
<PackageReference Include="JsonApiDotNetCorePath" Version="$(JsonApiDotNetCoreVersion)" /> | |
</ItemGroup> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment