Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get DEVPATH assemblies in the Add reference window in Visual Studio 2010?
    primarykey
    data
    text
    <p>I want to add reference to an assembly that is in the Devpath folder. But it does not appear in the Add Reference Window.</p> <p>the <strong>C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config</strong> is updated with :</p> <pre><code>&lt;runtime&gt; &lt;developmentMode developerInstallation="true"/&gt; &lt;/runtime&gt; </code></pre> <p>The environment variable DEVPATH is set in system variable as<br> <strong>C:\SharedAssemblies</strong></p> <p>I try to add the reference directly into the project file :</p> <pre><code>&lt;Reference Include="AssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=123456789, processorArchitecture=MSIL"&gt; </code></pre> <p></p> <p>But MSBuild do not look at the devpath folder and returns </p> <blockquote> <p>warning MSB3245: Could not resolve this reference. Could not locate the assembly...</p> </blockquote> <p>How does this work ?</p> <hr> <p>If I add the assembly to the GAC, the Fusion log show me that the devpath folder is used :</p> <pre><code>*** Entrée du journal Binder d'assembly (28/11/2012 @ 15:09:07) *** L'opération a réussi. Résultat de liaison : hr = 0x0. L’opération a réussi. Gestionnaire des assemblys chargé à partir de : C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll Exécution sous l'exécutable c:\users\User\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe --- Un journal des erreurs détaillé suit. === Informations d'état de liaison préalable === JRN : utilisateur = User JRN : DisplayName = AssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=123456789 (Fully-specified) JRN : Appbase = file:///c:/users/User/documents/visual studio 2010/Projects/ConsoleApplication1/ConsoleApplication1/bin/Debug/ JRN : DEVPATH = C:\SharedAssemblies JRN : PrivatePath initial = NULL JRN : base dynamique = NULL JRN : base de cache = NULL JRN : AppName = NULL Assembly appelant : Microsoft.VisualStudio.HostingProcess.Utilities, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. === JRN : cette liaison démarre dans le contexte de chargement de default. JRN : utilisation du fichier de configuration de l'application : c:\users\User\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe.Config JRN : utilisation du fichier de configuration de l'ordinateur à partir de C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config. JRN : référence post-stratégie : AssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=123456789 JRN : un assembly a été trouvé dans le chemin d'accès DEVOVERRIDE C:\SharedAssemblies\AssemblyName.DLL </code></pre>
    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.
    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