|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
NX12.0 二次开发使用VS2012 报错解决方案' E( ~0 r6 I1 R5 ~( H" T
严格的讲NX12.0需要使用VS2015进行开发,这里说下如果你是低版本的解决方案,但是不推荐!4 J& }/ i6 V7 ~$ A3 p7 V
(1)安装完后,点击Open Wizard 告诉你创建项目错误
: [* f( j! a+ [% t% M
2 P, L+ n; Z% ?; |+ T+ T- M
这种问题就是编译器版本不符合官方的匹配导致的,更改方法很简单 , b1 ~! j5 B' Z& E
打开 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcprojects下的NX12_NXOpenCPP.vsz 将
3 m& _9 z9 p" B4 RWizard=VsWizard.VsWizardEngine.14.0 中的14 改成11 也就是对应的VS20121 z7 ^, H. o& X( ~3 P9 Y
. E" f: ]0 r' _
这样创建的对话框就可以出来了!0 Q4 B% Z2 X$ e& X
(2)你可能还会遇到路径错误,path not found, 建议对这个文件进行修改,尤其是你有多个版本存在的话,一劳永逸# t7 K7 k' q" z9 D0 B7 }4 X6 p q
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCWizards\NX11_NXOpenCPP\scripts\1033 下的default.js 文件
2 b) g" q) ^) u# Y, R; x! q5 W修改里面的环境变量路径,注意路径是双反斜线 \\,参考如下!
6 ?& d3 h) v: b( g. ]6 q! O& X% C6 L6 E( {7 c) n* w4 k4 x( w
//@<DEL>@ TEXT ENCLOSED within delete markers will be REMOVED2 z U, S0 y" G
// 09-Jun-2012 Frank Berger Initial Release for VS2010 based on "NX8 Open Wizard": J A; D9 t% Z; w9 ~# Y: L; o
// 31-Okt-2013 Frank Berger modified for VS2012
$ F6 m& i! M A; o// 13-Feb-2015 Sudhir Pawar ARCH:11320: Added libufun_die.lib,libufun_vdac.lib & libufun_weld.lib
$ `! L( i" x* D, @/ \7 ^" }// 21-Dec-2015 Purushottam Thakre Fixed PR#7567548: Call DeletePlatform function to delete 'Win32' platform.
5 L( G0 U8 i# J0 W// 08-Jan-2016 Prabhakar Mandlik Fixed PR#7588129: Added /d1scalableinclude- swiTCh.
0 k0 Q$ H N8 z& P// 10-Feb-2016 Purushottam Thakre Fixed PR#7630769: Reverted changes done to fix PR#7567548 which is causing regression
$ D: K' `) Q- l1 ]//TEXT ENCLOSED within delete markers will be REMOVED @<DEL>@/ l) I0 r3 h- y5 A8 v8 C1 w; N
9 D4 j6 D! [" S& ?& Z
function OnFinish(selProj, selObj)
8 ? h, ^& G5 ?+ t* e3 V- z{; }" S! V' B2 D$ K9 }1 v" G: o4 J
try, i2 U- y: {6 I$ g. V& c8 Z
{( A- M+ L' E9 E' K3 E# D4 v
var bodyTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "body_template.txt";8 P- k/ t% g% j/ [8 [& @" v4 [
var bodyTemplateText = wizard.RenderTemplateToString(bodyTemplateFile);0 N7 `9 u# Y: R: R; j
wizard.AddSymbol("BODY_TEMPLATE", bodyTemplateText);
, y4 o( i+ A3 v$ @- n4 l, \2 V; B8 u# L: n
var entryPointsTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "entry_points_template.txt";
! t# j) m# q; X. h% g0 O& S var entryPointsTemplateText = wizard.RenderTemplateToString(entryPointsTemplateFile);% ~. J0 j# f1 v# e
wizard.AddSymbol("ENTRY_POINTS_TEMPLATE", entryPointsTemplateText);
- }4 S+ e; j( C& |2 ?, I% k
' X" d9 w. B# X var unloadOption = "UNLOAD_IMMEDIATELY";
u S- ^ n7 ~# o& s. s0 Q: U if ( wizard.FindSymbol( "UF_UNLOAD_UG_TERMINATE" ) )5 f8 o7 M0 o$ v/ R# X7 a
{" v0 @+ V4 C% _
unloadOption = "UF_UNLOAD_UG_TERMINATE";8 E- j+ h1 A1 N* `$ Y* I
}+ ~$ q( O: e# e, T% q9 k
else if ( wizard.FindSymbol( "UNLOAD_SEL_DIALOG" ) )& B- x3 a' w2 ?/ ~
{' i3 Q/ @2 w; z. a/ x8 [' D
unloadOption = "UF_UNLOAD_SEL_DIALOG";
0 T) j. a' J1 p& X4 C( l9 q Q }
6 G# [9 O- v; h wizard.AddSymbol("UF_UNLOAD_OPTION", unloadOption);
9 W2 j# x! z, ~& z* H; d- ^7 O* G P4 ^) H. i& q% u
% V! C$ a- C/ X5 u$ ]+ N // Assign the project path and project name
6 B# [* W# X7 T7 { x V# ~ } var strProjectPath = wizard.FindSymbol("PROJECT_PATH");$ k$ C# K7 S, ^2 ] n8 E1 N
var strProjectName = wizard.FindSymbol("PROJECT_NAME");0 E5 M5 Y4 N3 j' p/ F, b9 _9 x. w
var strClassName = wizard.FindSymbol("MAIN_CLASS_NAME"); k# |4 U0 G/ q6 d( V0 d
if ( strClassName.length < 1 ) 2 e2 P/ v5 w, M( u# {! ?7 Y1 ^4 Y, j
{0 X1 X# K! B; \ s8 R7 J2 i
wizard.AddSymbol("MAIN_CLASS_NAME", "NONAME");
4 i4 `/ W! W _( o8 w- ~ }# C/ y* w: Z w3 h
$ Q% g; V2 n" Q // Create the Visual C++ project and call it "NXOpenProj"+ j- l) ~ _0 c2 k
selProj = CreateProject(strProjectName, strProjectPath);
) T' T/ X" B' Z7 W: n// selProj.Object.Keyword = "NXOpenProj"9 S, `. R( @' `8 S/ y$ C
5 C) T! A6 U# I
// Add common and specific configurations to the project
- @% q d |! P6 u7 h0 Y AddCommonConfig(selProj, strProjectName);! h7 J) x' B3 W" G. t( e+ W
AddSpecificConfig(selProj, strProjectName);( d) Y" r+ S. I, d# T9 w
// selProj.Object.keyword = "MFCDLLProj";
3 ?, Z4 |( h: @7 `$ d1 L# L2 f5 C V. o. s4 p
//Set the project filters
4 N) h- m- s7 j' F: D SetupFilters(selProj);; |: c) \3 p! g
, ~4 Z) q7 S" W; O
// Add files to the project from the project's Templates.inf file
$ s" f! x8 F* v. V AddFilesToProjectWithInfFile(selProj, strProjectName);
9 f2 A7 ^! U1 d( H1 w/ D m
, D! T5 h o5 e8 N. X5 y selProj.Object.Save();8 L" ]- C. t/ s) v
}+ ~9 ^& o' A3 j0 y- L3 h- k
catch(e)/ _" s8 {0 V' {
{
+ Z. N& l( r6 j if (e.description.length != 0)
: y1 D9 f; \ W3 J0 e- g9 B SetErrorInfo(e);9 U( a1 d v9 ]5 J
return e.number' c% L3 d( U y' U* ~' p
}5 S2 a& s$ y- g+ R& J7 U" f
}+ h z# d& V+ S4 q1 l
2 g/ y5 I# A1 ]
function SetFileProperties(projfile, strName)
9 l2 M0 b; l) A) f{3 p' A" Y* l9 M2 E
return false;0 h4 v- F3 v% X" g L5 P% [: G
}* G$ y& K4 R+ a$ l3 Z
' \$ d1 _ G! k% |6 e* hfunction DoOpenFile(strTarget)
1 h2 h a9 z- p/ F{- V1 \; q: C: J9 }; E: q
return false;& i) d* t5 p, N9 X* r: n
}3 } U7 A$ D% c; Y* x
& v7 U: Q4 c% g/ j Z
function GetTargetName(strName, strProjectName, strResPath, strHelpPath)
# z$ v# g4 Q* g/ x{
7 {5 z7 y+ L; T' L try) _7 _ p# ]! I2 M; \
{
( F J3 ?' S/ @5 v- c var strTarget = strName;. y+ s! E' w( V) N/ }' W
if (strName.substr(0, 4) == "root")
3 }/ G% [8 t5 }* d q1 J0 E {
, J1 c) A' N6 k% K7 t, F var strlen = strName.length;% [' Q# M/ m# L) B
if (strName == "root.ico" || strName == "root.rc2")
, e( P: Q, ?$ G1 N9 q$ A5 Y; t( P m {
1 f6 K/ N3 G( m- P* L var strSafeProjectName = wizard.FindSymbol("SAFE_PROJECT_NAME");
& z2 z8 s$ c$ B& H strSafeTarget = strSafeProjectName + strName.substr(4, strlen - 4);
2 O1 ~- h% a1 u# A/ k strTarget = strResPath + "\\" + strSafeTarget;
( T3 D9 h% K' S6 @! W4 t }
( M2 c& C) O8 Y& g else if (strName == "root.txt" )5 U! h2 s# l& h% d1 y
{6 a7 E5 n- f p% C6 x: G3 U
strTarget = strProjectName + ".cpp";
# |2 p( |* U" N u! [7 t }) z+ ^/ O( j `3 x( d8 y$ T' M
else
; o, j0 Q7 p( }; X5 L9 E {5 \: M3 X9 O z/ g
strTarget = strProjectName + strName.substr(4, strlen - 4);) Z& W l! Q! U' H: T
}0 e( k s5 ?6 }3 ]' q Q2 I4 f
return strTarget;- I* f L( o H3 U/ h
} s3 S8 w6 w5 F8 N1 \
3 s/ x( y; N% Q% y! } switch (strName)
% F' }0 p5 _0 q {
0 @$ s+ T7 U T1 { case "readme.txt":2 H6 G) l! l4 l e) p" L
strTarget = "ReadMe.txt";9 W9 }# C7 O! L: A0 L# J
break;
- [$ O; V2 G6 ?) }) m. D case "all.rc":
5 A) m' g5 k5 Q9 W& }8 ~: l case "dlgall.rc":/ L+ J' _5 A# Q2 J0 D' M# Q
strTarget = strProjectName + ".rc";3 C7 O" i* F3 P8 }
break;
6 N- t0 e1 [! Y" a n4 c7 w6 _ case "dlgres.h":
7 Q, S6 ?+ v. {7 V5 W0 \ case "resource.h":
1 Q" I& W9 B# E4 K strTarget = "Resource.h";
0 j* {) q* N c1 E0 x( }% Q break;
) g' r9 Z3 {* o/ E& A default:
: X$ [) _1 } D2 F, e break;( u, K$ m% S R
}
/ n* @( A3 S; s5 G' o7 H return strTarget;
( q @3 D2 [2 R }
' x! D0 M$ E! {- t* i catch(e)5 H+ z E) R, ~
{
! \9 C1 Y" M1 i9 \4 c O5 x throw e;) V; s2 C: ?4 M( Z$ f3 `+ c
}
4 E5 Z* w: G& U9 o/ X4 j) i}
u& A3 P9 g% b, R
5 r9 f8 q$ L8 S% a* z3 D3 Yfunction AddSpecificConfig(proj, strProjectName)% }8 `0 U6 ^) \* o }* \8 q
{- b9 w( E+ w/ ]1 p T3 |* \
try
/ {1 g/ W3 ?6 ^( R {7 f# B$ t$ _8 m4 \1 f# Z
var isDllApp = wizard.FindSymbol("DLL_APPLICATION");
1 ]2 a7 Q7 j9 ?; O var isCxx = true;' q, B' Q2 o- b; _. o2 ^% Z% I0 \
S5 o) J; D0 ]2 { f var appType;
8 ~; @1 M8 o( P5 c8 E- ? var appExtension;8 A' M: N" K& g9 U+ L
. X1 C6 j! M1 j* t
proj.ConfigurationManager.AddPlatform("x64", "Win32", true);
2 ~* H% d6 s6 R+ C' G2 h
P3 I v- \$ w6 A if ( isDllApp )
/ n" {7 A; x3 J6 H {
0 }3 m& H) ?' P0 u9 }; C# F2 k6 n; d appType = typeDynamicLibrary;" B- o4 t2 ~, r Z1 m9 B! k# W2 i
appExtension = ".dll";1 E9 V+ X3 h9 f3 U w; L* U4 \
}
# @% y- A6 `* B, r else
7 M f) X+ G x, s* ~0 L {
5 w. u1 i0 |2 h% x+ o, c appType = typeApplication; R" B7 U, ^5 y$ Z
appExtension = ".exe";$ d9 J; J) ^. f8 y. R/ E2 g
}6 W1 k1 \6 O, P9 J
2 D; W. H# B1 n' |8 H1 O* I
var linkLibs = "libufun.lib";# B6 o* |1 @0 m/ m( n7 }
linkLibs += " libufun_cae.lib";9 \4 G0 U0 g$ J) h. K
linkLibs += " libufun_cam.lib";
! u4 x$ V6 \3 ^3 P linkLibs += " libufun_die.lib";5 D& U& O! S f$ M U( Y
linkLibs += " libufun_vdac.lib";
- t" m; @7 h% R linkLibs += " libufun_weld.lib";
- l7 C& o4 }) _" G' Z
. a9 b& P. s! A if ( isCxx)
; i. k9 @/ f/ n {
# [& f" g7 q! ?! U4 _( j# I: F ~ var wshell = new ActiveXObject("WScript.Shell")# I" v! e( _7 Q2 g# z( Q
var libpath ="D:\\dsplm\\Siemens\\NX12\\ugopen";
( L! Y) Y4 h1 k7 | var Fo =new ActiveXObject("Scripting.FileSystemObject");
0 q d8 W( ~, W' R2 `4 c var FSo = new Enumerator(Fo.GetFolder(libpath).Files);1 D. { \+ q" D% V1 |3 G
var nxopencppName = "libnxopencpp";
' ~* n& p- H6 b5 v6 g: |4 f4 z+ o for(; !FSo.atEnd(); FSo.moveNext())6 X4 Z5 R( o% A! R. u
{( g& M+ [" ~9 {7 D7 O
if(FSo.item().name.match("^"+nxopencppName)==nxopencppName) //check if file name start with libnxopencpp
4 v. r }$ l- ?6 T if(FSo.item().name.slice(FSo.item().name.lastIndexOf(".")+1).toLowerCase() == "lib") //check if file has '.lib' as an extension5 Y! |% @2 a) S
{( G8 U& K: n @* i. e& P
linkLibs = linkLibs + " " + FSo.item().name;2 y3 K4 I0 k+ w" P1 T. p
}5 X# y5 e- W0 ?0 V- Y4 D4 h( h
}
2 [2 z8 w3 L! u& M' H }' ^# J9 l3 N9 O1 w) ?6 l
. p( P; W H2 g, |
if ( isDllApp ). j' i" d$ B6 Y9 K) z
{4 U {) n1 l( D: [9 z5 K/ F
linkLibs += " libugopenint.lib";
: n0 Q. ?+ k R% u$ y1 z2 z linkLibs += " libugopenint_cae.lib";
# g3 ?8 B4 X h, F9 o/ h linkLibs += " libugopenint_cam.lib";
+ W9 k2 q8 ?0 B! O/ g5 M5 Z, E* S6 A$ _3 u
if ( isCxx) @) e* F" _* }3 {% X! M1 O: _
linkLibs += " libnxopenuicpp.lib";
5 L# B1 \1 [( f8 h" G- |* a" ^/ O. ~ }5 D% I0 Y( T2 r5 [/ X3 `4 p
& S. I+ A$ p: e- Y7 h' C$ `
//================================================================= P; O; u5 k( o9 K- B8 Z
// Debug Configuration7 T0 K: [+ }# Z$ ]
//=================================================================1 x4 ]7 m2 }! f3 R
//LRJ - add x64
% {0 p4 p7 I8 h8 }- e7 C; t3 o var config = proj.Object.Configurations("Debug|x64");
! a; l8 t4 z: J5 \1 k! j1 G J S# j! n config.ConfigurationType = appType;/ ~, i* V+ B+ H: ^
config.CharacterSet = charSetUnicode;4 s! U s4 c" K7 n$ j7 H: H
config.useOfMfc = useMfcStdWin;
+ N; r) T F; y0 d$ y# Q# Z 0 a4 E' | @; R( g+ F, ]
var CLTool = config.Tools("VCCLCompilerTool");
! v d3 k" _+ q* R% ?6 p+ W var strDefines = GetPlatformDefine(config);( J5 K& i7 ?( b9 G
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";/ H7 Q* n1 E9 \
if ( isDllApp )& C& k. F% ~2 X
{0 q# T0 c1 B) N
strDefines += ";_USRDLL";% P5 h- W( X1 D
}/ r& c: D' i1 ]% r( D
else
% z. g8 Q7 h' Z7 d4 C2 @( T0 n {
1 f* \6 \7 b: S* }1 N2 C; G strDefines += ";_CONSOLE";* s- Q4 q. f$ Q# }# @/ F I3 P. Z
}
1 L4 j, \/ e5 B, @
% W; P8 h; v* Y- l2 f% D! x- i CLTool.PreprocessorDefinitions = strDefines;
. M$ U. W/ F0 }0 O9 k, E9 _3 O8 _0 h2 m2 H3 e* \7 ^" m$ v
config.UseOfMFC = useMfcDynamic;
C. j1 k3 Z9 J2 C CLTool.RuntimeLibrary = rtMultiThreadedDLL;
$ k- r+ ~8 @) k, Q! O6 e$ d) f/ E7 b% O) H
CLTool.TreatWChar_tAsBuiltInType = true;+ M! \6 B. d, I) Y: Y
CLTool.DebugInformationFormat = debugEnabled;
) \; Q+ ~0 q: @8 |# F CLTool.AdditionalIncludeDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";5 R, C7 _8 m3 I3 q; G5 r' T8 r- R5 h
8 Y( H5 k' y" e% E CLTool.RuntimeTypeInfo = 1;
2 U! w5 W( I" u$ t" H B+ ?/ |0 p/ w CLTool.UsePrecompiledHeader = pchNone;/ V% S( p4 H) r' x* ?& I
CLTool.AdditionalOptions = "/d1scalableinclude-";
2 F: B0 o) l f9 \1 H. Y" K! H+ u3 F$ b: Q* [# X3 i
//LRJ - change for X64 - add TargetMachine6 k9 G1 R( `& I P
var LinkTool = config.Tools("VCLinkerTool");
* z: F1 \2 x0 X( _0 d LinkTool.TargetMachine = machineAMD64;6 R& M- w: F( C: p& i
LinkTool.LinkIncremental = linkIncrementalYes;# P" d! I% `$ X' }
LinkTool.GenerateDebugInformation = true;9 M" Q9 w% J7 b8 Z
LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;
' p2 _; Z+ f' V& `- |% Y4 p if ( isDllApp ) C8 J6 T# ]1 f( Z
LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";
, Y0 B2 C- Y ~* {7 S LinkTool.AdditionalLibraryDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
7 ^' Z& {' O5 G' ~% { LinkTool.AdditionalDependencies = linkLibs;
" V5 c/ }5 q" a3 }- P* E' z LinkTool.SubSystem = subSystemConsole;
) E4 X+ @. q* D7 V- a" D% X//LRJ - add following line for X64 definition- c! ~: q3 v9 r G: X% ~7 c
dte.ExecuteCommand("Build.SolutionPlatforms", "x64");* t, `* e; ?0 ?
5 \, u1 ~, `5 e% ] //=================================================================
/ d! t# ]$ V/ P9 u4 S // Release Configuration" J. W# E ?8 H' L
//=================================================================
# z4 s8 G, ]( O8 e3 i& C//LRJ - add X64 definition to configuration line1 j' j$ f" H4 K, Z* Z
config = proj.Object.Configurations("Release|x64");
9 a, R$ c4 W- H5 U3 V# n config.ConfigurationType = appType; B9 C0 k j9 S$ @" T
config.CharacterSet = charSetUnicode;6 Z# w p F1 B7 t# V8 V. \# d
config.useOfMfc = useMfcStdWin;, z A% q* q: b2 `9 Z+ X
8 P8 t. D$ {/ u CLTool = config.Tools("VCCLCompilerTool");2 c$ ` z% | y! W. l
strDefines = GetPlatformDefine(config);$ d# [# `1 D4 ?: l5 J4 C$ J
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";9 c! C8 g, o4 ?+ {8 c- Y% K0 I
if ( isDllApp )
1 p2 X. g+ p/ m4 A+ `1 { {
- ?- D$ C- \! b. m' [8 W9 B strDefines += ";_USRDLL";' k0 \/ q& _( Q( M, [
}$ q3 V# h9 e0 Z% B$ N
else8 b& R9 W$ g+ ^6 }3 V6 ^: h
{; U% b" f, H. l/ Y" q' Z
strDefines += ";_CONSOLE";
3 Y. ^, M& t. ] y7 A) G* S }
0 ]2 i% e$ Z# l1 W* a9 y/ Y& Z
# K( ^# V8 i ^+ O4 s' X CLTool.PreprocessorDefinitions = strDefines;+ c* p# _0 V" o9 @6 Z
) [5 A v( r( N" h: f
config.UseOfMFC = useMfcDynamic;
, X c9 ?( I. o A! A, r: i0 O CLTool.RuntimeLibrary = rtMultiThreadedDLL;
3 O8 i$ a! f, X/ m' R9 b, }9 H$ {8 j8 W* I q: W& r
CLTool.InlineFunctionExpansion = expandOnlyInline;! i+ e9 v; p4 d) X& p* N
CLTool.TreatWChar_tAsBuiltInType = true;
9 f. `' U4 y6 \" p$ `/ E9 [" f CLTool.DebugInformationFormat = debugEnabled;2 ~- m7 L! W7 |' p7 y2 V) B
0 `- |3 Z+ Z$ \6 Z9 j/ C CLTool.AdditionalIncludeDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";/ d' J$ `3 t* K. L
0 V& _5 j" w* b: Q CLTool.RuntimeTypeInfo = 1;
2 X' @; M! X3 }) j6 U0 g+ A, q CLTool.UsePrecompiledHeader = pchNone;
/ s! K8 u8 h+ U6 ? //CLTool.AdditionalOptions = "/d1scalableinclude-";
2 ?& k" K" \# [9 g# l4 w
& U1 o$ e" [8 b, C `7 u2 d. d% ? LinkTool = config.Tools("VCLinkerTool");
- O- p/ g* r3 Z1 n% f//LRJ - add following line for X64 definition9 m+ v! `6 U) S3 v2 u7 y8 W" e$ j( L
LinkTool.TargetMachine = machineAMD64;4 V; {, i/ u5 Q" j" O5 n
LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;
2 p5 }' t/ J0 R3 x if ( isDllApp ), o; L, c: ?- @
LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";' `* V" z" L; E8 f2 U( \4 E
LinkTool.GenerateDebugInformation = true;6 R2 i* F; y1 i. a
LinkTool.LinkIncremental = linkIncrementalNo;
, X0 i$ E4 F5 b# f: R5 b LinkTool.AdditionalLibraryDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";8 {, Z& a" d. }4 P$ r& I5 p1 i
LinkTool.AdditionalDependencies = linkLibs;( \8 c. R& q, F4 N o
LinkTool.SubSystem = subSystemConsole;5 B) P) b% g8 z! q# H0 \
//LRJ - add following line for X64 definition
2 c6 V: E ?5 X+ N- l7 D dte.ExecuteCommand("Build.SolutionPlatforms", "x64");# c( s2 l+ r1 s+ c
}7 z! j$ D; F; y& D* G: Z
catch(e)9 [3 K" q7 l$ m0 S" [. G% G/ d$ `
{: A- j: T# W: ]0 w' V0 r G$ D
throw e;% P4 i! ]" _! ]1 h7 a3 O
}: T' |+ C5 _8 D: [+ k2 s; |
}
7 i$ c% d1 Z, v( e; h, z, S9 E+ @" A( @: l
6 g, G( ~' ^/ z
6 C9 X" I5 d' ^# Y3 V4 ^ |
|