|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
NX12.0 二次开发使用VS2012 报错解决方案; _" |8 c0 R- G6 p3 b
严格的讲NX12.0需要使用VS2015进行开发,这里说下如果你是低版本的解决方案,但是不推荐!
9 |% g# N7 z* m+ i) B(1)安装完后,点击Open Wizard 告诉你创建项目错误3 y) r9 V0 s$ A" P' h
' r5 M; l% c7 C, |$ w
这种问题就是编译器版本不符合官方的匹配导致的,更改方法很简单
7 R: ?# X, P( b0 H8 X! E打开 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcprojects下的NX12_NXOpenCPP.vsz 将, B, N' m$ j N) B
Wizard=VsWizard.VsWizardEngine.14.0 中的14 改成11 也就是对应的VS2012
7 T- S' h$ d7 {+ X
* D' r; c* q- W. V4 d, Y. C这样创建的对话框就可以出来了!4 e) C. G/ V' Z! t
(2)你可能还会遇到路径错误,path not found, 建议对这个文件进行修改,尤其是你有多个版本存在的话,一劳永逸! N" H. x1 M0 F \% f
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCWizards\NX11_NXOpenCPP\scripts\1033 下的default.js 文件' A' v0 O D. y6 g/ f
修改里面的环境变量路径,注意路径是双反斜线 \\,参考如下!
( }, S! c, A% n! @7 }! X9 Y, E5 g- S
) F2 H+ R$ Y9 R4 T1 c! F//@<DEL>@ TEXT ENCLOSED within delete markers will be REMOVED
% Z5 a7 H1 J: r5 s1 o4 X" [// 09-Jun-2012 Frank Berger Initial Release for VS2010 based on "NX8 Open Wizard"
2 r; A# S' v% {% D$ t* e5 u0 T( @// 31-Okt-2013 Frank Berger modified for VS2012
7 C+ q$ R8 l7 c( ]% _. A) x8 m// 13-Feb-2015 Sudhir Pawar ARCH:11320: Added libufun_die.lib,libufun_vdac.lib & libufun_weld.lib8 a. A1 J) E, x: Q# T
// 21-Dec-2015 Purushottam Thakre Fixed PR#7567548: Call DeletePlatform function to delete 'Win32' platform.( {5 l, _/ K! a2 v1 P/ @
// 08-Jan-2016 Prabhakar Mandlik Fixed PR#7588129: Added /d1scalableinclude- swiTCh.
2 h/ A; k8 z2 h( W* j$ [* S// 10-Feb-2016 Purushottam Thakre Fixed PR#7630769: Reverted changes done to fix PR#7567548 which is causing regression3 }. V2 E8 v! L+ H# q
//TEXT ENCLOSED within delete markers will be REMOVED @<DEL>@' L4 b& o3 j7 i% ]/ g; |
; p' f/ y' o( A% |
function OnFinish(selProj, selObj)
8 p) ?" R) m$ `" S{- {8 l; U5 E5 X6 g% s
try* V' H1 _0 W3 H1 ]9 U$ m
{& @: L) [3 z8 n% [% N# x: m- {& q
var bodyTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "body_template.txt";
2 }1 }" w8 d# h: r+ l var bodyTemplateText = wizard.RenderTemplateToString(bodyTemplateFile);+ K3 D g5 Z- _9 X5 l' l
wizard.AddSymbol("BODY_TEMPLATE", bodyTemplateText);8 Q5 b% ~: R3 ?* m# A1 K
! [5 V2 o5 B% u var entryPointsTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "entry_points_template.txt";. @+ H. {) O2 S) P3 D! i3 E3 P
var entryPointsTemplateText = wizard.RenderTemplateToString(entryPointsTemplateFile);' S7 h. p$ F% Y+ y: e, j' |
wizard.AddSymbol("ENTRY_POINTS_TEMPLATE", entryPointsTemplateText);/ A7 B2 W7 w( |; s
! Z6 V0 W0 B) G( X- b9 G
var unloadOption = "UNLOAD_IMMEDIATELY";& j! A$ x" ?$ Z! D5 \
if ( wizard.FindSymbol( "UF_UNLOAD_UG_TERMINATE" ) )
. J7 @* u I: ~& X4 A {
' V7 D3 D+ X% l" K& a9 y7 U4 ~6 {7 |% P unloadOption = "UF_UNLOAD_UG_TERMINATE";
" l: v* R/ m; j' z3 e+ h+ t+ m& ^ }
b$ _8 A( E A; q$ r9 G else if ( wizard.FindSymbol( "UNLOAD_SEL_DIALOG" ) )2 @9 J9 H( {3 w% y# l5 B/ c6 b5 M
{
4 M* S; t: S7 k$ X2 K6 [ unloadOption = "UF_UNLOAD_SEL_DIALOG";8 g i+ t h) r0 t9 v: t. I
}8 B+ ^ I u1 N) |3 y8 U
wizard.AddSymbol("UF_UNLOAD_OPTION", unloadOption);0 K9 L* B$ }) i
% M+ T$ \1 [0 Y+ E a' W8 x% Y
2 N7 O* p' |7 U! f; N // Assign the project path and project name( n3 o* V9 M# h; h! o: L0 _
var strProjectPath = wizard.FindSymbol("PROJECT_PATH");7 B( `# S: K/ F7 E8 g- b3 w
var strProjectName = wizard.FindSymbol("PROJECT_NAME");2 P x0 r% U' [
var strClassName = wizard.FindSymbol("MAIN_CLASS_NAME");
$ z" g4 ` G; |% i* T/ L% C3 s if ( strClassName.length < 1 ) 0 s/ {$ T% y8 h8 M0 n
{7 K6 g" S: b- ]2 R: W$ ?( d
wizard.AddSymbol("MAIN_CLASS_NAME", "NONAME");& ~8 L2 W, Z" p0 P% I( y
}# E3 i. m+ ~7 H- s5 i5 H* G. x
4 a2 q8 }+ `5 U0 K! y" u // Create the Visual C++ project and call it "NXOpenProj"- R6 n' t- F( {
selProj = CreateProject(strProjectName, strProjectPath);
: l! }! r0 O4 i3 o! j// selProj.Object.Keyword = "NXOpenProj"
1 \, ^/ |3 p% T% C1 e1 b$ N2 j. M$ A5 g( Y
// Add common and specific configurations to the project& o- r6 ]0 j3 B2 z" C+ y P
AddCommonConfig(selProj, strProjectName);
' R% S2 g# D5 u, U9 p7 r AddSpecificConfig(selProj, strProjectName);
( B( n4 i$ v% m// selProj.Object.keyword = "MFCDLLProj";! w# K8 {. l1 H0 @# T
8 U0 x4 h% q6 _! x* D* v) v; U
//Set the project filters % s) @7 o# S/ }$ O1 ?% O. h! e) A
SetupFilters(selProj);
+ `- @; _% f6 q( p( u! Z; S# Q9 ~2 V0 O+ u
* x: H& q" Q. Q1 n4 s" ^( S; a // Add files to the project from the project's Templates.inf file2 K9 i8 }& Q# ~( c
AddFilesToProjectWithInfFile(selProj, strProjectName);
0 a; _6 ], C7 W9 J) v1 o5 A$ X2 } 2 z. d6 S, d/ F
selProj.Object.Save();: y- S* Y, c0 r6 T
}: k- y- `+ x" w* B; b
catch(e)' P( N. a' [8 D6 p- e6 c7 r |
{( {4 q) r4 g& p/ y$ h# T) i! G
if (e.description.length != 0)# n* E: D6 I3 [7 s
SetErrorInfo(e);8 m/ v/ ? Q" d) w! {
return e.number
" S* Z6 [# j7 | }( A# ]4 C: t9 k$ y z
}
4 I/ k0 E) r7 b$ l: m5 w+ Y. o4 `. G: m8 a
function SetFileProperties(projfile, strName)
% T$ p7 W/ x y g* T{4 B4 u# [6 a7 f; o7 n( ~8 L' q
return false;
+ B8 M8 j* m9 {- x}! K# d( ^. W# M/ X- g* T# j
. B& s$ G$ R( X3 @ u# gfunction DoOpenFile(strTarget)( l2 p+ ^5 f3 l/ B1 [! y# T
{
. \, J! ^! a5 c9 y- G) i f* e return false;0 N/ u( T5 Y, l* M0 k) w
}
( N7 A3 ^. [7 U* q3 s9 P* T: _" L3 c# |; d- e1 ~ m% y; o
function GetTargetName(strName, strProjectName, strResPath, strHelpPath)
2 V$ P& d) }/ p2 {! {- o{
$ S u. t1 }0 \) d% Y+ Q try
& Y. r' h/ x( Q. N" V( ? {9 E. L$ _6 A& y& d9 r0 P/ o) `2 {! ^
var strTarget = strName;
7 c3 b: D7 K- b7 | if (strName.substr(0, 4) == "root") q9 d0 i0 g7 }; \ s3 G, @
{# P" N* x5 ?4 n- s7 \4 A
var strlen = strName.length;
: n5 W+ a4 h* Q2 {9 n if (strName == "root.ico" || strName == "root.rc2")
/ }# {6 _+ Y1 Q/ D$ h9 K {
5 O T4 @# [" i3 F) w" @: N4 J! ~ var strSafeProjectName = wizard.FindSymbol("SAFE_PROJECT_NAME");/ D! H% w+ D; v, o" N Y9 S" @5 `
strSafeTarget = strSafeProjectName + strName.substr(4, strlen - 4);
- C- e- n: u, D5 G strTarget = strResPath + "\\" + strSafeTarget;1 X0 x) L. p7 S. A9 F7 `
}
; h* R/ ~. ^6 |7 E: p else if (strName == "root.txt" )
( U6 `+ x0 J9 K {- s* j$ K4 F6 c! ]
strTarget = strProjectName + ".cpp";
. `8 O! g' W3 Q/ X* R }" ^5 h& K# F, N! |0 v
else* }1 B$ h2 F# m
{) m5 ?1 h: x" `- T' c5 D
strTarget = strProjectName + strName.substr(4, strlen - 4);
; D8 m4 N) p$ {* s9 Z( x, f w0 ~$ Z }
5 _6 @6 f8 |$ b0 i return strTarget;
q1 H" m k( u* b$ {4 z& W }
3 h" @9 |5 R9 F8 G
6 @1 B: {6 _( P B switch (strName)- h/ [( h4 d; C. I9 X
{; X @- R4 B' X: g
case "readme.txt":
8 I; k: `4 f8 c9 t2 Q strTarget = "ReadMe.txt";; T) {" P/ R# }
break;
* c& H3 L2 o1 d case "all.rc":
' e9 l' Y$ ?! b3 F: _ |/ ? case "dlgall.rc":- u+ C6 r& z7 y# q
strTarget = strProjectName + ".rc";
- L4 c+ s3 H1 N" }5 h" p) ^ break;
J: ?- A {% O/ p0 @0 m G( I case "dlgres.h":5 Y2 r& q/ W( e5 M9 F1 K: a1 G; l
case "resource.h": Z- r8 B) q- f. S
strTarget = "Resource.h";7 y& l$ [) I1 e" x
break;$ X6 Z; T0 |) C" \) Z: S
default:
4 ?+ K, j) @3 i- V+ ? break;
6 W3 L* T' X: L3 [. g }! z; @* F: l4 C6 T. T
return strTarget;
, }- C1 c2 w& z& E* L# M }7 z9 u7 \! h/ ]# C: H, N2 G8 c
catch(e)
6 W/ X7 E( I6 r) E" H4 J- E {7 V. m6 [* D3 I8 D3 E
throw e; _( E$ M1 {9 f* }" g, H
}( y* n1 s% o3 |: t$ ?0 X
}) o& L1 P: U. H" a; y7 v9 K7 L
" W0 b& f# p9 E; n+ T
function AddSpecificConfig(proj, strProjectName)
# @4 T/ R- s0 ^# [! r; B* F{
7 |8 K$ `$ v d2 z) K try
. N/ i. q+ S2 D3 d* H! w% ^1 K {
) z) i- R# r! |" p$ l I var isDllApp = wizard.FindSymbol("DLL_APPLICATION"); c0 u2 u5 B* B. B
var isCxx = true;" N( @6 o4 w S5 E( |
( T( I5 H9 |% S4 w. D) f1 Y
var appType;$ M1 a7 T: g+ F
var appExtension;3 {' |0 ^2 b L0 v8 @! b4 c" \7 O8 K( l
: [2 H, r/ ?5 q/ v( p9 r. Y, \4 K proj.ConfigurationManager.AddPlatform("x64", "Win32", true);# T3 U. C+ I/ }' i- K) I9 `$ M/ n
; ]' o8 p/ M( M4 `3 k: `* `0 M if ( isDllApp )
- n6 B5 l, F& W3 q {
+ o! c5 I. k0 V& h3 N, ` appType = typeDynamicLibrary;/ m) T' B) H: ?# v
appExtension = ".dll";
& g. r' Y9 q7 w }
: v+ c4 b. y) t5 W else6 A5 ? t+ |6 g% z/ h) p) R# T
{( x, |( ~% j5 h7 C% ]! D5 D$ \; P
appType = typeApplication;, V9 V4 t. G( l; o) f
appExtension = ".exe";
1 J8 z) L( N6 ~! P2 A }
% X" C( m/ x* a) U& x7 T, l
* G, l/ p: j' j) f$ u var linkLibs = "libufun.lib";% B6 p0 ?5 I) ?
linkLibs += " libufun_cae.lib";4 H& C1 h1 @6 O$ S8 w- p
linkLibs += " libufun_cam.lib";3 V/ \3 B$ O5 }
linkLibs += " libufun_die.lib";) k) y# q1 N, ^* D8 t B1 A7 g
linkLibs += " libufun_vdac.lib"; y- t" y3 d( M2 A( {% j# H
linkLibs += " libufun_weld.lib";% d' x% x$ c- o1 k8 I" v5 f
% U$ {: j# w1 b& `6 {8 Y; Y
if ( isCxx)
/ I: P/ i( E N U% \( i {, @4 `5 e& D- T6 |; j
var wshell = new ActiveXObject("WScript.Shell")
1 y8 T: {) l/ z& R" t( } var libpath ="D:\\dsplm\\Siemens\\NX12\\ugopen";* @; Z0 {$ L% t: o% y
var Fo =new ActiveXObject("Scripting.FileSystemObject");
* [. m$ ]$ e. F# T4 Y! h% _. S0 j var FSo = new Enumerator(Fo.GetFolder(libpath).Files);
# Z& R" B! s2 N: V+ O" p var nxopencppName = "libnxopencpp";
1 W) Y8 i# D" R for(; !FSo.atEnd(); FSo.moveNext())
q, P! k9 A. t8 J! I7 o {
: w3 Q. I9 o6 s5 p @# y if(FSo.item().name.match("^"+nxopencppName)==nxopencppName) //check if file name start with libnxopencpp" |/ |) P" u- G" X
if(FSo.item().name.slice(FSo.item().name.lastIndexOf(".")+1).toLowerCase() == "lib") //check if file has '.lib' as an extension' b" G3 a# Q7 B/ z
{, ]+ ?' P( w! {! P g0 Y' i3 o( C4 i
linkLibs = linkLibs + " " + FSo.item().name;% D1 l( D8 j; Y- O ^$ g
}
+ v% ]- F! j$ o3 Q' j }: h1 r1 [, f0 W4 n
}
# o" Z" m R- g) d5 S9 l
U: ?* n+ F( a- [, \6 v if ( isDllApp ); [7 r/ E4 m( r8 U
{) e" T+ z' P6 B
linkLibs += " libugopenint.lib";
( {- \8 i! g6 I linkLibs += " libugopenint_cae.lib";
$ f0 U4 c7 A" c8 l$ S V+ g4 D. W linkLibs += " libugopenint_cam.lib"; Z) Y( ~6 r% [+ |: R
. g- r Q" C1 K4 Y) K' q' C' {# }
if ( isCxx)1 v2 h: }# {; x, Z7 z3 H
linkLibs += " libnxopenuicpp.lib";
; S- p4 Z) I- a4 X; z+ O }
l1 ?6 J5 }$ K0 O9 Y5 R! i2 R2 D1 Q/ ^2 x, z
//=================================================================$ _6 I: w+ G4 }/ C* U/ @
// Debug Configuration
% M; J! |7 x2 w$ ` //=================================================================; _; D: w, b, {' v+ M
//LRJ - add x64, n" k ~2 n- z7 b
var config = proj.Object.Configurations("Debug|x64");
`! F( O5 C$ w5 g& l$ j" Z config.ConfigurationType = appType;
' G8 |8 y U4 l ] config.CharacterSet = charSetUnicode;
) } u8 c( ]8 T5 r+ b config.useOfMfc = useMfcStdWin;% c# G. I6 G3 `+ _6 F
+ A& }& x' ?! e/ } var CLTool = config.Tools("VCCLCompilerTool");- v5 ]1 {* C& y
var strDefines = GetPlatformDefine(config);% J7 S* R+ a1 I4 ^7 v/ D
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";5 b. L( r, u W- {
if ( isDllApp )( T+ [$ J3 d$ @! |8 ~' V$ O
{
, N4 ^1 u3 U4 E; [$ c+ p9 c# L strDefines += ";_USRDLL";/ O9 _. S7 t% G7 i M
}: a* Q2 g, S* p0 E4 L8 e6 n
else
z& w6 Z( T3 R$ E: B. M! T( p {
' R+ T, F+ h, Y* l; j+ n$ t6 C' i, E strDefines += ";_CONSOLE";8 J4 h9 M( `# f! W/ u& @! F
}/ p5 U7 G ?' j7 B
9 F" w# R# |1 Y2 v9 Z! C CLTool.PreprocessorDefinitions = strDefines;
9 i9 x3 e9 @3 r$ Z- V) d
) k+ k, i6 G, E1 X' ]: P config.UseOfMFC = useMfcDynamic;
' x" R; m4 ]5 X$ W CLTool.RuntimeLibrary = rtMultiThreadedDLL;
7 T5 B* u0 d( r6 U7 h" _7 X) Z* E% K& N4 z% D( c
CLTool.TreatWChar_tAsBuiltInType = true;
* ~. R- ]3 @% K* }3 v9 h CLTool.DebugInformationFormat = debugEnabled;
8 O3 F( Y# y! G CLTool.AdditionalIncludeDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
; f5 u/ h3 g+ L, s3 F' j) F% }
# O7 P' h/ k5 U2 _- Y2 h( U CLTool.RuntimeTypeInfo = 1;. U8 X8 ^+ H/ @ F; Q M; x
CLTool.UsePrecompiledHeader = pchNone;% o' B3 f- y% Z" |$ o
CLTool.AdditionalOptions = "/d1scalableinclude-";/ O! D5 y8 y$ s3 o0 T+ \
- v% r/ L8 m u/ i7 g0 S) H
//LRJ - change for X64 - add TargetMachine' W7 p, ~* L. x& w: m8 Q* `, I
var LinkTool = config.Tools("VCLinkerTool");
- o, C M" {* H# j3 j LinkTool.TargetMachine = machineAMD64;
8 N7 \+ q' r4 P6 n' T LinkTool.LinkIncremental = linkIncrementalYes;8 i4 O* ]) j# O6 N! o, |. F9 f
LinkTool.GenerateDebugInformation = true;% K5 F" l/ c0 L
LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;
0 f6 v: I0 b$ o: {, C$ i; k if ( isDllApp )
+ m" c* i" b, O7 E2 X& p LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";
4 M; K8 N7 ~/ W LinkTool.AdditionalLibraryDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
9 c. h' v$ {+ d: v LinkTool.AdditionalDependencies = linkLibs;( s$ Q9 ]4 ?* \% r, c/ u
LinkTool.SubSystem = subSystemConsole;
! S, H, F0 c9 K4 h+ L//LRJ - add following line for X64 definition
" @ i4 S0 q0 Z# S. f4 q! a6 @ dte.ExecuteCommand("Build.SolutionPlatforms", "x64");
1 a4 \; I$ B3 e1 C$ y2 R0 N& D/ I" s+ e" [+ A
//=================================================================
+ Y, j8 Z7 `( B; s- E3 {: q) P // Release Configuration# Y/ D" J( C) r5 R$ ~
//=================================================================' z/ R) X) M' N `# u
//LRJ - add X64 definition to configuration line, {& J" _0 `( i' x) Y3 W
config = proj.Object.Configurations("Release|x64");
) j- G& O! u) h' g2 S( p config.ConfigurationType = appType;
1 {: l* m9 n4 x) X config.CharacterSet = charSetUnicode;9 S& ^3 [- V# Y2 \! _+ Q
config.useOfMfc = useMfcStdWin;- ]* N0 f8 ]7 `/ }* [+ v& k3 T7 m
2 C- D( f* x$ m2 t E
CLTool = config.Tools("VCCLCompilerTool");
$ h) W- k) A$ U6 x! y" ]8 O' q G strDefines = GetPlatformDefine(config);1 {9 F7 a# D# M
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";
* m; g5 b7 m/ L; Z* `5 U m if ( isDllApp )
& S% T+ [' D4 t' b0 q {4 a5 z0 E: }; w
strDefines += ";_USRDLL";
' u- `0 O+ ?3 {8 I0 E }$ R' F, O8 b' T7 V8 W
else. M9 y0 N- y0 G; Y
{
4 W* \5 f- ?% t9 h strDefines += ";_CONSOLE";
' C/ K# C7 ^1 C/ F. \ }
. G- U7 d! ]: N5 u3 ~+ F) f3 o8 c! t' s- M$ |
CLTool.PreprocessorDefinitions = strDefines;
" b8 {, J$ {+ d2 h" } Q2 Q
c. v$ Z7 a( Z* n" Z* x# r config.UseOfMFC = useMfcDynamic;
' T* G: u. G0 j CLTool.RuntimeLibrary = rtMultiThreadedDLL;
D n# a6 C9 O& Z- g; Y
0 i" N; ?) S, \; V CLTool.InlineFunctionExpansion = expandOnlyInline;
) h9 K1 {! T9 b* ^* j: X. z% h" J CLTool.TreatWChar_tAsBuiltInType = true;
( X2 [' {$ q# p CLTool.DebugInformationFormat = debugEnabled;
b A* V* x$ J/ O) a+ _. o7 S( x' z0 o5 d8 \/ n5 `
CLTool.AdditionalIncludeDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";
( n+ m" O. c. @4 |1 E% E5 y& X4 r0 @" w" I$ g& d) f
CLTool.RuntimeTypeInfo = 1;& L' v c: o Y4 P% o, {/ k
CLTool.UsePrecompiledHeader = pchNone;5 {3 ]$ a' p) b) _& y2 G
//CLTool.AdditionalOptions = "/d1scalableinclude-";
' j; ^# h- n' Q& J# x* o- |8 p9 c Q. N, I$ S4 ?' H
LinkTool = config.Tools("VCLinkerTool");
, G9 J h" M# r# |% j//LRJ - add following line for X64 definition( z( t: T2 @+ v8 \
LinkTool.TargetMachine = machineAMD64;
* V8 s; A5 ?6 h LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;
* y* t4 Y$ G& \. }/ G' Y0 T if ( isDllApp )
" I5 A* ?/ S" d! V; y LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";; S8 L/ ]% Y& E1 P; C
LinkTool.GenerateDebugInformation = true;
( s# x1 m6 I" f; m( O1 B LinkTool.LinkIncremental = linkIncrementalNo;
/ f! ^' x# M9 m. _! N0 Q LinkTool.AdditionalLibraryDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";
7 u; | s* N% Q) I3 _; Q+ w LinkTool.AdditionalDependencies = linkLibs;
( W8 {+ s3 ^ D! w( b LinkTool.SubSystem = subSystemConsole;% X2 |) @$ K( [8 T: E
//LRJ - add following line for X64 definition
( E w/ ]% k' i$ U5 M dte.ExecuteCommand("Build.SolutionPlatforms", "x64");. y! z7 \- z1 n3 u+ a
}; z& ?; J/ A1 f
catch(e)% i W. U0 n+ \& }/ m7 [# V
{
* _( N' A6 s' P* {7 b2 p7 ^ throw e;( U( i6 N4 d6 }$ E5 a, g
}
* M( j% I4 S( v* n}
' w2 d. N4 |: t$ G& z& M( H( x. K+ C: X8 a
* E4 X+ b8 V; S8 D+ A; H' ^% c- E
$ T% q5 d3 H/ B. a
|
|