Note that there are some explanatory texts on larger screens.

plurals
  1. PO.csproj's platform specific ItemGroup works for assembly references but not content includes?
    primarykey
    data
    text
    <p>Since we have three assemblies that come in explicit x86 and x64 versions, I've edited the corresponding .csproj file(s) to use, for example, a block like this:</p> <pre><code> &lt;ItemGroup Condition=" '$(Platform)' == 'x86' "&gt; &lt;Reference Include="CaliberRMSDK"&gt; &lt;HintPath&gt;..\Libraries\CaliberRMSDK_IKVM\32bit\CaliberRMSDK.dll&lt;/HintPath&gt; &lt;/Reference&gt; &lt;Content Include="..\Libraries\CaliberRMSDK_IKVM\32bit\ikvm-native.dll"&gt; &lt;Link&gt;ikvm-native.dll&lt;/Link&gt; &lt;CopyToOutputDirectory&gt;Always&lt;/CopyToOutputDirectory&gt; &lt;/Content&gt; &lt;Content Include="..\Libraries\CaliberRMSDK_IKVM\32bit\JVM.dll"&gt; &lt;Link&gt;JVM.dll&lt;/Link&gt; &lt;CopyToOutputDirectory&gt;Always&lt;/CopyToOutputDirectory&gt; &lt;/Content&gt; &lt;/ItemGroup&gt; &lt;ItemGroup Condition=" '$(Platform)' == 'x64' "&gt; &lt;Reference Include="CaliberRMSDK"&gt; &lt;HintPath&gt;..\Libraries\CaliberRMSDK_IKVM\64bit\CaliberRMSDK.dll&lt;/HintPath&gt; &lt;/Reference&gt; &lt;Content Include="..\Libraries\CaliberRMSDK_IKVM\64bit\ikvm-native.dll"&gt; &lt;Link&gt;ikvm-native.dll&lt;/Link&gt; &lt;CopyToOutputDirectory&gt;Always&lt;/CopyToOutputDirectory&gt; &lt;/Content&gt; &lt;Content Include="..\Libraries\CaliberRMSDK_IKVM\64bit\JVM.dll"&gt; &lt;Link&gt;JVM.dll&lt;/Link&gt; &lt;CopyToOutputDirectory&gt;Always&lt;/CopyToOutputDirectory&gt; &lt;/Content&gt; &lt;/ItemGroup&gt; </code></pre> <p>When reloading the .csproj file in Visual Studio 2010 and using 'x86' as platform, all works perfectly fine. When choosing 'x64' as platform, the proper 64bit assembly reference is used <strong>BUT</strong> the linked ( <code>&lt;Content Include= ...&gt;</code> ..) <em>always</em> uses the 32bit ones (and therefore the app is broken).</p> <p>There's no Any CPU anymore in the project files and I would have 'expected' it to work just fine for the content includes, too.. but it doesn't. Is there anything I am missing?</p>
    singulars
    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.
 

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