|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
NX12.0 二次开发使用VS2012 报错解决方案
- U7 z4 N Q/ _* c3 p1 t0 o严格的讲NX12.0需要使用VS2015进行开发,这里说下如果你是低版本的解决方案,但是不推荐!
( n* M2 _% a4 A: m0 \9 k" M(1)安装完后,点击Open Wizard 告诉你创建项目错误2 a6 Q. d0 h) d$ Q! j7 |/ R
( f* H( G" E, A: q, g" E0 O这种问题就是编译器版本不符合官方的匹配导致的,更改方法很简单 9 s' g- H0 h2 |3 Q/ v5 N# V/ s
打开 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcprojects下的NX12_NXOpenCPP.vsz 将
& j0 l2 E9 U) qWizard=VsWizard.VsWizardEngine.14.0 中的14 改成11 也就是对应的VS20129 L+ a0 I7 l& I3 L/ X& v
# I o( Y. X8 L! T: E这样创建的对话框就可以出来了!! O- w9 n" W7 d" ^: ~- `
(2)你可能还会遇到路径错误,path not found, 建议对这个文件进行修改,尤其是你有多个版本存在的话,一劳永逸6 Q* j, ~2 U$ ~' Z$ i
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCWizards\NX11_NXOpenCPP\scripts\1033 下的default.js 文件4 Z' K7 p+ V' U: M1 b
修改里面的环境变量路径,注意路径是双反斜线 \\,参考如下!
! R9 k7 l4 {! ~# |: H" y( M5 ?: ^# }$ C: W$ I/ I
//@<DEL>@ TEXT ENCLOSED within delete markers will be REMOVED
6 f5 S$ T& @: q4 ]( A" ?, s// 09-Jun-2012 Frank Berger Initial Release for VS2010 based on "NX8 Open Wizard"0 R; R0 V' ]5 N7 T, J1 S
// 31-Okt-2013 Frank Berger modified for VS2012
! S7 n5 H& g7 }5 x! j' d// 13-Feb-2015 Sudhir Pawar ARCH:11320: Added libufun_die.lib,libufun_vdac.lib & libufun_weld.lib
# b: D. |0 o4 s2 d// 21-Dec-2015 Purushottam Thakre Fixed PR#7567548: Call DeletePlatform function to delete 'Win32' platform.
! Y9 D/ K0 T" A! P// 08-Jan-2016 Prabhakar Mandlik Fixed PR#7588129: Added /d1scalableinclude- swiTCh.+ t X. r& e' E0 @. b) a
// 10-Feb-2016 Purushottam Thakre Fixed PR#7630769: Reverted changes done to fix PR#7567548 which is causing regression
0 A" [/ z' Q9 Z& d8 {( ]//TEXT ENCLOSED within delete markers will be REMOVED @<DEL>@6 B* n( X% g3 F- p+ O
! h7 y6 p8 l9 M; i! O% ~6 \! ufunction OnFinish(selProj, selObj)* Z; Q6 ?: y' t2 x# {. e. e) D0 L
{/ U4 x' V% v# ~7 ^
try/ T$ J2 k3 u1 _0 s$ x7 Q
{
6 T. \$ I* w6 J$ M% F var bodyTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "body_template.txt";1 r a* a, R j- g% B$ { a( P
var bodyTemplateText = wizard.RenderTemplateToString(bodyTemplateFile);7 Z! g, b' K% ^- c/ S
wizard.AddSymbol("BODY_TEMPLATE", bodyTemplateText);& M+ {8 }5 m; c& n
$ W; W# G) Q/ ^
var entryPointsTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "entry_points_template.txt";; \8 W9 @, {1 k9 T# j
var entryPointsTemplateText = wizard.RenderTemplateToString(entryPointsTemplateFile);
! h; r- J% ]7 r/ h" z8 v9 I wizard.AddSymbol("ENTRY_POINTS_TEMPLATE", entryPointsTemplateText);% T* J3 S! R! G. @& t
$ h& ~6 c3 V1 t& _5 H
var unloadOption = "UNLOAD_IMMEDIATELY";+ Y$ j4 e7 H0 m( q1 r
if ( wizard.FindSymbol( "UF_UNLOAD_UG_TERMINATE" ) )3 g& v& v- Y5 W! F) M: ^! h
{
2 k1 A; O) Y& h5 i9 ]4 J unloadOption = "UF_UNLOAD_UG_TERMINATE";
4 U# u$ {% `. I2 P* s$ m }
3 K3 v, q' h( K L else if ( wizard.FindSymbol( "UNLOAD_SEL_DIALOG" ) )
' N: K% y- k& i3 L( _, V {% X* n7 i: f2 k9 T$ ^ Y" A
unloadOption = "UF_UNLOAD_SEL_DIALOG";* ~5 x" n) E3 `( H- r, s
}
8 C$ y1 O; c# m* t: W$ r wizard.AddSymbol("UF_UNLOAD_OPTION", unloadOption);
: _& B: k$ `) D' G) M1 d; B, R4 a% r( M2 T7 }* Z
. z; L* d3 H& `. I2 `" z
// Assign the project path and project name* {" v, H: w+ |6 H0 Y
var strProjectPath = wizard.FindSymbol("PROJECT_PATH");. f, \6 ]4 @# ~2 ]- l
var strProjectName = wizard.FindSymbol("PROJECT_NAME");
# n! F: t, B0 i2 z) g' K var strClassName = wizard.FindSymbol("MAIN_CLASS_NAME");
6 |2 ~! l- O+ ^7 B; d0 P! z if ( strClassName.length < 1 )
% c- O9 ]6 {' {- {( ~0 Q* f {
3 j6 P2 ?7 ~! ^ wizard.AddSymbol("MAIN_CLASS_NAME", "NONAME");
, @* S* P# ~, J7 q) r. C5 }) N) G3 {# O }
5 h# k6 y R6 l% F* }8 Y a* E8 s& x( u
// Create the Visual C++ project and call it "NXOpenProj"
( _5 {6 ?. u$ n6 Q% F; L selProj = CreateProject(strProjectName, strProjectPath);( a1 [& T! q6 E* I+ o
// selProj.Object.Keyword = "NXOpenProj"$ ~' z: j6 G9 l0 }7 J+ R! V% e. L
0 t% V, {0 a/ Y& v // Add common and specific configurations to the project
9 a# k9 ]8 r0 g& M6 I AddCommonConfig(selProj, strProjectName);
3 b$ f3 p* ?( T1 v1 s AddSpecificConfig(selProj, strProjectName);$ @/ g# G7 I t2 S U% y
// selProj.Object.keyword = "MFCDLLProj";8 C! Y) K m) e, P
. F, [9 Q/ W6 c
//Set the project filters
8 z- f, F2 G: h& t! |5 a SetupFilters(selProj);
5 e% a0 M) ]# v @0 n" y% P" g0 e" j, c' ~0 k
// Add files to the project from the project's Templates.inf file) e ^7 }: a) w0 f! O" ^
AddFilesToProjectWithInfFile(selProj, strProjectName);
( G8 n: [! O8 }. M2 {# w 1 T; \* _( D8 E8 g
selProj.Object.Save();
8 s3 _$ D1 r! s- | }' F- }+ P- o' N& W
catch(e)+ x! d+ p1 w! h+ w% u
{
9 i; T T( P! G( s if (e.description.length != 0)
* I! N: v5 E+ j& H4 ?! g# s# G- l0 G SetErrorInfo(e);$ k x4 k; K, f
return e.number
' D; E& w/ F: V# x. a, C* C( {& z5 u* k% \ }
4 }# k1 N. w; s% ?6 L}
* U% s8 W' m+ o4 r( T( W
1 i' V; ~# ]" g( q/ `& d5 Bfunction SetFileProperties(projfile, strName)
U, L; ?$ [! r2 j4 x9 d) H{. y$ A1 B; w% @
return false;
7 n# j( x$ D, }7 \$ P! l}
6 e# |9 ^0 E% z' W3 Y9 Y- n. n t: y' b1 w+ T* B: e' B
function DoOpenFile(strTarget)+ v; D) Q8 V! [2 ?8 J
{
' h1 ?) p0 l A* u7 H6 b" f" n return false;
5 _2 A) c; ?3 ^& F1 ]}
+ V5 i1 ?3 u$ O. Q; h3 f5 `8 K
6 f1 T0 ~, k+ P) ^6 n A: }function GetTargetName(strName, strProjectName, strResPath, strHelpPath)+ f: G6 I+ e, N2 t7 f
{
: T6 K/ k; k! b. J+ ^1 f- Z4 Y try7 ?5 W. V* O- `+ ^% h4 V8 F
{
; y8 Y/ L$ ]( T! v% M. ^* y var strTarget = strName;* m, ^+ g/ m% S- v, d! S/ Z
if (strName.substr(0, 4) == "root")/ M( t( ]4 i% L; k6 }1 M
{5 G% F5 g+ q) C6 X9 R
var strlen = strName.length;4 o: L6 H$ [! t; W# ]3 \, i8 b3 e2 W
if (strName == "root.ico" || strName == "root.rc2")
; D1 |4 O5 |( c {
1 O$ `; a0 \2 w4 a* Q" l var strSafeProjectName = wizard.FindSymbol("SAFE_PROJECT_NAME");
6 ~9 e9 I n/ T: X strSafeTarget = strSafeProjectName + strName.substr(4, strlen - 4);! N O! o2 {5 D3 C% ?# N
strTarget = strResPath + "\\" + strSafeTarget;5 t7 ]" P. ]- Q! ^
}; J. [" R4 h) g# [# i" ^/ I
else if (strName == "root.txt" )4 B$ w: w2 Q- `! F& D$ D
{
J- a5 e6 c! [& h% \7 e6 [+ c strTarget = strProjectName + ".cpp";( j: E" D* y$ J w9 C3 L
}6 {! c3 y5 T8 S7 m% f" Z
else
) ^; M! S+ N( A( W+ N0 w9 e {
# s, U5 C* E3 R: a( i strTarget = strProjectName + strName.substr(4, strlen - 4);7 {, `; N& f& B! ^) B/ t
}
, h0 t# @+ i" \& }- H return strTarget;. e* t( b( c r4 C/ Z
}
! U1 o7 w) u T4 T$ v/ w1 O
`' I3 B! `4 K4 K# c# F j switch (strName)2 X8 N8 |) w0 q/ {& k6 g
{
/ Q4 d0 l' [6 u& o( ]' f case "readme.txt":9 A" R' C3 V# e7 I
strTarget = "ReadMe.txt";3 d2 M: U5 e# n9 d6 `
break;! u7 W+ q) j) L
case "all.rc":
" I% p8 g& k6 G6 Q- j) H case "dlgall.rc":1 B$ e9 [4 q- L+ C8 Y9 D
strTarget = strProjectName + ".rc";
1 _5 b2 k" s! F8 l' j! M break;0 Y0 z" I: v8 p
case "dlgres.h":' Q2 m2 B4 W' S$ R
case "resource.h":! p6 H4 ^ J: L! X
strTarget = "Resource.h";! D9 C: N" W2 ?, {9 Q1 K
break;
5 V# s3 X9 ?. ~' P default:
0 b. O5 r4 w _% f1 q: c8 F4 u break;
7 F6 \+ ~. ^; K7 v- Q' j }
2 Y" @9 _9 z* i( ^- W return strTarget; & ^2 Z5 u! f3 D5 r4 J
}( w9 ?* Y6 u+ j' I& z% v
catch(e)) y* X" s) J$ m& a4 ~: {3 [
{. @. L/ r' C* f% m
throw e; M. w, e# D& a
}
+ w6 M: ~& e2 _8 H}
% G1 ^2 V w1 `+ E0 |
, ?4 |+ _$ x8 u, U3 Lfunction AddSpecificConfig(proj, strProjectName)( J- R/ c# A+ n3 I! U/ f% u
{
; T' i* [1 G% L' \ try9 w* V6 c. N* A4 B0 B4 H
{
3 F* k$ Q+ Z& R var isDllApp = wizard.FindSymbol("DLL_APPLICATION");
4 x: T6 S! V f i+ Z4 Q6 X7 H/ x var isCxx = true;
2 z5 |" t3 M5 u" O: k6 O: y4 m5 X9 D% Q, J4 m; Z0 @% V) [
var appType;
* ]- {, c/ ~; ?8 n var appExtension;
3 y2 H( j- Z. r, C/ |3 F/ q* O# @, g% e
proj.ConfigurationManager.AddPlatform("x64", "Win32", true);
5 v$ M& {8 S! N1 _ _
) z: j0 K) S0 c2 Z# R' _5 w" L& v if ( isDllApp )
# w( Y1 j' A4 c5 z {
/ c' w. a1 k. T b7 x# k appType = typeDynamicLibrary;
& o' g9 u2 y/ g3 g! T$ q appExtension = ".dll";
7 W r5 w: F* v7 H% R }
- k: Z3 ? S8 ~, J: X else
1 @. k6 _9 M E" q. z! z0 @ {" x. |# w9 u1 [1 t, F1 J9 |1 c( `2 s
appType = typeApplication;
8 d' X$ h p; ^ N6 }+ p8 p5 s appExtension = ".exe";# b" }$ }5 o; H
}. N' v6 N+ y) B s1 m+ K- Q
+ Y2 d' e7 R' q+ M1 N) l$ [ var linkLibs = "libufun.lib";
& \, H" B. f, c" I1 j linkLibs += " libufun_cae.lib"; d6 v8 W! O. ~4 }( V- t9 Y/ E
linkLibs += " libufun_cam.lib";
9 V4 N% a6 [/ E9 m l) [% d: { linkLibs += " libufun_die.lib";8 M$ [) ^4 f" @( }' ?
linkLibs += " libufun_vdac.lib";5 {9 e! x; @* ]5 S7 Q8 i
linkLibs += " libufun_weld.lib";
, o1 u4 j3 C- F
1 J" V" ~% }4 W( U+ f2 r+ D& ~ if ( isCxx)
7 g, L2 v* t- p5 s {4 @2 F+ g3 b- f+ b' K# p" T, m( ~0 f
var wshell = new ActiveXObject("WScript.Shell")4 x5 e8 n4 ~* _% G6 ^& |4 P
var libpath ="D:\\dsplm\\Siemens\\NX12\\ugopen";% t; D) o8 `0 D+ h1 E" a
var Fo =new ActiveXObject("Scripting.FileSystemObject");
5 [& ^4 Z+ F$ O, I$ P, U0 ? var FSo = new Enumerator(Fo.GetFolder(libpath).Files);
1 b8 J; E8 H: L { var nxopencppName = "libnxopencpp";
- v3 D, o" G2 Q% }9 R' }3 i for(; !FSo.atEnd(); FSo.moveNext())
) g" Z& ^. e7 X5 Y {9 o D5 @: p1 w) T" T: O- z
if(FSo.item().name.match("^"+nxopencppName)==nxopencppName) //check if file name start with libnxopencpp
0 c9 l0 ^8 Z) n- b+ q if(FSo.item().name.slice(FSo.item().name.lastIndexOf(".")+1).toLowerCase() == "lib") //check if file has '.lib' as an extension" Z( k# I) N4 W& x6 i
{
* I+ g2 C5 L" x- _5 T- Z linkLibs = linkLibs + " " + FSo.item().name;
* l% Z) b1 n; m( Q0 l }
|% w- G* c* H2 x) Z* B# G }
( L3 q( ~7 B5 i" n+ ]2 ^6 ? }
0 c3 ~( n% \5 T2 G9 T
' z0 T/ ^' V$ a+ O if ( isDllApp )3 g6 L5 h7 s) B9 N
{
* ?. F9 r2 a N7 U3 }. b4 y; Y linkLibs += " libugopenint.lib";* S8 P0 B1 I6 E
linkLibs += " libugopenint_cae.lib";
/ ]$ p' P. Y' U' E) D linkLibs += " libugopenint_cam.lib";
7 |$ G; ~# ~* r% S. ~$ Y/ d3 G: P; t: L `+ j
if ( isCxx)
+ w0 Z+ Z# D4 H' g+ v; Y linkLibs += " libnxopenuicpp.lib";0 P y6 Y p4 M
}
" S( g6 _- q' m" A
8 s. p2 u- |% \' m //=================================================================
- |4 \5 `$ g+ [1 ] // Debug Configuration
- [! g0 E1 H' Q& C7 A" v. h //=================================================================- E5 P0 [, U' O% p4 a
//LRJ - add x64( V- n: i6 r. {4 Z' M/ V. x
var config = proj.Object.Configurations("Debug|x64");7 U* ~) `0 b) c4 f* }- l3 x/ E
config.ConfigurationType = appType;5 T7 i# E- U/ M1 [1 M; M
config.CharacterSet = charSetUnicode;
. E2 T. X# D( [1 X T- V config.useOfMfc = useMfcStdWin;
+ o5 u0 s# I. v2 S- u9 K 1 p, y$ } L# f2 w& M: X
var CLTool = config.Tools("VCCLCompilerTool");* Q3 K% ~2 l8 { F( l5 p7 _
var strDefines = GetPlatformDefine(config);8 }- p! {* U, l% }- f
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";* K0 Y" @+ B- I8 S7 r) K& ]$ T+ J
if ( isDllApp )- u* o% n3 l& R0 g5 a" g7 V
{ A8 f$ X/ U! X3 K$ A& F- {% w
strDefines += ";_USRDLL";
6 h# L) s8 }' D# E$ U }
/ k7 o) m% f: t else
& s, |- f7 S- ` {$ F/ j2 z( h# B# e
strDefines += ";_CONSOLE";
' `$ C' T) u1 ~ }$ F9 I; v! k6 |/ c* w) L
/ `; S6 i( o3 q CLTool.PreprocessorDefinitions = strDefines;& M+ t8 \6 |& b+ b% `4 z
: ]( m( U3 u6 |1 v1 |" E5 D( a `: T
config.UseOfMFC = useMfcDynamic;+ W6 q% w' l. ?, S2 o6 |! v, D4 U' ]/ }
CLTool.RuntimeLibrary = rtMultiThreadedDLL;2 g8 [" E! V7 K) P0 | d! f
, G4 s5 i& f4 l) [7 k" ^9 s8 M8 \
CLTool.TreatWChar_tAsBuiltInType = true;
3 k3 m, {/ ]9 \+ k, ^ CLTool.DebugInformationFormat = debugEnabled;; q+ g4 j( g; Y, H" a2 b& P* H5 j
CLTool.AdditionalIncludeDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
; s: h. a4 h$ J, j% r, V' T. K$ k* {: h( q c
CLTool.RuntimeTypeInfo = 1;- a. m* V* O: i8 [ v
CLTool.UsePrecompiledHeader = pchNone;0 ]' A( c* o, W
CLTool.AdditionalOptions = "/d1scalableinclude-";3 M( d4 k; \/ B) f- F0 r
9 m" U2 T$ ^$ B1 @) y* N3 _
//LRJ - change for X64 - add TargetMachine) {( R& H" `% b; a. X o! e% O, m
var LinkTool = config.Tools("VCLinkerTool");( u! }8 C% s4 {9 B) w
LinkTool.TargetMachine = machineAMD64;
2 X9 N2 {% C6 Q6 _ LinkTool.LinkIncremental = linkIncrementalYes;' v7 X- P* a- X
LinkTool.GenerateDebugInformation = true;+ p: T( U+ Y! w! e
LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;2 h1 D7 o6 e' j' T0 K- U
if ( isDllApp )
! [" g. x9 Z% K1 m7 b& F& y LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";# E' L# B$ @* t7 w
LinkTool.AdditionalLibraryDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
5 L2 a7 n. m, _; M LinkTool.AdditionalDependencies = linkLibs;
, \5 C/ K& o$ ` LinkTool.SubSystem = subSystemConsole;/ j5 V" X/ ?, ^
//LRJ - add following line for X64 definition
& Y8 x" j" w7 j! h. b) g dte.ExecuteCommand("Build.SolutionPlatforms", "x64");
; g8 W0 z3 y( H7 H& c$ r( b" J
+ H" `9 e% r: K7 \ //=================================================================% i- D( j: i+ x# l
// Release Configuration9 ?; g, J4 N1 ?; P0 d
//=================================================================
: ~/ i6 G c* d8 }' |; g//LRJ - add X64 definition to configuration line
1 t8 V, t2 e8 p# M config = proj.Object.Configurations("Release|x64");
: R+ X5 \* X! q6 X/ t config.ConfigurationType = appType;) a& `! u8 Q2 i+ S' ]0 g* j
config.CharacterSet = charSetUnicode;
, G; N2 s j# H, s! `, O; z config.useOfMfc = useMfcStdWin;
$ h' j$ A- d( X9 ]# F
8 m& i; D5 u: {5 I9 {( z( ` CLTool = config.Tools("VCCLCompilerTool");
1 D2 f& q3 `2 C. S' P7 M3 r' ~ strDefines = GetPlatformDefine(config);( G% ?0 T# A4 t' \: P1 F' w
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";- B) C3 E8 g. |( N+ f. S
if ( isDllApp )
* C, O: T/ N0 ^, r) q {# G; s, m4 @7 a, t2 I) k
strDefines += ";_USRDLL";
4 Y! x. d' ]3 }& F }( ~1 V( _: a/ s' |- V4 h6 D9 O
else8 r* J! }) h" G$ Z# Y
{& d* |$ I" i% @- j
strDefines += ";_CONSOLE";
* }: k* b ?$ Z# l. f }! q4 o/ Y2 w$ h6 R. `
/ M! _. q$ ~' |6 l CLTool.PreprocessorDefinitions = strDefines;5 t$ S; ?( L A% Y9 Q
2 o' U4 E, H+ u: i# t
config.UseOfMFC = useMfcDynamic;
9 N8 D- Q) G1 i5 v0 H) C+ v CLTool.RuntimeLibrary = rtMultiThreadedDLL; }3 t$ C% S% ~. a
T8 u! `8 U9 ~6 B" w' F( v CLTool.InlineFunctionExpansion = expandOnlyInline;" S; d5 ]+ v1 q( L( |! Q! z6 A
CLTool.TreatWChar_tAsBuiltInType = true;) R8 d3 X- r+ J: ?: T2 b% O% k
CLTool.DebugInformationFormat = debugEnabled;+ X b0 @: l; t v7 U
5 H. \/ J) ?4 V1 _0 o. z1 D CLTool.AdditionalIncludeDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";
. K% w! T/ `1 _- A' m& J, q
3 K: ?+ n, @8 X6 i4 I6 ?4 j CLTool.RuntimeTypeInfo = 1;+ i9 F( z6 S2 ~1 B
CLTool.UsePrecompiledHeader = pchNone;5 O+ G2 d) T0 q# ]; y' N
//CLTool.AdditionalOptions = "/d1scalableinclude-";8 b4 {# ]( m8 v% {
# Z* o3 v9 V" e0 @) @, C! }- g
LinkTool = config.Tools("VCLinkerTool");/ I& x* K; F6 `) y. l/ ?. y+ z, I( x f
//LRJ - add following line for X64 definition
/ i- l- @) m5 A# g& a LinkTool.TargetMachine = machineAMD64;
J# N. v# ~! O& n8 i LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;
8 m0 V5 V" u8 l2 }% ~ if ( isDllApp )
$ h! ~ C7 ^, L. d# Q LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";9 J$ S1 m6 U; z8 C" Q
LinkTool.GenerateDebugInformation = true;+ H" b$ s# b& m1 Q9 I h" q/ X3 ~
LinkTool.LinkIncremental = linkIncrementalNo;4 Y' ~: V- h0 t! q1 o$ z/ a
LinkTool.AdditionalLibraryDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";
4 B# D3 d' r8 l$ c& b+ R LinkTool.AdditionalDependencies = linkLibs;
+ d7 }; |3 T: l1 E0 \* z LinkTool.SubSystem = subSystemConsole;! o G- e$ C$ T' G
//LRJ - add following line for X64 definition4 l/ ~8 _% b+ T ~: ?6 D( o
dte.ExecuteCommand("Build.SolutionPlatforms", "x64");3 p) F1 z5 u- D
}
' R/ A0 H- T6 o4 Z catch(e)
2 ^$ H% U4 _8 @/ h/ A {, ^* `6 I9 |; W' i) V1 Y
throw e;
0 i, S! u5 S: j8 P: d }
0 v$ K; j" \ k}
! g7 F, w- l6 M4 [3 f: J
! q3 F0 Y" w/ Z0 B( R, [; _3 J
' y- y4 |! U7 i2 b% i6 g; ~
" A0 X9 m1 O) `/ u8 q% m6 \ |
|