- Notifications
You must be signed in to change notification settings - Fork1.4k
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hi, <CustomReferenceInclude="Package1" /><CustomReferenceInclude="Package2" /> The condition property is set in <PropertyGroup> <UseLocalNuGetProjectsCondition="'$(UseLocalNuGetProjects)' == ''">true</UseLocalNuGetProjects> And the target is implemented in <Project> <TargetName="ResolveCustomeReferences"BeforeTargets="BeforeBuild;ResolveReferences"> <ItemGroupCondition="'@(CustomReference.Identity)' != ''"> <MSBuildProjects="$(MSBuildThisFileDirectory)Libraries/%(CustomReference.Identity)/%(CustomReference.Identity).csproj"Targets="Restore;Build"Condition="'$(UseLocalNuGetProjects)' == 'true'" /> <ProjectReferenceInclude="$(MSBuildThisFileDirectory)Libraries/%(CustomReference.Identity)/%(CustomReference.Identity).csproj"Condition="'$(UseLocalNuGetProjects)' == 'true'"IncludeAssets="all" /> <PackageReferenceInclude="@(CustomReference)"Condition="'$(UseLocalNuGetProjects)' != 'true'" /><!-- I have also Directory.Packages.props so I don't need version in PackageReference in the target.--> </ItemGroup> </Target></Project> I have 2 problem with this approach:
How can I solve these two problems? By the way I've tried many targets in Best Regards. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 0 comments
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment