app.config зависимая сборка не работает

Я хотел бы напрямую ссылаться на библиотеки DLL, которые используются во время компиляции / выполнения. Схема моей программы такова: Console Exe запускает dll winform. Эта dll использует кучу dll для работы. Appconfig находится в проекте dll winform. Основываясь на некотором чтении, dll winform ищет неправильный app.config? Я намереваюсь выполнить свою dll с помощью Assembly.LoadFrom ();

Я создал файл app.config и добавил следующие строки внутри раздела

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
            <assemblyIdentity name="CommonConversions"
                              publicKeyToken="null"
                              culture="neutral" />
            <codeBase version="1.0.0.0"
                      href="file://C://BMS_ACTD//bin//DX//Globals//CommonConversions.dll"/>
        </dependentAssembly>
        <dependentAssembly>
            <assemblyIdentity name="GlobalConstants"
                              publicKeyToken="null"
                              culture="neutral" />
            <codeBase version="1.0.0.0"
                      href="file://C://BMS_ACTD//bin//DX//Globals//GlobalConstants.dll"/>
        </dependentAssembly>
        <dependentAssembly>
            <assemblyIdentity name="MessageInstance"
                              publicKeyToken="null"
                              culture="neutral" />
            <codeBase version="1.0.0.0"
                      href="file://C://BMS_ACTD//bin//DX//Globals//MessageInstance.dll"/>
        </dependentAssembly>
        <dependentAssembly>
            <assemblyIdentity name="MessageInterface"
                              publicKeyToken="null"
                              culture="neutral" />
            <codeBase version="1.0.0.0"
                      href="file://C://BMS_ACTD//bin//DX//Globals//MessageInterface.dll"/>
        </dependentAssembly>
        <dependentAssembly>
            <assemblyIdentity name="ToolsInterface"
                              publicKeyToken="null"
                              culture="neutral" />
            <codeBase version="1.0.0.0"
                      href="file://C://BMS_ACTD//bin//DX//Globals//ToolsInterface.dll"/>
        </dependentAssembly>
    </assemblyBinding>
</runtime>

Местоположение определенно правильное. У DLL нет строгих названий, поэтому publicKeyToken = "null". все мои версии 1.0.0.0. Когда я смотрю на свойства своей DLL, на которую указывает ссылка, культура остается пустой. Может быть и мой тоже? Есть ли что-нибудь, что, кажется, я делаю неправильно?

8
задан Jason 27 July 2011 в 15:12
поделиться