|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
NX12.0 二次开发使用VS2012 报错解决方案
7 @+ }7 s1 h2 z1 l0 k4 e$ e严格的讲NX12.0需要使用VS2015进行开发,这里说下如果你是低版本的解决方案,但是不推荐!
% q7 o$ q* }$ R) `6 ?( d B(1)安装完后,点击Open Wizard 告诉你创建项目错误- Q+ A. _+ |& i( P7 o# k( C
, s$ q/ u0 d! @) [4 N
这种问题就是编译器版本不符合官方的匹配导致的,更改方法很简单 $ c; ^7 k; p7 ^. T
打开 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcprojects下的NX12_NXOpenCPP.vsz 将. o: ^$ ]" d- K+ C
Wizard=VsWizard.VsWizardEngine.14.0 中的14 改成11 也就是对应的VS2012
& \; r* P& L p
' a8 k- m; }% L7 ~6 X" [7 R/ i这样创建的对话框就可以出来了!
" h' g, z" c, X! ?' ^( @( w0 Q) d(2)你可能还会遇到路径错误,path not found, 建议对这个文件进行修改,尤其是你有多个版本存在的话,一劳永逸, D6 f4 j2 Z! r/ `2 H1 H
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCWizards\NX11_NXOpenCPP\scripts\1033 下的default.js 文件
v# j, B6 t8 H' c修改里面的环境变量路径,注意路径是双反斜线 \\,参考如下!. I! v+ @# D; }% q# P5 N6 V1 N* u& L
) A; t7 W+ u2 @% P( h% G% J9 m//@<DEL>@ TEXT ENCLOSED within delete markers will be REMOVED
+ O! Q- M: P. g: A4 G$ m// 09-Jun-2012 Frank Berger Initial Release for VS2010 based on "NX8 Open Wizard"" T9 }8 d% V1 E' a
// 31-Okt-2013 Frank Berger modified for VS2012" n: C% y( e! q. W
// 13-Feb-2015 Sudhir Pawar ARCH:11320: Added libufun_die.lib,libufun_vdac.lib & libufun_weld.lib1 K. Q" Z- t5 w# V) @% ]5 P( H( u* i
// 21-Dec-2015 Purushottam Thakre Fixed PR#7567548: Call DeletePlatform function to delete 'Win32' platform.5 I( e$ y8 i- }
// 08-Jan-2016 Prabhakar Mandlik Fixed PR#7588129: Added /d1scalableinclude- swiTCh.
8 j' Y2 y, e7 E1 ^' q: L' f4 l U// 10-Feb-2016 Purushottam Thakre Fixed PR#7630769: Reverted changes done to fix PR#7567548 which is causing regression7 a- }, d4 B, P+ c4 D
//TEXT ENCLOSED within delete markers will be REMOVED @<DEL>@
?) [* n* B$ C4 t' ~( B w! L- C' j6 A6 \
function OnFinish(selProj, selObj)
& M3 h/ z9 Y4 o{
) L0 c. _, ^) d try5 A' v2 @ P9 @+ E
{$ q" L# p1 y6 o! v* W1 R
var bodyTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "body_template.txt";0 H# c/ E. O$ G- n+ w+ K9 Z* a+ p
var bodyTemplateText = wizard.RenderTemplateToString(bodyTemplateFile);3 p I. y5 |7 ]3 t
wizard.AddSymbol("BODY_TEMPLATE", bodyTemplateText);0 w k0 M, i+ X3 ^/ O) P3 I* F
( i2 e) r9 J! w1 Y( ~( L- L: E$ w6 {
var entryPointsTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "entry_points_template.txt";$ K, O+ }# h+ Z, z
var entryPointsTemplateText = wizard.RenderTemplateToString(entryPointsTemplateFile);
. }- F( s# ~( N2 L wizard.AddSymbol("ENTRY_POINTS_TEMPLATE", entryPointsTemplateText);
, S, v5 d( j5 T8 c3 [' ^' Q+ |+ J3 R* f( D, s. D3 g9 u
var unloadOption = "UNLOAD_IMMEDIATELY";
. |* A( }5 r' R# ^9 F if ( wizard.FindSymbol( "UF_UNLOAD_UG_TERMINATE" ) )8 B! @0 M5 _) A
{
/ n5 ?+ c: z. ?2 }6 v- N8 p unloadOption = "UF_UNLOAD_UG_TERMINATE";
/ S1 p: X! M8 m# c I& N }
) v, G5 z* w$ Y: L$ f# A0 ^ else if ( wizard.FindSymbol( "UNLOAD_SEL_DIALOG" ) )
" F/ B& U" P7 u# p& t {
6 a9 |5 z4 Y9 J% R8 b1 ~: n4 D unloadOption = "UF_UNLOAD_SEL_DIALOG";
0 c9 z8 e9 p5 y, U- s/ `0 C }$ K: A' V+ [; ]: D9 Y, B6 _
wizard.AddSymbol("UF_UNLOAD_OPTION", unloadOption);% _" X, Y2 V, l: w [" o. b
/ b0 ?5 h8 b0 U" e0 g$ z
?) u6 D3 q; Q- _6 L- K
// Assign the project path and project name8 d. X' b6 C+ H. Y+ J Z
var strProjectPath = wizard.FindSymbol("PROJECT_PATH");; c% I& R* i; G5 ]
var strProjectName = wizard.FindSymbol("PROJECT_NAME");
+ G0 u" J9 q4 z: | var strClassName = wizard.FindSymbol("MAIN_CLASS_NAME");
) F' n1 c0 G8 H8 C1 @ if ( strClassName.length < 1 ) * \" _9 r% H$ i% {; E0 Q
{0 G3 @0 L0 Y; B
wizard.AddSymbol("MAIN_CLASS_NAME", "NONAME");
, t6 X9 X$ j* W) X" q* b }
# q% ^/ @9 _; x# j5 F4 Y+ b5 n% i. g) E
. o; I7 p8 M1 B+ y: K. ] // Create the Visual C++ project and call it "NXOpenProj", O1 v Q$ C; Q
selProj = CreateProject(strProjectName, strProjectPath);
5 E, v6 y, X6 O: L// selProj.Object.Keyword = "NXOpenProj"
4 a' M1 x* v1 w* B# v0 X( j4 D- d7 E/ ]
// Add common and specific configurations to the project* U7 ~8 `2 r; `3 E
AddCommonConfig(selProj, strProjectName);! w* Q5 [/ O) d* u4 B) C5 q" K
AddSpecificConfig(selProj, strProjectName);/ [, ]1 _7 D' ~' \& {
// selProj.Object.keyword = "MFCDLLProj";! R i! G! \2 T8 I
7 `* A2 {8 o* ?4 r8 S5 f //Set the project filters : b3 q, \8 u; O
SetupFilters(selProj);' [6 a$ J ^* V3 N, e) f/ o
) t5 M. s; W5 O7 G
// Add files to the project from the project's Templates.inf file
: R* d7 i( Y( M! \7 `$ z AddFilesToProjectWithInfFile(selProj, strProjectName);
H( }) R9 _. A# ?( A9 T8 x) h$ e8 z# b - R$ S4 e3 C, w! I0 h
selProj.Object.Save();
, z& r: Q$ x( {& B0 S }
8 e' i( u+ F0 A5 p L. S9 M: R catch(e)* l! [/ b# g* V8 G
{( b5 G" O+ O" K2 w1 V0 V( h- B
if (e.description.length != 0)8 R6 N: Y5 E6 {$ T. H
SetErrorInfo(e);( I0 q2 y7 Z( H* J5 q) q
return e.number
. K" h a4 G3 a6 `! i0 g( q/ D }
4 z! m5 l f! \& w. u8 G7 ]}
8 h9 U/ C8 \ V) @+ Y+ z' w0 u0 ~" X
function SetFileProperties(projfile, strName)
3 ?5 G" [% p2 N+ Z$ ^{
, ~, g6 E. _- Y" j return false;; V, T3 }( R9 c" ?
}
) V' d( V/ q/ E( J) P+ U7 i7 i! r0 O( T% E) I
function DoOpenFile(strTarget)* t$ @& j7 y( N+ [! N
{
2 v3 A" u1 k- V+ y0 ~ ^, r return false; ?5 Z, K+ X3 }) \+ f
}
0 V0 a3 K8 }& a/ p) ^
# A6 U% K6 p! |) ?function GetTargetName(strName, strProjectName, strResPath, strHelpPath)
1 K9 {' F( j/ b{
9 h0 \) c9 X$ P' W try) C7 M6 b. P- O$ k5 D3 c& N
{4 I" j# D; Z) b4 D
var strTarget = strName;
7 ^* o; ]0 h* W W/ |9 h; B k if (strName.substr(0, 4) == "root")
' {" t6 a8 K/ T+ } {
3 K/ B' q$ |2 I2 T( f1 c* L var strlen = strName.length;
& C( J B& |% [2 E0 _# j( Q- s3 X if (strName == "root.ico" || strName == "root.rc2")/ ]7 V9 I3 {$ l% C! q
{
b' N/ C" h+ s var strSafeProjectName = wizard.FindSymbol("SAFE_PROJECT_NAME");
" H$ s. A6 P) b' S. {+ l! `9 | strSafeTarget = strSafeProjectName + strName.substr(4, strlen - 4);
, \0 F: Y/ b) u strTarget = strResPath + "\\" + strSafeTarget;/ f+ o* S; W" `4 b4 y- g, }. P
}$ z0 a$ `. E' d2 B
else if (strName == "root.txt" )
& B" i. U6 ^/ h. g1 n% G! i {
3 r4 x. J: }0 R strTarget = strProjectName + ".cpp";8 }( ~# R5 f! T6 L5 D' A
}$ C- I) [. D* {
else" V& K7 Y5 ^: R) W2 S
{
/ u9 D( O; B& J8 b% ~& ] strTarget = strProjectName + strName.substr(4, strlen - 4);
# f: M) t+ B+ f' f% [# o9 \ }* M4 G: M% K9 Y$ E1 V7 b; ]6 s
return strTarget;
: F' Y# n, N3 O0 I) \ }& z+ a0 J1 {2 a
C, M4 }3 i. s8 b' B3 G% k1 K- f switch (strName)
' |9 N7 [% g$ L {
% Q# H8 A% x( @3 a$ M- x case "readme.txt":
0 I7 A" ?5 r! L" i strTarget = "ReadMe.txt";
1 W2 }( { r+ E break;
" c: z( _* _* [ n7 g; t3 B8 w case "all.rc":
. I! i4 j( ]" U# B- [ case "dlgall.rc":
6 b9 ` O' |, {3 _ strTarget = strProjectName + ".rc";
$ o/ ^% _& s# p& y& W% V a- y7 F% H4 j break;
4 {% l' ]- `- g0 R% L4 A case "dlgres.h":% a' x% L" z! ^& |
case "resource.h":2 x4 a/ Z0 U4 \8 k0 r ]9 O
strTarget = "Resource.h";
0 ?1 k# H! R" w break;8 ?9 A: M% [4 }& M: ?+ j/ z
default:
: ?3 v& b3 {; l& l break;7 L2 f- T. C; m1 z+ h; N. D
}
0 y4 d& q6 I0 {9 V4 a return strTarget; % f0 }/ P' I* f6 x- R0 X6 u" ]
}
" A8 s' b4 g( t6 n* u; ? catch(e)
$ c. g9 L, U8 d$ \% s {
3 H- N# R1 S" t* n% G9 g/ c throw e;
! q4 q! z+ J9 v9 ]+ h }/ c; X3 ?2 h6 \% C: g3 x
}: X8 z0 B* y" C4 O' w7 R" k
# w; j }* k* l& X( b8 sfunction AddSpecificConfig(proj, strProjectName)" S4 r/ Y0 ^( h
{3 Y- u5 ?) j/ `2 ~
try$ d. c- C G3 \# q" P( `% k
{
b; J8 X9 g" ^0 ]: R) M8 F2 z var isDllApp = wizard.FindSymbol("DLL_APPLICATION");5 P, s: Z5 v. [! R
var isCxx = true;
% u# s/ n0 l+ M! @( t0 d6 D& A" O; V- @( K2 Z. c i0 A
var appType;) ^- D/ h# q1 W
var appExtension;' _. [: l* ] q5 p- p9 T
2 I4 ]' W9 f& g+ v# k4 R1 Y* { proj.ConfigurationManager.AddPlatform("x64", "Win32", true);
. L9 y* y+ e0 p( w; _( s5 q, i6 U% Z9 I9 |! b; A8 a
if ( isDllApp )
1 ^# ?, X. H8 I9 |- V& _9 C/ Z {6 }4 W) T1 J7 r6 C
appType = typeDynamicLibrary;$ x( l/ R& W: H3 J: q
appExtension = ".dll";* \% W4 m5 l/ S" t# w& e
}: [; L+ U; E! |, Q
else
7 H7 @/ }8 b- Y" Z% t( @ {1 u* K1 W6 ]% U" y `5 K u$ Q( X+ x1 C
appType = typeApplication;: G% v9 g2 j) Z. p/ R
appExtension = ".exe";0 Z5 m5 r. P. S+ @1 h
}
" w7 A3 y6 e0 m U- b( |" L5 H, J) }% d
var linkLibs = "libufun.lib";4 I" a9 N5 ^! u! w) M
linkLibs += " libufun_cae.lib";
6 q E. \ k0 Y; J# U4 T' e) a# i! C linkLibs += " libufun_cam.lib";
" _, f! w# _+ F7 L! b0 s linkLibs += " libufun_die.lib";
1 L) S2 Y! B/ n! m: y9 q linkLibs += " libufun_vdac.lib";
% \" X) u/ L( r% e9 R+ c2 j) L linkLibs += " libufun_weld.lib";, e9 B( N' ` g! K/ P2 g
+ L' I8 k: z6 m# T& A5 q8 p) e if ( isCxx)) x7 z1 N0 W6 t% P3 P! i4 t
{3 Q% _1 L7 a0 {
var wshell = new ActiveXObject("WScript.Shell")
! _3 Y2 _ I9 g. d! e) Q var libpath ="D:\\dsplm\\Siemens\\NX12\\ugopen";5 r5 B) o& l' z* q1 L
var Fo =new ActiveXObject("Scripting.FileSystemObject");4 M! y. |& F( S# M$ k# v- M
var FSo = new Enumerator(Fo.GetFolder(libpath).Files);9 i7 t9 Z0 t3 F5 t% l; O+ n! s2 f
var nxopencppName = "libnxopencpp";
9 B3 N; i/ e3 F7 h, ~. e& k for(; !FSo.atEnd(); FSo.moveNext())* q, q `+ V# c- w* [
{4 V' f: `. ^3 y% l' R9 V
if(FSo.item().name.match("^"+nxopencppName)==nxopencppName) //check if file name start with libnxopencpp
]( D4 B& Y2 q$ q if(FSo.item().name.slice(FSo.item().name.lastIndexOf(".")+1).toLowerCase() == "lib") //check if file has '.lib' as an extension$ f* P) N7 D" u+ v; u
{+ L1 D. j. q% a' M* [9 r+ V
linkLibs = linkLibs + " " + FSo.item().name;
1 p, a' X* L5 a/ F& R) R }
1 x/ o& r$ j' M# U) m% @9 n }
4 R* z+ w# F* S H) S }
! J2 i" W% m7 \5 P5 m J% A2 y% i% u/ ]
if ( isDllApp )" k. V; m( s+ \
{
9 U0 ?$ [* T0 w$ Z3 p7 d4 `# E linkLibs += " libugopenint.lib";
) q T' k' C% _ linkLibs += " libugopenint_cae.lib";
6 {. \4 b- l9 x D- i; i linkLibs += " libugopenint_cam.lib";; _' u# }4 ?% v; V9 S
& W% r, a: }) r0 t if ( isCxx), X; ?& Y, a/ w( G6 o! W, g6 R
linkLibs += " libnxopenuicpp.lib";
! a; E! _, e/ j" Z8 c }
& l2 J$ U Z, K" t( A
9 m3 }; b7 W: s( A //=================================================================" N+ a# Y+ e% a5 _* e3 G
// Debug Configuration
$ j* N! I3 K, J0 T8 T //=================================================================
: B# D/ J+ s0 l, u7 y//LRJ - add x64: m4 \& W+ O6 j1 z. T+ B4 ?* n0 K
var config = proj.Object.Configurations("Debug|x64");
: S: a. S# r9 D2 C/ ~$ j* i config.ConfigurationType = appType;
7 d b m3 ^$ W config.CharacterSet = charSetUnicode;
& Y/ c- F; z H% y) y; U: W3 P config.useOfMfc = useMfcStdWin;
2 H5 z1 G( I$ B" [. w+ p7 J! j* T$ D6 J 3 c" p8 n3 b& ~+ w( d
var CLTool = config.Tools("VCCLCompilerTool");6 L4 C: q. x6 `8 W7 K+ g
var strDefines = GetPlatformDefine(config);
& O, L4 a: g/ G strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";1 r+ A' a6 E: W
if ( isDllApp )4 H/ s. a. L; j2 \: v8 k- \
{
% s8 E N( X& O) M! o strDefines += ";_USRDLL";/ u* S! U8 ~8 c( D$ q
}% \' j+ \5 M" p. d1 G" {- \
else) b! \2 @+ G. C$ R, @; `7 E
{
8 O* ~. L3 S6 \4 k+ C strDefines += ";_CONSOLE"; R: D! f8 d! Y2 j7 v/ N
}- Q' L+ t E" K
9 \& b: G( N- _: R, | CLTool.PreprocessorDefinitions = strDefines;
0 K7 P2 s3 `( D$ l6 [0 x8 |, t) c/ e1 y' G% }; _3 L
config.UseOfMFC = useMfcDynamic;# p! z+ H7 _ b( v+ a
CLTool.RuntimeLibrary = rtMultiThreadedDLL;
6 N U0 m: ?5 I- P' l/ i* G4 \' P# S' p5 q0 R# }
CLTool.TreatWChar_tAsBuiltInType = true;: I0 Y C u; C
CLTool.DebugInformationFormat = debugEnabled;
0 c' \* d3 ]9 N) e3 A) `( d0 v CLTool.AdditionalIncludeDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";" r* |- ?4 ~$ W
" v9 p, [0 E5 C) P
CLTool.RuntimeTypeInfo = 1;, z" `; z3 M, W0 e4 `; a! ?
CLTool.UsePrecompiledHeader = pchNone;
q3 w3 j9 J( b' j: s* G6 f CLTool.AdditionalOptions = "/d1scalableinclude-";9 \8 P5 O( {6 i: S$ I' ]* I' m
9 r) ^& L) {6 T* X//LRJ - change for X64 - add TargetMachine* Y3 ?. J5 a, l6 N% k
var LinkTool = config.Tools("VCLinkerTool");
2 d: ]) `3 Z* F* B- B LinkTool.TargetMachine = machineAMD64;9 h8 U; C7 X x9 d3 ^
LinkTool.LinkIncremental = linkIncrementalYes;) v: m6 L% t1 [" r+ Y" e+ N5 S. W5 ~
LinkTool.GenerateDebugInformation = true;
/ O& L' r* g1 B LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;7 c) x7 `6 ]2 b9 g$ u8 s
if ( isDllApp )
3 g2 D' g4 n, q5 y2 Z9 ? LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";
1 o. V4 e! L1 K' X LinkTool.AdditionalLibraryDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
2 y1 l8 v' d4 M d: W LinkTool.AdditionalDependencies = linkLibs;2 h" }5 G) ?/ K6 a' @$ c5 v
LinkTool.SubSystem = subSystemConsole;
$ p& S- I3 W) K7 D) Y! P2 n. u/ {//LRJ - add following line for X64 definition9 e: q( L# e* U, q' N! o
dte.ExecuteCommand("Build.SolutionPlatforms", "x64");
* Q" x! M& G$ P$ O2 i. I; E
# W) @+ E5 B# ?; r# l" Q //=================================================================
9 I4 |6 | j2 a/ z0 p& ^4 q // Release Configuration |9 [2 P; X. G( Y1 }3 {
//=================================================================9 j( r5 R" u# r- O9 v2 w
//LRJ - add X64 definition to configuration line" y U, f6 c6 n3 t- ?8 @4 z
config = proj.Object.Configurations("Release|x64");
6 `( B8 O; c* D f+ ]0 n config.ConfigurationType = appType;
: b. \: g& e" k ~. A config.CharacterSet = charSetUnicode;
6 X+ `; d8 i. L _" e' ` config.useOfMfc = useMfcStdWin;7 n5 N' R- p, H0 U- R; @/ U: W& O
" y( M \' d; E4 o
CLTool = config.Tools("VCCLCompilerTool");8 Y- Y7 a" ?2 Y7 }+ S
strDefines = GetPlatformDefine(config);
, C& G9 G) Y# i) A# ^/ G strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";
- K* ]. [: O9 S& h/ Z2 m if ( isDllApp )
; ^6 f* y: I) [6 {$ s6 o0 _ {( y/ z& J2 I0 P7 f s6 v7 m' r+ S$ N
strDefines += ";_USRDLL";3 T- C/ c; E' k6 l% }
}$ Z/ }! D& K6 j# Y/ Q: B; g- M
else
" O9 G0 V+ E1 K; z/ T9 t+ ?# K& ~ {
8 t" _ Q7 M% h, u1 j& t strDefines += ";_CONSOLE";
+ V* w) z2 j% |; h9 I/ V; B' | }
( R) u$ R+ J7 R" t3 z* ~) [- k8 r- w6 L; p$ p: N6 l0 n6 U4 x3 |7 g q& J" g
CLTool.PreprocessorDefinitions = strDefines;
% T. p/ ~ a4 {
1 L2 U, i K, _) Z: Z% w config.UseOfMFC = useMfcDynamic;
0 |3 N# k/ a# F( K6 E2 _6 z CLTool.RuntimeLibrary = rtMultiThreadedDLL;' w" q' P6 r( {0 K
; ]7 _; T5 U3 f; d8 f# O
CLTool.InlineFunctionExpansion = expandOnlyInline;' j: k1 F- W$ j4 k" t9 `0 w
CLTool.TreatWChar_tAsBuiltInType = true;
! Z6 X2 m% v7 O CLTool.DebugInformationFormat = debugEnabled;
J k1 A3 C+ H
; |7 b; d$ \2 d- C" }0 l# d CLTool.AdditionalIncludeDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";/ I$ A6 [" w9 Q. d) k. @
7 P1 I' h* z) b1 G7 z+ F CLTool.RuntimeTypeInfo = 1;
& U9 a. u" F3 X. @. ~5 G2 i9 R% T CLTool.UsePrecompiledHeader = pchNone;; q6 D. ?$ A# X# t9 o! ~
//CLTool.AdditionalOptions = "/d1scalableinclude-";
( @6 j& m7 Z ~+ B$ Q
& A7 C7 E% ~2 M7 T$ X1 M LinkTool = config.Tools("VCLinkerTool");
7 x1 z7 q( J2 t' O* q/ a//LRJ - add following line for X64 definition4 `5 {2 n4 b+ K! Q$ X
LinkTool.TargetMachine = machineAMD64;
* V% y. y% T ^$ S LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;
$ I( p# L. |8 e! j& ~% m9 S& Q8 d if ( isDllApp )- o2 J1 c& P8 `1 ]$ m1 H
LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";
* F8 |( V1 B7 K7 o( q LinkTool.GenerateDebugInformation = true;. W& |4 b1 q/ u, G
LinkTool.LinkIncremental = linkIncrementalNo;
, B! ?8 h, { \; M8 s) `) O/ l LinkTool.AdditionalLibraryDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";5 m) r, H# t4 }" ]9 d
LinkTool.AdditionalDependencies = linkLibs;" Z C, N; m9 q& B
LinkTool.SubSystem = subSystemConsole;' C$ G! |# E+ B/ S
//LRJ - add following line for X64 definition/ e" u7 K ?* B; W9 ]2 H) X
dte.ExecuteCommand("Build.SolutionPlatforms", "x64");* Z. O( F3 b5 v [, F/ p& e
}" n: u! x8 Y8 F g
catch(e)# i/ O+ D* [$ x2 y
{
0 w+ c. {$ J7 j7 H9 \5 S throw e;
8 V8 a, j5 v! q6 S8 | }
! N% l6 Y; {; W5 v}9 L. M, R9 w1 Y' x' o
8 Y4 V3 T5 a) u2 v
! ^6 J, L4 @8 R
( E- K( W7 I* K# x4 l. ] |
|