Tuesday 19 April 2016

c# publish


windows->start->microsoft visual studio 2012->visual studio tools->developer command prompt

C:\Program Files (x86)\Microsoft Visual Studio 11.0>cd\

C:\>md keys

C:\>cd keys

C:\keys>sn -k keys.snk

Microsoft (R) .NET Framework Strong Name Utility  Version 4.0.30319.17929
Copyright (c) Microsoft Corporation.  All rights reserved.

Key pair written to keys.snk

C:\keys>

----------------------------------------------------------------------------------------

open program -> properties -> assemblyinfo.cs

add to last line
[assembly:AssemblyKeyFile(@"c:\key\keys.snk")]

---------------------------------------------------------------------------

project-> xxx properties



address from below
-----------------------------------------------------------------------------------------------------------------
cmd -> net use

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\xxxxxx>net use
New connections will be remembered.


Status       Local     Remote                    Network

-------------------------------------------------------------------------------
OK           H:        \\vfil253.acdm.ds.sait.ca\h_student$\xxxxxx
                                                Microsoft Windows Network
             O:        \\acdm.ds.sait.ca\rootdfs Microsoft Windows Network
The command completed successfully.


C:\Users\xxxxx>

--------------------------------------------------------------------------------
program directory -> publish folder


No comments:

Post a Comment