Replies: 1 comment 1 reply
-
The suggested way is to extract the desired targets/props into a separate file and include it into projects explicitly. If the downstream consumers are independent from the project of question - then the reference should vbe packaged and distributed as nuget package (which supports auto-importable build scripts). If you have scenario that is no achievable via any of the above options, then please provide a bit more info on the actual intent |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Two projects:
SomeLib.csproj
SomeApp.csproj (uses SomeLib)
<PackageReference Include="SomeLib" />
Q: Is there any possibility to make some .targets file which will be applied automatically to SomeApp via
<ProjectReference Include="SomeLib.csproj"/>
For example
SomeApp % dotnet build
--> Hello 'SomeApp'
Beta Was this translation helpful? Give feedback.
All reactions