|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
NX12.0 二次开发使用VS2012 报错解决方案( j% n+ U" S# z0 h( H
严格的讲NX12.0需要使用VS2015进行开发,这里说下如果你是低版本的解决方案,但是不推荐!( x" r* L1 y4 V0 t2 q( L
(1)安装完后,点击Open Wizard 告诉你创建项目错误
7 Y3 S4 q8 L" C" J' |2 h
8 |) g0 o- h. N3 P5 x
这种问题就是编译器版本不符合官方的匹配导致的,更改方法很简单 # E( X# D, ?4 H" H6 V4 b
打开 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcprojects下的NX12_NXOpenCPP.vsz 将' P( z! J& w6 h: _ y
Wizard=VsWizard.VsWizardEngine.14.0 中的14 改成11 也就是对应的VS2012- D) B* T* y6 ]: p
( e! x, Z( C% {; S6 Q6 {; M4 A这样创建的对话框就可以出来了!
5 Z. X8 p9 _5 L1 D(2)你可能还会遇到路径错误,path not found, 建议对这个文件进行修改,尤其是你有多个版本存在的话,一劳永逸
: Q. g: V8 B- ^C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCWizards\NX11_NXOpenCPP\scripts\1033 下的default.js 文件" ]' h4 c; b7 P
修改里面的环境变量路径,注意路径是双反斜线 \\,参考如下!
3 j% Q0 f1 y& t$ D4 c* i) @) N1 K, m# h7 X1 r3 \' `
//@<DEL>@ TEXT ENCLOSED within delete markers will be REMOVED* l0 n3 x8 p+ O- N- l& m; y9 [
// 09-Jun-2012 Frank Berger Initial Release for VS2010 based on "NX8 Open Wizard"
6 m) N* W- V5 E# j// 31-Okt-2013 Frank Berger modified for VS2012- A- v) I: W( b' ^. a8 d
// 13-Feb-2015 Sudhir Pawar ARCH:11320: Added libufun_die.lib,libufun_vdac.lib & libufun_weld.lib
$ ]7 d9 M" a0 }% o: m8 \' J5 ^' a1 c// 21-Dec-2015 Purushottam Thakre Fixed PR#7567548: Call DeletePlatform function to delete 'Win32' platform.
/ E: ]* h8 u+ e2 ^% l% }9 i// 08-Jan-2016 Prabhakar Mandlik Fixed PR#7588129: Added /d1scalableinclude- swiTCh.* Y6 l6 c/ t# s: O# J
// 10-Feb-2016 Purushottam Thakre Fixed PR#7630769: Reverted changes done to fix PR#7567548 which is causing regression( ~( p; w3 _2 I
//TEXT ENCLOSED within delete markers will be REMOVED @<DEL>@* R& O1 e5 Y7 y0 u) N; ~+ G
6 v% ]1 ?6 Z% x/ S' M$ @% Y: X+ Z9 A
function OnFinish(selProj, selObj)
8 y# ~" r3 Q2 j4 ~6 M5 H3 R+ G{
Q% H5 g* ~1 K# X4 l try
( I5 i+ ?! @$ d {
6 e2 Q& D H6 o; y5 N0 J var bodyTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "body_template.txt";. q: J2 j5 N; K' |5 z: S
var bodyTemplateText = wizard.RenderTemplateToString(bodyTemplateFile);
3 d0 J2 Q% d9 J/ \7 _ wizard.AddSymbol("BODY_TEMPLATE", bodyTemplateText);
5 e0 O L" p" y8 J6 Z, f( W( K7 r' l+ w! F% G
var entryPointsTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "entry_points_template.txt";0 T5 w5 \$ z. y6 `
var entryPointsTemplateText = wizard.RenderTemplateToString(entryPointsTemplateFile);' e- \6 w4 V( d0 Y6 D5 Q! Y
wizard.AddSymbol("ENTRY_POINTS_TEMPLATE", entryPointsTemplateText); E6 r' u- o0 t( A2 m
7 A, G4 t* g& \ w
var unloadOption = "UNLOAD_IMMEDIATELY";
% P* m( n: r" c h if ( wizard.FindSymbol( "UF_UNLOAD_UG_TERMINATE" ) )
8 C; g4 ~2 E- m8 x: o4 [& V {
7 c! d4 ?0 Q" A* ~& ` unloadOption = "UF_UNLOAD_UG_TERMINATE";
" ~* T. W% t# G }
& r4 N$ r, s, o# {+ @6 k else if ( wizard.FindSymbol( "UNLOAD_SEL_DIALOG" ) )' S6 I. }( I: d3 b: E# Z3 |: C
{
( A1 t7 L1 [2 j' ^9 `. M+ Y unloadOption = "UF_UNLOAD_SEL_DIALOG";$ O9 P4 I6 ^" V# E ^9 l
}. o. ^& p! N9 O+ }1 K* h/ {
wizard.AddSymbol("UF_UNLOAD_OPTION", unloadOption);( {* V/ G1 l8 ]
, @% N$ W: l% d" @' B; L8 J0 x* U6 C) ~5 R
// Assign the project path and project name6 u' Y& r; {- i& c- u y T" t( e
var strProjectPath = wizard.FindSymbol("PROJECT_PATH");; J) C" o5 F; Q/ u4 d% K; b- L
var strProjectName = wizard.FindSymbol("PROJECT_NAME");
8 {# E# Q2 w7 J$ {6 A8 ^3 z var strClassName = wizard.FindSymbol("MAIN_CLASS_NAME");
' g: Z* B H6 J8 ^ if ( strClassName.length < 1 )
% {; g8 ^* m- S! ^! j, d {
$ e Y$ l [% A wizard.AddSymbol("MAIN_CLASS_NAME", "NONAME");/ V, f; k( x8 F/ A
}9 D2 C2 g' ]0 b0 H' W
9 }8 J- P& N8 k9 q- f7 J$ _
// Create the Visual C++ project and call it "NXOpenProj"3 Z+ B: ]2 X6 @: N, N
selProj = CreateProject(strProjectName, strProjectPath);
6 b; y% s6 H, g2 A// selProj.Object.Keyword = "NXOpenProj"% _& N6 T4 m! ^) t$ k
! h6 c l: @# C2 }. r
// Add common and specific configurations to the project9 Q+ B" ]! z6 j
AddCommonConfig(selProj, strProjectName);/ [, s V6 s$ }/ Q( c% I
AddSpecificConfig(selProj, strProjectName);4 e' f. T% {1 w! z/ M# {
// selProj.Object.keyword = "MFCDLLProj";
+ a5 F/ e1 K9 [6 S
- {4 J$ r; {9 {( f7 O3 y- W //Set the project filters
4 x8 C( R1 f$ c! l9 A% H SetupFilters(selProj);- `3 I$ s! s# K5 {$ P: d
^8 }) N. T/ d$ C. i$ ~
// Add files to the project from the project's Templates.inf file" Q( ^$ C- j! e7 j x7 a. s; D
AddFilesToProjectWithInfFile(selProj, strProjectName);
" k$ R) D, i# F; e2 z! d: D k7 \+ I3 g) ~& Z( n
selProj.Object.Save();% D d% F1 @0 ]6 Y& v% w
}2 a+ E* a1 f3 F) X6 A
catch(e)
. N" S$ p$ u i9 k# { {
8 y0 n" ~& d1 v; Y; R* v if (e.description.length != 0)
) B. h4 \4 L7 J( E$ H SetErrorInfo(e);
. F) G) J6 T' n& ~! q: Y return e.number$ V" v. C. J" Q
}
1 \2 Q3 R/ r1 r" g+ F# {6 o4 `( e}
8 d- W3 d5 T' \5 H* g" O
% r$ f6 y/ n+ K5 @8 K* h- Bfunction SetFileProperties(projfile, strName)
|- U, |1 H: M9 e" n{+ D2 H0 H: F3 B2 m, i( |! i
return false;! Q2 W; R4 ^( J) ^% I
}
% I b0 I. H7 b0 n7 y* R% }: G2 j5 l6 }, ?4 @1 j. Z3 c
function DoOpenFile(strTarget)
- j, I8 B, N- g- o8 ?7 a$ H{) s0 i, ^' k( S4 G b
return false;
! a3 ^3 j' q8 `}
) j; s2 o# z9 ^$ W! Q( m8 X2 ~4 }5 G/ @: D( A3 }
function GetTargetName(strName, strProjectName, strResPath, strHelpPath)
5 [$ ?1 F5 y- |5 K- W/ d, k% O{; R: f+ i& O( `& M
try* E7 q$ o+ ^4 {0 G
{9 B8 {- U* y9 l6 X5 j3 X' K2 G# k
var strTarget = strName;
- [* O# a4 u) c* w( f; Y if (strName.substr(0, 4) == "root")- i# ^. D# c/ V4 R8 ?/ Q
{
2 A, w- G: B$ M, k var strlen = strName.length;5 V7 j( {/ Q, u' A3 z, ^
if (strName == "root.ico" || strName == "root.rc2")+ T& D1 G/ i- U
{9 o/ I( a% Z0 W$ d( M* H
var strSafeProjectName = wizard.FindSymbol("SAFE_PROJECT_NAME");# p+ z0 o! |+ `" v* W* v; l
strSafeTarget = strSafeProjectName + strName.substr(4, strlen - 4);
# k/ A2 t2 P' Z& G: j strTarget = strResPath + "\\" + strSafeTarget;
]. Z4 S& ?( v3 [/ ^ }
5 O8 Z5 W$ P: U4 r A5 Q( k2 O else if (strName == "root.txt" )9 F* l4 z& i3 J4 S& y. V
{
7 O- b- H; i X) p8 [ strTarget = strProjectName + ".cpp";
% Q' C1 r$ B* Y$ Q4 J }4 @# o6 k- o2 w# i5 K
else" a3 i- _, I" h) ^
{: u3 |* m- J6 }6 o& M
strTarget = strProjectName + strName.substr(4, strlen - 4);" X8 Z: G' v8 ?: K; ^: ^
}
$ x6 N- B, W5 S/ j return strTarget;
& L! S5 U# n. i }
& B: h: Z( a. ? V7 Q- ]
4 d- y/ Y! C, |+ m0 J; x switch (strName)
5 S6 u2 b5 |1 z4 c5 f* p {5 H- G c2 V& M- E8 Q1 h
case "readme.txt":3 Y7 P8 h8 x3 M# e$ w
strTarget = "ReadMe.txt";
4 D( Y4 S& U; F break;
` |7 A+ O' ~: A case "all.rc": y/ B) y h* U3 ~9 r
case "dlgall.rc":% h) `3 U* q4 |
strTarget = strProjectName + ".rc";1 q# ~; y( g0 R, S7 C6 S
break;' S% t( d) u/ N5 r
case "dlgres.h":
_ L% L' }$ `9 V case "resource.h":$ |2 ^3 |) `0 l/ u0 k( v7 Y0 g4 e9 i6 m
strTarget = "Resource.h";
3 c- K6 u7 W) }' T) ^' { break;
" f1 t4 r" X, u# u, D! B default:- V/ G) K4 ^* b# {9 ?
break;
; w3 A1 V7 i7 { }$ d+ G8 V+ T6 t! O& N5 Y& b
return strTarget;
) l. o+ ^ K2 k; F6 ` }
! H$ ^3 I# l) z% V catch(e)
; w: M5 N# r* I& B: e {* Z1 }. \0 A {+ R- u
throw e;
3 _2 \0 q2 ]% d# e8 K }
. U% Y; `# e8 m3 M4 t% P}0 S* M2 F6 s( h- G$ t
N2 g6 I/ k S, m) Ufunction AddSpecificConfig(proj, strProjectName)9 d# U5 U1 m& j8 y# g1 C" b6 |
{
) x0 X6 s% G: ~) e$ J2 T try
+ v8 {% h* d, F& o! N {7 W8 k* f8 ^5 t3 z+ Q. B# k k5 L
var isDllApp = wizard.FindSymbol("DLL_APPLICATION");
' k+ e, R7 ~7 c1 f3 C! b0 F) I var isCxx = true;8 a& N- `7 n" Z* c
' J! N6 e! S) z var appType;7 [" }8 w* i8 a2 w* }/ M# S
var appExtension;
. H/ n: F5 g( r) A" j# Y3 Z. J% p0 P
proj.ConfigurationManager.AddPlatform("x64", "Win32", true);- F9 l. G2 h9 t H$ n ~' l
4 P! g X/ A$ @7 [3 r- W7 e
if ( isDllApp )3 {% s l8 q+ |% p
{- e' e5 Y( I3 q! X5 y. k
appType = typeDynamicLibrary;9 q& q8 u7 I, g, {9 ?4 b9 J
appExtension = ".dll";# _0 P4 C' R/ E' c
}
9 L5 K3 G. \/ j9 q. v else6 a$ y8 k4 p- u- K, J" {
{( c7 H! A: M+ z* |6 B u3 ]& s
appType = typeApplication;
k7 B1 M- p' ^3 Q3 d appExtension = ".exe";% N6 Z2 j5 P3 G/ r s9 @6 K
}
D9 Q q! L$ b( w( Y
4 r, N6 J! H, R2 a. c8 ?& ?0 A$ C var linkLibs = "libufun.lib";3 O% J P' B7 f+ b: W7 k J* n
linkLibs += " libufun_cae.lib";5 p2 |7 z0 }9 i# o1 ^' a
linkLibs += " libufun_cam.lib";
' I) ^+ P/ b+ Q. B2 B, k2 L linkLibs += " libufun_die.lib";
8 W/ m1 z+ r8 G2 D1 z linkLibs += " libufun_vdac.lib";7 |2 Q( f# L& u1 _' n* Q
linkLibs += " libufun_weld.lib";9 k; `3 V/ J+ K& t! C( T- [
. R) B e# P% F3 f+ h# V1 k if ( isCxx)
8 a3 F. E3 c4 M/ i: z; b {) n5 Z7 {& p4 o# c G8 W% u
var wshell = new ActiveXObject("WScript.Shell")( [" ?( Q2 P5 ^: a0 V# b: n
var libpath ="D:\\dsplm\\Siemens\\NX12\\ugopen";
7 J: P5 j( }" o9 j var Fo =new ActiveXObject("Scripting.FileSystemObject");
/ c6 P8 z' @$ |! ^: _4 W& z var FSo = new Enumerator(Fo.GetFolder(libpath).Files);- {% a5 X: @& |% i7 \# t
var nxopencppName = "libnxopencpp";: Z# O+ s! _9 N D( G
for(; !FSo.atEnd(); FSo.moveNext())
; W A. Z, _! M4 {* L* f {. k# E% y$ |% [* F( k2 i( K+ H6 C
if(FSo.item().name.match("^"+nxopencppName)==nxopencppName) //check if file name start with libnxopencpp
4 v% p! K* s0 V1 ], x& _. Z if(FSo.item().name.slice(FSo.item().name.lastIndexOf(".")+1).toLowerCase() == "lib") //check if file has '.lib' as an extension
5 L8 J6 l( Y- Y3 y! ] {
& M% ~0 u$ k. t! K0 Y5 g6 d% I linkLibs = linkLibs + " " + FSo.item().name;
, U4 e" M" h& P" A& w$ d8 i }
, v0 x# S" t$ y. D3 d+ o+ j }
! Q5 P) H2 R' I9 K& J# S3 b }' r. s' S+ F' V% E3 F6 n/ b& V8 d
) x/ T. c9 H: W, @( A- S! ?
if ( isDllApp )
7 s% t8 C1 U0 R. y) a( M {
, X z) x/ B4 b2 I+ k% Z, c: ` linkLibs += " libugopenint.lib";
2 h& `/ b6 p) m7 {: X& h linkLibs += " libugopenint_cae.lib";" W8 T2 N O4 T" t% R* s& D4 H! i1 b
linkLibs += " libugopenint_cam.lib";
T9 F* k3 x$ z" u( V8 i& y* ]9 @4 g8 u& [5 \% g
if ( isCxx)
6 \* |5 @5 _: f \: Q$ \; _$ | linkLibs += " libnxopenuicpp.lib";) }' l$ S+ Z% o4 x
}* X* L2 F9 g- m- c; G7 A. c/ ]
& @: w& `# F( j& q9 B; w //=================================================================5 H0 ?, t. `; |' f8 j. }; p( O
// Debug Configuration2 c, |. N, Y1 y$ q5 F; i& v9 k
//=================================================================
. [& |" _' l' n+ e1 a- q//LRJ - add x64 x `% x$ X+ l5 J, n
var config = proj.Object.Configurations("Debug|x64");- {# V) B$ t( z1 @) M$ X& z5 c
config.ConfigurationType = appType;
3 ]6 M, G3 T* R' e config.CharacterSet = charSetUnicode;3 O. R1 @& f! ^7 g$ [& I
config.useOfMfc = useMfcStdWin;/ x6 @+ R) q8 C% P% k6 c
3 K4 ^ }# S4 t# F! Z/ U var CLTool = config.Tools("VCCLCompilerTool");
2 j) G& T @* z5 V x var strDefines = GetPlatformDefine(config);. n' ^: [* v Q& B# {5 G, m
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";
8 | t# m* p* v) B7 q/ {/ n9 A if ( isDllApp )
3 n& n7 w/ s: b7 J! w2 i$ O$ I. I, N {0 \! {- x2 ^* }; j: z" z% K
strDefines += ";_USRDLL";9 i5 h6 l3 v; k5 U
}
# }/ m1 Q t% n" X4 M4 g3 s else
& z1 [, o% L0 ~ {7 O7 e# G0 A& ~! u8 a# Z# d' Q
strDefines += ";_CONSOLE";
4 {7 w, T) w7 o8 @: b, y8 N }
5 T# z3 c- C' [; q, \& F+ t( }" E4 q% R. l
CLTool.PreprocessorDefinitions = strDefines;% n! w% b( a, m/ f
- U0 k; z" Y1 t. O( B; ] config.UseOfMFC = useMfcDynamic;
7 J; J+ l8 w3 T/ ~8 O9 K CLTool.RuntimeLibrary = rtMultiThreadedDLL;
) k" p6 K, X# d& e Z3 D% c% }# q9 c" }) L1 q! k- S4 D
CLTool.TreatWChar_tAsBuiltInType = true;
3 ?8 g+ P! M5 q8 {* V' y CLTool.DebugInformationFormat = debugEnabled;
1 s& \) `0 |- O9 x CLTool.AdditionalIncludeDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";" t+ I0 v- h: }3 }! ]% ~. A# {" o# Q
: R# B' U% C8 W+ x: @ CLTool.RuntimeTypeInfo = 1;
' `9 z+ k/ v5 X) A CLTool.UsePrecompiledHeader = pchNone;
% R/ j+ ^! w8 ~5 ? CLTool.AdditionalOptions = "/d1scalableinclude-";
$ a( Z# Y( A0 d1 k( S3 {: y' W- P* T* {- i9 `
//LRJ - change for X64 - add TargetMachine
9 [1 X7 l& |+ m6 Y% y1 d+ A6 w1 l var LinkTool = config.Tools("VCLinkerTool");3 T0 X" P3 \# Z
LinkTool.TargetMachine = machineAMD64;+ r; X, ~' Z7 U
LinkTool.LinkIncremental = linkIncrementalYes;6 G4 d9 a q& p0 b) h3 B
LinkTool.GenerateDebugInformation = true;
, l$ K( R ~2 h LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;0 Q) w6 Q& p* b! K) ^
if ( isDllApp )
/ y6 n; `+ j# E& _; n) f LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";$ L$ J( k4 m0 f; n
LinkTool.AdditionalLibraryDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
; E' k& }6 W# c7 V1 z/ F6 Q LinkTool.AdditionalDependencies = linkLibs;: t' I$ r, C0 s$ ?7 Z
LinkTool.SubSystem = subSystemConsole;9 {5 k% M( ` `+ Z( B `; Y0 z2 y
//LRJ - add following line for X64 definition
" B% ~' W! z8 W; @! f0 J1 f1 F dte.ExecuteCommand("Build.SolutionPlatforms", "x64");
+ a$ K* e+ U" L* _( X: k
3 R ^, E: [) ~/ L2 k' d7 \ //=================================================================2 `) @" f* A9 ?6 B; P9 o9 k2 o
// Release Configuration
# a3 Q1 \2 e, C! p8 n6 v //=================================================================# C6 m, ~ ^1 X2 r* R: a
//LRJ - add X64 definition to configuration line/ f& h6 k- T) @3 ]* b5 z
config = proj.Object.Configurations("Release|x64");
: w+ r/ Q: A8 D9 n9 }5 I config.ConfigurationType = appType;
$ Y( V5 k* [: Y, K: p. j7 d+ C6 P config.CharacterSet = charSetUnicode;
: O% G" d) ^6 l1 A6 v3 X$ T b" K config.useOfMfc = useMfcStdWin;
# C# ^7 S: ]2 \: n7 Q: V" V
, w# c) S4 {5 Z- s# C) L) r CLTool = config.Tools("VCCLCompilerTool");6 B, {6 S6 s9 a
strDefines = GetPlatformDefine(config);
9 Z: d9 L% A: t `' E strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";
, L0 K* Z1 s3 h8 g0 G3 B, N H2 G% q if ( isDllApp )
3 K6 Z3 I$ l2 ]( N. }/ ~ {
8 a+ ~ b# H9 e! e6 T3 P strDefines += ";_USRDLL";" h; J9 N/ ?1 l- x0 v
}
) h1 P: s5 y5 I6 d; ?; w else
. L+ f/ w( v) h: q& j1 l {
. H' _/ U8 X' c, a strDefines += ";_CONSOLE";% L- }; {! X, r8 ~1 S
}
' `, ?1 e4 i( N6 d8 R- T: w0 u+ }2 R9 J. x; c+ a
CLTool.PreprocessorDefinitions = strDefines;& Q$ u8 a6 D7 Q2 a. o; s; J: _
5 [' r6 t% B$ h+ I
config.UseOfMFC = useMfcDynamic;
6 }- W3 z$ C3 m CLTool.RuntimeLibrary = rtMultiThreadedDLL;
. x7 |* q9 t0 [4 U7 N
I1 T6 a" X! g$ Q CLTool.InlineFunctionExpansion = expandOnlyInline;4 W. y# o, Q8 O1 u( F2 p
CLTool.TreatWChar_tAsBuiltInType = true;" [! l# u5 Y1 D: C5 W2 N
CLTool.DebugInformationFormat = debugEnabled;# o! V, ]2 R5 Q6 d% b* |
, _+ a( p; E: |
CLTool.AdditionalIncludeDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";
- F' _- ^0 K! H- g* R! M0 K
w& U h0 d, \ CLTool.RuntimeTypeInfo = 1;
* s9 W4 q3 t- N# t6 g j CLTool.UsePrecompiledHeader = pchNone;3 f3 C+ ]: F; `
//CLTool.AdditionalOptions = "/d1scalableinclude-";1 W1 V' Q9 L. t
) ]9 d: {9 T) S5 O LinkTool = config.Tools("VCLinkerTool");; n7 b9 m: x$ a5 ^8 F9 e# ^8 o
//LRJ - add following line for X64 definition* K. R! V& D' q$ R
LinkTool.TargetMachine = machineAMD64;$ y/ a G2 u* [# k3 u. X' j
LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;. u+ ^' Q9 `+ e1 K$ B
if ( isDllApp ); D6 T7 V* H) Z, _: j& V
LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";
5 G/ z0 n1 `2 ] j( M LinkTool.GenerateDebugInformation = true;) R" ] [0 ^! A0 |; A8 z
LinkTool.LinkIncremental = linkIncrementalNo;. P7 @3 N* M3 l/ `6 f% O9 z6 l7 m$ e
LinkTool.AdditionalLibraryDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";& h0 B7 W/ l6 B/ P: |
LinkTool.AdditionalDependencies = linkLibs;
7 p7 j" {: Z2 [* l; L LinkTool.SubSystem = subSystemConsole;
. W, r% t+ ~3 G2 L' E//LRJ - add following line for X64 definition
5 B& F- L( R% z7 a$ h3 U: p dte.ExecuteCommand("Build.SolutionPlatforms", "x64");
$ A3 G" q5 x1 i' E! p& c7 S. L }
; J$ }) k3 H" c& | catch(e)( J5 K2 @- R* g+ X% M `6 s
{7 g/ l' g1 p0 c5 f
throw e;
: _. R' w) t+ g9 h% y7 { }) H! |6 h) h. E5 s5 `% E
}1 V/ T4 M7 w- g% {/ a
* q- ~; t* Z6 ^6 R6 G) G( B% Z% q- F# w1 I7 S
: E3 y8 |7 B- K, f4 c8 |
|
|