Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lab3: public assembly
- in lab3.1
- 1. sn -k mykey.snk
- 2. csc /t:library /keyfile:mykey.snk calc.cs
- 3. gacutil -i calc.dll
- 4. csc /t:exe /r:calc.dll program.cs
- 5. prog.exe
- 6 . change location of program.exe to desktop
- 7. double click program
- 8. gacutil -u calc
- 9. 7
- in lab3.2
- copy key file and calc.cs
- change version in calc.cs to 2.0 and add console.writeline
- we are not going to program.exe all over again
- 2. csc /t:library /keyfile:mykey.snk calc.cs
- 3. gacutil -i calc.dll
- it is still running from older dll
- add this in program.exe.config
- <configuration>
- <runtime>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="tsncalc" publicKeyToken="ad48e47dfb436bf8" culture="neutral" />
- <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" />
- </dependentAssembly>
- </assemblyBinding>
- </runtime>
- </configuration>
- PUBLISHER POLICY ASSEMBLY
- in 3.2
- >al /out:policy.1.0.tsncalc.dll /keyfile:mykey.snk /link:tsncalc.xml /v:1.0.0.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement