Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've been revisiting this problem again, since I do not like to have to manually change the csproj file. (When I change my reference, I must not forget to adapt the csproj file again, to set the Private node to true again).</p> <p>So, I've been digging into MSDN, and I stumbled upon this:</p> <blockquote> <p><strong>ResolveAssemblyReference.TargetFrameworkDirectories Property</strong></p> <p><strong>Remarks</strong> This property is required to determine the CopyLocal status for resulting items.</p> <p>If this property is not specified, no resulting items will be have a CopyLocal value of true unless they explicitly have a Private metadata value of true on their source item.</p> </blockquote> <p>So, this means that there is yet another possibility, and that is to set the TargetFrameworkDirectories of the ResolveAssemblyReference task. However, is there anybody out there who knows how to do this ?<br> I've been trying different things, but nothing seems to be working ...</p> <p>I've tried this:</p> <pre><code>&lt;ItemGroup&gt; &lt;TargetFrameworkDir Include="$(SystemRoot)\Microsoft.NET\Framework\v2.0.50727" /&gt; &lt;/ItemGroup&gt; &lt;PropertyGroup&gt; &lt;TargetDirsToUse&gt;@(TargetFrameworkDir)&lt;/TargetDirsToUse&gt; &lt;/PropertyGroup&gt; &lt;ResolveAssemblyReference TargetFrameworkDirectories="$(TargetDirsToUse)" /&gt; </code></pre> <p>But to no avail ... Maybe someone else knows how to do this, or has a golden tip. (I've been spending way to much time on this f*cking issue).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload