|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
NX12.0 二次开发使用VS2012 报错解决方案
- { ?2 M4 p E& A1 Q: w; U3 j严格的讲NX12.0需要使用VS2015进行开发,这里说下如果你是低版本的解决方案,但是不推荐!% E( R! i6 o% E: }( }: Y6 o6 Z
(1)安装完后,点击Open Wizard 告诉你创建项目错误
" C; ]8 l$ b+ `3 U
2 \! o9 H% m4 [+ |8 s4 E( W. G这种问题就是编译器版本不符合官方的匹配导致的,更改方法很简单 - h% e, @2 Y' d6 ? h$ I- U
打开 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcprojects下的NX12_NXOpenCPP.vsz 将
5 l; w3 f8 s/ N$ R! a3 a2 v: \Wizard=VsWizard.VsWizardEngine.14.0 中的14 改成11 也就是对应的VS20122 A6 e# ]3 g" y+ q" s4 y
3 m+ `! D9 y% ?7 m/ Q这样创建的对话框就可以出来了!
2 G2 {3 ]! V6 h8 b2 V( d(2)你可能还会遇到路径错误,path not found, 建议对这个文件进行修改,尤其是你有多个版本存在的话,一劳永逸) \0 U- q. L( }9 P( C+ u
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCWizards\NX11_NXOpenCPP\scripts\1033 下的default.js 文件
2 C A5 h" r5 i& M% D/ N. @修改里面的环境变量路径,注意路径是双反斜线 \\,参考如下!4 y( O6 t( Z2 N, |" M* e
5 w. l4 z1 L2 E* |) l3 U, m Q6 ~1 a//@<DEL>@ TEXT ENCLOSED within delete markers will be REMOVED/ X- Y4 g9 M% |# p7 M B& {/ J
// 09-Jun-2012 Frank Berger Initial Release for VS2010 based on "NX8 Open Wizard"
" ?: g4 a* v g+ ?# D x, l2 H// 31-Okt-2013 Frank Berger modified for VS2012
" x# e: I/ W2 X! |// 13-Feb-2015 Sudhir Pawar ARCH:11320: Added libufun_die.lib,libufun_vdac.lib & libufun_weld.lib0 w) e0 E9 n; I, ?
// 21-Dec-2015 Purushottam Thakre Fixed PR#7567548: Call DeletePlatform function to delete 'Win32' platform.* F; D9 _/ q5 l0 K% d6 N' e; z" R
// 08-Jan-2016 Prabhakar Mandlik Fixed PR#7588129: Added /d1scalableinclude- swiTCh.
# n7 k. {7 Q- L& W, ]# T% C5 }5 M// 10-Feb-2016 Purushottam Thakre Fixed PR#7630769: Reverted changes done to fix PR#7567548 which is causing regression
6 S7 C6 |5 ~ I5 j//TEXT ENCLOSED within delete markers will be REMOVED @<DEL>@
( ?3 M1 B- P% B. g6 {
; x" w0 U8 \0 R Ifunction OnFinish(selProj, selObj)
8 T2 w& k- k: f7 _{# \3 s# L0 X1 m. ?; }, S" \
try$ C( i: F/ W6 W3 p9 C
{" b0 p+ B4 a: J* P4 g
var bodyTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "body_template.txt";0 a; s }+ k3 d/ O" f) B
var bodyTemplateText = wizard.RenderTemplateToString(bodyTemplateFile);+ {# g3 y* t6 p# a' H6 W$ f$ Y3 d* T. w
wizard.AddSymbol("BODY_TEMPLATE", bodyTemplateText);6 V E9 Z. T3 X: g/ G& n) @
: U# M1 x1 x j# y0 X- h9 K
var entryPointsTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "entry_points_template.txt";
9 t! L$ Z( `+ [/ U var entryPointsTemplateText = wizard.RenderTemplateToString(entryPointsTemplateFile);+ p# d+ n) t# r
wizard.AddSymbol("ENTRY_POINTS_TEMPLATE", entryPointsTemplateText);
( f t* i" ^( h* X* \
* j1 j; ~+ c4 q( O var unloadOption = "UNLOAD_IMMEDIATELY";* b K1 i: g; `
if ( wizard.FindSymbol( "UF_UNLOAD_UG_TERMINATE" ) )
: b# @* q1 w& V2 V {4 K1 G+ P) g3 K- q4 Q; Z; f2 t. K1 A
unloadOption = "UF_UNLOAD_UG_TERMINATE";3 @1 P- l8 n, R1 z
}6 I. n' v% W. k3 r6 e3 b
else if ( wizard.FindSymbol( "UNLOAD_SEL_DIALOG" ) )4 e3 v g! L3 Y
{
, J- r( h# x; R! W unloadOption = "UF_UNLOAD_SEL_DIALOG";
6 L, S& ]0 E2 k1 h }% j; g1 `! N1 \* n1 q+ O! B
wizard.AddSymbol("UF_UNLOAD_OPTION", unloadOption);
0 j6 d' j0 H' ^: Z! t/ q; v/ N& B) D) E; m) e$ _
) h% \, s4 @' I. Y c5 I. o // Assign the project path and project name
' T' }" F3 m% H* T0 p var strProjectPath = wizard.FindSymbol("PROJECT_PATH");9 K( E# n" z, ?4 \, e
var strProjectName = wizard.FindSymbol("PROJECT_NAME");
0 S" J, n" r. ^6 q5 O var strClassName = wizard.FindSymbol("MAIN_CLASS_NAME");
" f, u" h c) ^* u8 e: | if ( strClassName.length < 1 )
- b/ M. W2 Q% m; E {
9 _4 H3 R' E/ J+ t/ q+ L5 A wizard.AddSymbol("MAIN_CLASS_NAME", "NONAME");
. K5 W$ I) G$ M5 ]; j* Y }
D5 Z( a) y( H! Q$ O1 ?- p8 i4 c" @( ]4 t7 C2 {8 S
// Create the Visual C++ project and call it "NXOpenProj"
: B' y3 `! ~; n0 g3 q selProj = CreateProject(strProjectName, strProjectPath);, `+ X; {. B' ~
// selProj.Object.Keyword = "NXOpenProj"
7 L4 |$ P) m; j9 \0 B: P5 u2 q( }# D# O, [. V
// Add common and specific configurations to the project# S$ v$ i: N5 E4 R+ U3 {8 y! q9 j! @
AddCommonConfig(selProj, strProjectName);
, S2 ^& @/ _( b/ z) N3 c1 W AddSpecificConfig(selProj, strProjectName);
% Q! Z9 Y9 S0 d// selProj.Object.keyword = "MFCDLLProj";- E5 [0 c2 ]) l* `0 r$ H: E
( M6 t/ l3 ?' O //Set the project filters
- I& e& D; Z7 ?) W: b SetupFilters(selProj);6 T& ~2 S* i1 a0 Q6 y( q; [
* [ k! K% S2 y- S' V# A/ Z // Add files to the project from the project's Templates.inf file
" b- k# R! M5 ] t2 P: p AddFilesToProjectWithInfFile(selProj, strProjectName);; c* c+ c+ u3 q) }2 P% u1 v# s
. f2 A! D7 @) x7 m
selProj.Object.Save();
; d! M8 B4 e1 Q6 m9 n- ~7 @ }& V+ b; B# U1 X; ?, T _
catch(e)
2 A+ \( i* p8 C: O8 G# Y S {2 f: N3 G8 i; s% }' q; D1 R
if (e.description.length != 0)
) D/ C* e2 T, P8 W* o SetErrorInfo(e);
0 y: q7 {/ x" |8 p9 o return e.number( z ?- c; U& a4 X5 C4 G9 P
}: _1 L3 I8 F' R8 H2 }8 Y7 o
}3 I6 g$ r/ Q- ]- ^, {# c
. N8 V7 r4 T8 U( R- b" b& D9 a7 T
function SetFileProperties(projfile, strName)
& X: @5 h, }* J; g; L{
, c7 d" l4 W0 e& }4 j return false;
3 u7 `9 Y! H2 N5 n9 p$ s. J}
- C+ j7 P* d; E3 O
! o/ F0 q# X' D" s1 H) j; K4 Hfunction DoOpenFile(strTarget). ^* @6 V4 q+ L1 U K
{5 k' c+ B! i6 P$ q0 @ R
return false;
# |1 L6 Y* w$ L2 h+ ?}
! {5 i; n; G( w) E: A8 u
" j/ |# h6 p0 [% h- L5 Lfunction GetTargetName(strName, strProjectName, strResPath, strHelpPath)+ _2 d/ I. u" F, m3 y+ Y
{% d: X* M: q7 d8 j. y6 r% i
try# K0 Q: Q1 D. A
{- p8 ~' ?7 F4 ^6 k4 K/ e, c% S: p
var strTarget = strName;
% |+ \, f/ G ^9 a; M8 f if (strName.substr(0, 4) == "root")
3 l4 t- u: s6 k' \) f {
% y0 b' Q8 Q2 g. \$ s3 c" } var strlen = strName.length;
: F. o% j9 y v7 B } if (strName == "root.ico" || strName == "root.rc2")
7 \: [* E* z2 ?$ }$ h {# A8 K( u1 T& |5 @" e
var strSafeProjectName = wizard.FindSymbol("SAFE_PROJECT_NAME");0 d1 v* b1 h3 I9 L0 Y1 l
strSafeTarget = strSafeProjectName + strName.substr(4, strlen - 4);8 ~, X; k- A( r7 K5 M
strTarget = strResPath + "\\" + strSafeTarget;* Q {5 I# _1 P* Y# @4 w9 g( e
}
/ n" {( T) ^. ~ else if (strName == "root.txt" )
& r% `+ @0 Z5 m& l* z& j {
2 ]* S+ v, I+ z- ]4 h strTarget = strProjectName + ".cpp";
2 W5 {4 t, X- b! A }7 L' j) l8 M. x L/ y3 s
else
}' P. F& I$ b$ k5 d {" U3 f3 z) x/ Y* ~
strTarget = strProjectName + strName.substr(4, strlen - 4);+ \/ S% L1 T7 O3 q
}
. d, i' L: Z- h0 z; L, p return strTarget;% X" i6 l: G9 {3 h1 x3 q
} R# A% i0 _6 J
* O' s$ t; w4 _1 o* S* f
switch (strName) E3 b" w/ @6 W. t; x
{" [2 s8 M$ I& d8 k6 X( ]
case "readme.txt":9 ~9 U: D# o6 _6 V
strTarget = "ReadMe.txt";! K Q S& E1 D" S0 X
break;
0 D" `8 }' V+ p8 M) N case "all.rc":
! A# q* n9 e; ]- H2 M' a9 C6 ?; n case "dlgall.rc":
5 E1 ]. l e$ C2 u strTarget = strProjectName + ".rc";
& _' [3 Q6 X! J! Z break;
1 ^0 _2 a& g) X case "dlgres.h":, O" d! e. l* z2 e/ a
case "resource.h":; j1 Z9 `3 g5 u: @& J
strTarget = "Resource.h";
: C3 o+ T. N$ M. l' d# [ break;, L& V" [9 O1 \% |: v/ A
default:
, I" x' _. @4 p; b3 J8 n$ h break;$ O: O" `6 B# q
}
7 o% e6 [! E' [7 E4 x- k, s8 M9 l return strTarget; ' _! B( G# ]" E- R% o* G; ]
}
3 | o" Q$ n' y; Z catch(e). w _( S( A* l3 O6 b4 Z
{
7 {( @7 v; G) {$ [2 p throw e;( k7 `6 r8 c: }) G0 u% _* p- M/ V
}
3 I# o I- k, y+ F3 c: O7 F# k- O}8 y/ y; [+ ~ s& t8 d
" C! w; [+ s! T
function AddSpecificConfig(proj, strProjectName)
0 \9 r/ p. E1 E{
" [% n9 f6 U; E# g8 }3 I' u2 y try
, A7 y1 d6 j+ E5 I {0 x/ n1 R" w) e0 A2 K, y8 z
var isDllApp = wizard.FindSymbol("DLL_APPLICATION");" i9 n+ [# C# O; E3 R0 S3 w' N
var isCxx = true;
+ B& {! ] ~8 e: {; E2 `4 ]+ \1 ]
$ N2 ~: A R) s: N6 U7 c& f# O var appType;1 Y( o; e; R! \4 |, ]6 z2 d
var appExtension;
3 S$ r3 D6 m( E& P J" i- X. A( P3 O6 N' M+ `
proj.ConfigurationManager.AddPlatform("x64", "Win32", true);
8 T" k) ?( F5 w8 U2 \# D; v- X, g2 n) j0 o
if ( isDllApp )
2 E( X0 E. o: C( K5 e2 Y% Q {; F6 J2 q: R- x' L$ I
appType = typeDynamicLibrary;
. x( d" X5 H$ i9 Z- ^ appExtension = ".dll";
7 z4 e1 t2 i( R7 a" x: U8 j }
' l% s6 I+ e, I r else5 S; @. W. \/ H* j. B( w1 J
{
, J P: L D9 L appType = typeApplication;
4 i# P3 p+ j0 |. q' A. Z2 O appExtension = ".exe";
2 x9 ]0 ^- a& K0 L }
' _2 J) J) U4 w( H* Y4 F' p4 f6 p" \6 {7 [
var linkLibs = "libufun.lib";. O$ f/ K; I6 @$ D- { B
linkLibs += " libufun_cae.lib";4 D! }9 l* a* W. q# u
linkLibs += " libufun_cam.lib";
9 Y* E( t: D1 \& c linkLibs += " libufun_die.lib";
Z3 I+ e5 p$ a linkLibs += " libufun_vdac.lib";
5 ?3 l5 W! R5 A8 J linkLibs += " libufun_weld.lib";$ N0 c, G+ r# U0 ?% t9 `4 H% g% K
; o4 V1 r; g2 x$ J5 h if ( isCxx)& ?0 K+ H2 {, ~8 A
{% d9 p, i. e+ p" `, u! x
var wshell = new ActiveXObject("WScript.Shell")) g7 a* b7 L4 u/ J
var libpath ="D:\\dsplm\\Siemens\\NX12\\ugopen";
* V6 w1 Q) C+ [$ N% ~0 {: Q; y var Fo =new ActiveXObject("Scripting.FileSystemObject");
4 u0 v P% w4 {6 d8 {- i5 z. m var FSo = new Enumerator(Fo.GetFolder(libpath).Files);2 T$ O( d7 H# b
var nxopencppName = "libnxopencpp";
4 N* P1 R+ D4 B2 {0 ]6 U for(; !FSo.atEnd(); FSo.moveNext())" ]. d$ {2 E7 }5 A+ T* o! a g
{' i8 J& O7 e s; N# l
if(FSo.item().name.match("^"+nxopencppName)==nxopencppName) //check if file name start with libnxopencpp4 ~' A( g. O6 Y. C- K( o. O
if(FSo.item().name.slice(FSo.item().name.lastIndexOf(".")+1).toLowerCase() == "lib") //check if file has '.lib' as an extension
) Z8 H3 g+ S' }# T- S' C5 @ {
9 g6 [4 _% K1 O1 w% Q. |5 [5 } linkLibs = linkLibs + " " + FSo.item().name;
) ^( q0 I8 b( v4 \" b. ~; ? o }
1 l9 G% ~: z' A }' B3 r( E: d7 `6 |: u8 s( C
}: r$ H) K, H& k7 w$ F7 R; K8 G) j
3 L8 ^/ J. w/ E+ {5 ?( P if ( isDllApp )
( f: v$ f2 p) m. x$ |, x3 A! R& G {
4 X7 x/ t6 b* t& ] F( f linkLibs += " libugopenint.lib";9 E1 P4 i4 U# i; r2 A+ x, k
linkLibs += " libugopenint_cae.lib";
: q$ U* \' D4 n0 }$ H0 W4 l# s. t9 ] linkLibs += " libugopenint_cam.lib";) v V" w# g. A
% q! E3 ?& E. y/ Q9 @6 k
if ( isCxx)
; a9 |( u. B+ W7 _+ }4 V0 A linkLibs += " libnxopenuicpp.lib";' G$ ]0 D7 B4 Y" w
}
2 o6 Q/ Z, v" i( ?- @5 b6 ~$ u3 N: [( J
//=================================================================
- F* f. J. Z6 I0 _/ s // Debug Configuration# r3 W* j1 n# o" f/ ~
//=================================================================' I; R& x/ s* X) l
//LRJ - add x64% r }( w+ @( `
var config = proj.Object.Configurations("Debug|x64");1 o' I5 y! J1 v# G9 N o9 G1 K' [
config.ConfigurationType = appType;
% D' ?/ ^- E- `) N5 P, A config.CharacterSet = charSetUnicode;8 j3 T( E! z5 b; _
config.useOfMfc = useMfcStdWin;# l" f, R/ E( f4 g
2 n! h# z# t! v" z% `3 a var CLTool = config.Tools("VCCLCompilerTool");' N6 o3 j- Q9 k
var strDefines = GetPlatformDefine(config);2 M- d1 l6 ^5 z8 H+ `
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";& a N' J/ C1 c% O% D! v
if ( isDllApp )
% r O- j* m( h/ d( | {
* G( ~ j( }0 W9 R" C$ x, K: N) X9 z strDefines += ";_USRDLL";
+ ]# n) a5 {5 A2 h: p* I }+ B3 m5 c2 a, A$ u) g" x' j% f
else
& r# c9 r! j2 p; s1 G: x) _! U7 m {
% T X; N9 p, z; B% y1 K strDefines += ";_CONSOLE";2 I3 E4 |, |9 b% i' `$ ^
}( e+ k) K0 Z# M" c/ E
! L' }8 Y$ I) R0 H1 A! W
CLTool.PreprocessorDefinitions = strDefines;
) `& V6 @8 j7 _0 H3 e0 N* f& K4 }' d1 ^9 G* j+ K* @* R
config.UseOfMFC = useMfcDynamic;- L8 m% H' b& f
CLTool.RuntimeLibrary = rtMultiThreadedDLL;
/ \( X( B8 U7 n( ]* w4 ^2 p# @8 }) d8 X8 w
CLTool.TreatWChar_tAsBuiltInType = true;8 s; q; f0 \+ f; o& B. N; }
CLTool.DebugInformationFormat = debugEnabled;5 D% O8 T1 \0 ?1 Y: X$ K4 Z
CLTool.AdditionalIncludeDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
1 a9 \% ^8 Q5 O: C) K+ v% t: M6 S
CLTool.RuntimeTypeInfo = 1;
* d) t, J3 y+ V* k: ` CLTool.UsePrecompiledHeader = pchNone;+ F, I* j- j: a; Y" u5 u! Q$ o
CLTool.AdditionalOptions = "/d1scalableinclude-";
: B3 j' T3 M3 w
3 f1 I4 _2 d$ K% t/ J//LRJ - change for X64 - add TargetMachine
* x5 M6 Z$ `6 F F. v0 M' W* i. z var LinkTool = config.Tools("VCLinkerTool");
' u1 C- X+ ~6 G& n9 s+ Y- \& i LinkTool.TargetMachine = machineAMD64;
, [3 N7 |, W$ f1 ]3 z* }5 X LinkTool.LinkIncremental = linkIncrementalYes;
7 z& J1 ^ \4 {8 H/ L LinkTool.GenerateDebugInformation = true;
- Z& z' L0 e' \; S& R/ s/ ` LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;
) J' I& O" k, F O, N8 A if ( isDllApp )
8 w8 G" ^$ C: P* i+ [& y/ j: n LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";- \$ C }4 s1 }$ w, _( ?. ]
LinkTool.AdditionalLibraryDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";. |% L H0 M. \& r2 D# s2 J) o1 q
LinkTool.AdditionalDependencies = linkLibs;% T9 R$ O4 B' T/ c4 j
LinkTool.SubSystem = subSystemConsole;* u; t. n$ J$ M! p4 L- s
//LRJ - add following line for X64 definition, H$ ` E- {1 ~5 r
dte.ExecuteCommand("Build.SolutionPlatforms", "x64");6 g% M y) @: G$ w8 e. S" J
$ V7 ~- e3 j: x) z/ s. u //=================================================================
/ \0 W. O. g$ u9 V // Release Configuration/ U2 K2 F/ E m: Y8 x
//=================================================================% {, G( @6 A8 Q2 P5 }
//LRJ - add X64 definition to configuration line
' K+ M/ X9 b8 S9 h% t3 @+ p+ i3 q config = proj.Object.Configurations("Release|x64");/ Q W; F8 H" `7 o( k. D9 x% \
config.ConfigurationType = appType;
& g( S: O5 F9 U m8 S) Z config.CharacterSet = charSetUnicode;
3 `3 H0 H* |2 h* S7 m, S( n/ p config.useOfMfc = useMfcStdWin;
( J, D5 d; c4 z$ |1 ^8 K0 ?, W8 n3 X/ s# ^* D5 S
CLTool = config.Tools("VCCLCompilerTool");
3 Y f* N+ ]. t( } strDefines = GetPlatformDefine(config);. O5 A: O% L) x5 J
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0"; k6 d8 S0 s+ R; V; D" x
if ( isDllApp )
6 _$ L8 a, p" E: R. l0 d3 T {# l4 s) b S( \9 _
strDefines += ";_USRDLL";* d1 C% P9 [6 Y3 E; o2 a
}
% c9 X2 [0 T3 j; }. V l else
& [6 i6 n }8 \5 G {; h( K9 p: E' p. M& ~) G& O: R: y
strDefines += ";_CONSOLE";
6 M# {) \9 e) ~; ?5 U$ X }5 U; }( e+ U1 s7 }7 e" N! W
* }' S) u8 S; E( v* N/ _: Q
CLTool.PreprocessorDefinitions = strDefines;9 h6 B8 b: d0 {- e7 v) Q
4 C/ u3 K. O5 ] config.UseOfMFC = useMfcDynamic;1 ^% Z& C% ?4 C [
CLTool.RuntimeLibrary = rtMultiThreadedDLL;
( c) o; e# D1 h; i, c
6 C9 u5 ^" {4 R9 v* }4 A# P CLTool.InlineFunctionExpansion = expandOnlyInline;
6 G" J- l( M, k! g9 Q7 L CLTool.TreatWChar_tAsBuiltInType = true;
6 f6 c! h1 c$ X4 k$ Z CLTool.DebugInformationFormat = debugEnabled;2 X( _$ I9 j6 p9 @
0 D& {( ~1 ^7 h# ]+ X& c
CLTool.AdditionalIncludeDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";
+ @: J9 N* b* i; a. h9 G. C6 s2 |' v
CLTool.RuntimeTypeInfo = 1;
( m$ x, K! L9 Z2 u3 \4 F CLTool.UsePrecompiledHeader = pchNone;
# g7 N8 E0 ^ R+ \) h //CLTool.AdditionalOptions = "/d1scalableinclude-"; d* ^- n" J0 v3 I7 n' P' x3 v) V
# |, f# K G$ O1 j
LinkTool = config.Tools("VCLinkerTool");8 A0 ]: I4 {1 a3 E3 E0 d# \& t: _
//LRJ - add following line for X64 definition7 ]1 t# P3 w$ b, P) j/ p5 {! m
LinkTool.TargetMachine = machineAMD64;
P) E0 \1 |) F, k1 O2 g7 I LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;
) q$ _+ W+ r* |' M/ a if ( isDllApp )
$ M0 i( Z% e( r; X" i LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";
$ r# f1 }6 q6 r* O LinkTool.GenerateDebugInformation = true;$ l: b: g u3 M: O5 J
LinkTool.LinkIncremental = linkIncrementalNo;0 D3 I7 n) v# n7 B
LinkTool.AdditionalLibraryDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";
6 P: R% X( k' M/ w& E: o LinkTool.AdditionalDependencies = linkLibs;1 k O. X* \; z& O- K; f% s a, l
LinkTool.SubSystem = subSystemConsole;
6 k4 l: {4 [0 W% \- j//LRJ - add following line for X64 definition1 n% S3 `* S# i( Z
dte.ExecuteCommand("Build.SolutionPlatforms", "x64");
1 F4 M3 r- W( o9 u4 D s }8 t/ `( P( z; v! ]
catch(e)
' W5 p% F8 L/ k {$ I" x- z1 ^5 I' e9 A1 z8 E% f4 p
throw e;0 S7 x8 T f. a& T
}7 P# D# d9 n; t4 p
}
6 H- C7 }& ~* T* }1 a# m# |6 E9 m9 B+ x2 ?
0 s. E% \2 g! Z) U2 j1 g
, e. {0 \( f, j) H |
|