2

I was curious if CLR could load assemblies from a specific location and this is what I found which basically loads the assembly from C:\MyAssemblies folder.

Now, my question is - Is it possible to use environment variables in the following href attribute? In other words, instead of c:\ is it possible to say something like %windir% ?

I am probably going to use GAC for what I need to get done but I was wondering if using environment variables in this context was even possible. Thanks.

<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="MyAssembly2"  culture="neutral" publicKeyToken="307041694a995978"/>
            <codeBase version="1.0.1524.23149" href="FILE://C:/Myassemblies/MyAssembly2.dll"/>
         </dependentAssembly>
      </assemblyBinding>
   </runtime>
</configuration>
0

1 Answer 1

0

Sadly this doesn't seem to be possible, at least not using the standard Microsoft syntax for environment variables of %FOO%.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.