![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I created a simple test application to try to learn various resource deployment options. I have so far been successful using satellite assemblies only when they are not strongly named. Ultimately I would like to see them work in the GAC but for now I'm just trying to load them in my standard directory structure. Below are the steps I am taking. (I feel like I've read just about every thread on this topic). 1. Using VS2005, build my test application (ResourceTest.exe) with a strong name key pair (resourcetest.snk). I have also assigned the SatelliteContractVersionAttribute to 1.0.0.0. 2. Using al.exe, create my satellite assembly using the same key pair to strongly name it as well. Here is the script I am using... al /t:lib /embed:myResources.de.resources /culture:de /Keyf:..\..\..\resourcetest.snk" /template:..\ResourceTest.exe /v:1.0.0.0 /out:ResourceTest.resources.dll The generated .dll file is now located in the .\de directory relative to my main app .exe file. 3. Run the main application and try to change the culture however the default resources file is used instead of the satellite assembly. Note that this does work correctly if I do not strongly name either the main app or the satellite assembly. Any thoughts on where I could be going wrong? |
#3
| |||
| |||
|
| http://msevents.microsoft.com/cui/We...CountryCode=US watch this video. On Wed, 26 Apr 2006 17:13:11 -0600, "Nico Cizik" support (AT) digital-metaphors (DOT) com wrote: Hi, I created a simple test application to try to learn various resource deployment options. I have so far been successful using satellite assemblies only when they are not strongly named. Ultimately I would like to see them work in the GAC but for now I'm just trying to load them in my standard directory structure. Below are the steps I am taking. (I feel like I've read just about every thread on this topic). 1. Using VS2005, build my test application (ResourceTest.exe) with a strong name key pair (resourcetest.snk). I have also assigned the SatelliteContractVersionAttribute to 1.0.0.0. 2. Using al.exe, create my satellite assembly using the same key pair to strongly name it as well. Here is the script I am using... al /t:lib /embed:myResources.de.resources /culture:de /Keyf:..\..\..\resourcetest.snk" /template:..\ResourceTest.exe /v:1.0.0.0 /out:ResourceTest.resources.dll The generated .dll file is now located in the .\de directory relative to my main app .exe file. 3. Run the main application and try to change the culture however the default resources file is used instead of the satellite assembly. Note that this does work correctly if I do not strongly name either the main app or the satellite assembly. Any thoughts on where I could be going wrong? |
#4
| |||
| |||
|
| http://msevents.microsoft.com/cui/We...CountryCode=US watch this video. On Wed, 26 Apr 2006 17:13:11 -0600, "Nico Cizik" support (AT) digital-metaphors (DOT) com wrote: Hi, I created a simple test application to try to learn various resource deployment options. I have so far been successful using satellite assemblies only when they are not strongly named. Ultimately I would like to see them work in the GAC but for now I'm just trying to load them in my standard directory structure. Below are the steps I am taking. (I feel like I've read just about every thread on this topic). 1. Using VS2005, build my test application (ResourceTest.exe) with a strong name key pair (resourcetest.snk). I have also assigned the SatelliteContractVersionAttribute to 1.0.0.0. 2. Using al.exe, create my satellite assembly using the same key pair to strongly name it as well. Here is the script I am using... al /t:lib /embed:myResources.de.resources /culture:de /Keyf:..\..\..\resourcetest.snk" /template:..\ResourceTest.exe /v:1.0.0.0 /out:ResourceTest.resources.dll The generated .dll file is now located in the .\de directory relative to my main app .exe file. 3. Run the main application and try to change the culture however the default resources file is used instead of the satellite assembly. Note that this does work correctly if I do not strongly name either the main app or the satellite assembly. Any thoughts on where I could be going wrong? |
#5
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |