![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | .snk File After using the sn.exe tool (or using VS 2008) to generate a strong name key file and associating my assembly with that strong name, what should I be doing with the actual .snk file? Do I deploy that? -Scott |
My System Specs![]() |
| | #2 (permalink) |
| | Re: .snk File "Scott M." <s-mar@xxxxxx> wrote in message news:%23zC$jUJ4IHA.4800@xxxxxx Quote: > After using the sn.exe tool (or using VS 2008) to generate a strong name > key file and associating my assembly with that strong name, what should I > be doing with the actual .snk file? Do I deploy that? You have to deploy the file with the application, otherwise, the file is not going to be there when the application looks for it. |
My System Specs![]() |
| | #3 (permalink) |
| | Re: .snk File Where on the production machine should the .snk file be deployed to? "Mr. Arnold" <MR. Arnold@xxxxxx> wrote in message news:ehy%23ayN4IHA.1420@xxxxxx Quote: > > "Scott M." <s-mar@xxxxxx> wrote in message > news:%23zC$jUJ4IHA.4800@xxxxxx Quote: >> After using the sn.exe tool (or using VS 2008) to generate a strong name >> key file and associating my assembly with that strong name, what should I >> be doing with the actual .snk file? Do I deploy that? > > You have to deploy the file with the application, otherwise, the file is > not going to be there when the application looks for it. > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: .snk File "Scott M." <s-mar@xxxxxx> wrote in message news:OHlNS2T4IHA.3804@xxxxxx Quote: > Where on the production machine should the .snk file be deployed to? I have only used the .snk file a couple of times, but that was during the compile of a 3rd party business framework that used the .snk file during compilation in the assembly manifest where the manifest pointed to the .snk file, to make it a strong named assembly. Once the assembly has been compiled using the .snk, then it's a strong named assembly and you don't deploy the .snk file with the binaries. Sorry for the miss information. |
My System Specs![]() |
| | #5 (permalink) |
| | Re: .snk File "Scott M." <s-mar@xxxxxx> wrote in message news:OHlNS2T4IHA.3804@xxxxxx Quote: > Where on the production machine should the .snk file be deployed to? > deployed to a production machine and you didn't use the sn.exe tool for the assembly, then you use the Gacutil.exe tool to place the binary in the Global Assembly Cache of the machine. All assemblies place in the GAC are tagged as a strong named assembly. |
My System Specs![]() |
| | #6 (permalink) |
| | Re: .snk File I don't think that's quite right. All assemblies in the GAC must be strong named. This is how we avoid versioning conflicts. "Mr. Arnold" <MR. Arnold@xxxxxx> wrote in message news:eeNkEbj4IHA.2064@xxxxxx Quote: > > "Scott M." <s-mar@xxxxxx> wrote in message > news:OHlNS2T4IHA.3804@xxxxxx Quote: >> Where on the production machine should the .snk file be deployed to? >> > Oh, one other thing, if the assembly has to be strong named, it needed to > be deployed to a production machine and you didn't use the sn.exe tool for > the assembly, then you use the Gacutil.exe tool to place the binary in the > Global Assembly Cache of the machine. All assemblies place in the GAC are > tagged as a strong named assembly. |
My System Specs![]() |
| | #7 (permalink) |
| | Re: .snk File "Scott M." <s-mar@xxxxxx> wrote in message news:O$Wqi3s4IHA.2348@xxxxxx Quote: >I don't think that's quite right. All assemblies in the GAC must be strong >named. This is how we avoid versioning conflicts. > publictokenkey is what makes things unique where you can use an assembly redirect in the web or app.config pointing to various version of the same named assembly in the GAC. Maybe the sn.key is part of pt.key |
My System Specs![]() |
| | #8 (permalink) |
| | Re: .snk File The .snk contains a public/private key pair. For any assembly to be in the GAC it must be stong named using this pair. If you redirect via your ..config files to another assembly in the GAC, that assembly will still have to be strong named. If you point to a private assembly is doesn't (but still could be). "Mr. Arnold" <MR. Arnold@xxxxxx> wrote in message news:uS3M6ku4IHA.2064@xxxxxx Quote: > > "Scott M." <s-mar@xxxxxx> wrote in message > news:O$Wqi3s4IHA.2348@xxxxxx Quote: >>I don't think that's quite right. All assemblies in the GAC must be >>strong named. This is how we avoid versioning conflicts. >> > You are correct on the strong named part, but I think the assembly > publictokenkey is what makes things unique where you can use an assembly > redirect in the web or app.config pointing to various version of the same > named assembly in the GAC. Maybe the sn.key is part of pt.key |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| open a file, wait for user to amend file, close & process | PowerShell | |||
| multiselect file open dialog that supports long file names | VB Script | |||
| Create New folder, move file, delete file. Explorer Freeze | General Discussion | |||
| file icons dont match contents-file names hidden | Vista file management | |||
| coping file from a remote file share - FILE IS NO LONG THERE bogus error message | Vista networking & sharing | |||