|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
NX12.0 二次开发使用VS2012 报错解决方案; w$ A* i5 C9 }6 E
严格的讲NX12.0需要使用VS2015进行开发,这里说下如果你是低版本的解决方案,但是不推荐!
' _0 G; _4 k6 H4 a6 @2 w(1)安装完后,点击Open Wizard 告诉你创建项目错误
$ v8 q' J. l' b2 Y; c3 y
5 P! S+ X# q- p/ g) n0 D
这种问题就是编译器版本不符合官方的匹配导致的,更改方法很简单
* G+ x+ A! v) p1 K$ p8 e打开 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcprojects下的NX12_NXOpenCPP.vsz 将
+ K# X8 F5 Q n( Y: bWizard=VsWizard.VsWizardEngine.14.0 中的14 改成11 也就是对应的VS2012
, ^/ `- l' J" w. b' B: m
1 q4 \- }" M7 |, ~( J& w
这样创建的对话框就可以出来了!8 g! N% m6 G/ X2 ]& b& t
(2)你可能还会遇到路径错误,path not found, 建议对这个文件进行修改,尤其是你有多个版本存在的话,一劳永逸
* r# q( o+ G& U# hC:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCWizards\NX11_NXOpenCPP\scripts\1033 下的default.js 文件; w) B' O/ k, m; w
修改里面的环境变量路径,注意路径是双反斜线 \\,参考如下!
# F, T- f( q0 e$ f0 n0 b7 d) ^& O# c5 y
//@<DEL>@ TEXT ENCLOSED within delete markers will be REMOVED& N- P4 z* V' k& E# S8 X$ q, V
// 09-Jun-2012 Frank Berger Initial Release for VS2010 based on "NX8 Open Wizard"
2 W- V+ @* [8 b// 31-Okt-2013 Frank Berger modified for VS2012
# n# p7 o: i7 L" B# I- i% U1 }// 13-Feb-2015 Sudhir Pawar ARCH:11320: Added libufun_die.lib,libufun_vdac.lib & libufun_weld.lib
% Q8 E# {6 r* W z0 B( o' n9 l// 21-Dec-2015 Purushottam Thakre Fixed PR#7567548: Call DeletePlatform function to delete 'Win32' platform.
- E6 l9 e/ i1 \- H2 g8 v// 08-Jan-2016 Prabhakar Mandlik Fixed PR#7588129: Added /d1scalableinclude- swiTCh.$ y `/ @& C U z$ U
// 10-Feb-2016 Purushottam Thakre Fixed PR#7630769: Reverted changes done to fix PR#7567548 which is causing regression! x5 R- y" H' L: L
//TEXT ENCLOSED within delete markers will be REMOVED @<DEL>@0 w0 U2 t- r6 }- P
s9 f! |; u0 C, y- f6 jfunction OnFinish(selProj, selObj)4 i+ w; m4 P0 T* z( l1 z3 l
{0 q% ?' _& w4 l, e; K" T
try
8 Q* U! x; y& G- ]! S$ J {4 K7 h# x1 u# b) R* c- ]$ o
var bodyTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "body_template.txt";% n# o: H3 e3 U, F& e
var bodyTemplateText = wizard.RenderTemplateToString(bodyTemplateFile);$ e7 ^# ^% n- T0 ?
wizard.AddSymbol("BODY_TEMPLATE", bodyTemplateText);3 x5 p1 p% F9 v. b( V- g/ q
( C Q4 R; A5 _6 ~. q var entryPointsTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "entry_points_template.txt";
- C* }' K1 A3 V0 W7 W8 L e var entryPointsTemplateText = wizard.RenderTemplateToString(entryPointsTemplateFile);
6 S2 y8 N6 X1 t X6 x/ t! g wizard.AddSymbol("ENTRY_POINTS_TEMPLATE", entryPointsTemplateText);
: X2 N& b5 v- k3 @ ]' }2 ]4 `* @- p8 s/ J+ |' k
var unloadOption = "UNLOAD_IMMEDIATELY";- i$ \7 p5 |$ q; |
if ( wizard.FindSymbol( "UF_UNLOAD_UG_TERMINATE" ) )5 T. G# }8 V' d8 ~8 l
{
( c7 H- m# E5 a s+ {3 r2 s unloadOption = "UF_UNLOAD_UG_TERMINATE";
! a4 Z7 |& O3 r+ o }
; A8 q' L; p1 W+ N& t Y/ O else if ( wizard.FindSymbol( "UNLOAD_SEL_DIALOG" ) )+ [! B7 L+ r) @+ A; f$ v
{
8 P) E3 b5 I! c9 v m. w unloadOption = "UF_UNLOAD_SEL_DIALOG";
' Z4 U3 V" _3 n0 q/ @" E }
% W% r& B, d( j1 j( l wizard.AddSymbol("UF_UNLOAD_OPTION", unloadOption);
9 [! i- P+ C" c( ?7 O+ ]( D7 y9 t; ]8 H0 ]
0 V' @' V' ~. Q" _# _5 g // Assign the project path and project name
}+ B4 m. Q% _" s2 E' O2 a1 h1 m8 o var strProjectPath = wizard.FindSymbol("PROJECT_PATH");
; W- [. ]. o) x/ a* c, y var strProjectName = wizard.FindSymbol("PROJECT_NAME");
: e. ?' T9 \' L4 E7 M/ ? var strClassName = wizard.FindSymbol("MAIN_CLASS_NAME");
/ ? l8 m( v$ x+ [5 L0 z# b' |3 l9 \ if ( strClassName.length < 1 ) . X Q* B! A: U! @
{
1 K' ~. J- M9 z/ K0 q6 C wizard.AddSymbol("MAIN_CLASS_NAME", "NONAME");
3 n) L3 H# }4 y! z; [: J4 r& | }
" t \5 Y! j3 B& r: ]. r
o3 M; {- Z! `; ?$ p' N // Create the Visual C++ project and call it "NXOpenProj"
( _3 i& D( ]8 L2 Q: V selProj = CreateProject(strProjectName, strProjectPath);
' [1 s1 x' \) P- {" l9 c; H// selProj.Object.Keyword = "NXOpenProj"
& @2 s8 n" y7 i5 h$ [- B( m1 W7 L* H4 } S$ B9 [$ e; t
// Add common and specific configurations to the project: v q, }, E: D n0 u9 @
AddCommonConfig(selProj, strProjectName);
8 j2 q4 b6 V5 p0 V* D7 k I: _ AddSpecificConfig(selProj, strProjectName);$ c8 d, X0 R- |/ d# f
// selProj.Object.keyword = "MFCDLLProj";7 a4 {8 Y" v. w4 z P9 S. S
% ]- K( @" j6 d4 E) @9 r
//Set the project filters
( u$ x2 d1 t" _3 u, t' | SetupFilters(selProj);
0 |+ l- i5 \ T5 W9 o1 x3 V% ? ~3 y z/ V
// Add files to the project from the project's Templates.inf file! K; O8 A4 x+ A6 @9 h: |1 J! X
AddFilesToProjectWithInfFile(selProj, strProjectName);; j- s5 C8 {9 {% b7 D
2 Y3 g! q5 u8 V5 P8 B4 W: c
selProj.Object.Save();
- v0 Q& e$ ?2 _+ P# ? }
; n0 H% [5 m+ K/ i catch(e)
' E+ u- O6 z8 z! h: g: G, J% K {
/ q9 |+ f( w7 u if (e.description.length != 0)
C' c4 l! a6 O, Q4 G: D* q `5 Z SetErrorInfo(e);) c9 h8 _, q( |1 V6 K: v
return e.number# A3 Y1 l( \& [
}" ?7 ?- @% t3 N
}
. ~9 C) }# X" x8 [2 U+ T1 b" \" z$ W/ H) i. [( i
function SetFileProperties(projfile, strName); K- `: ~' v) q @, @, U' b
{* |' y0 } v( x; G
return false;! p5 m2 u" v9 _
}
9 J7 f0 p8 W1 [& q5 ~' X
! k; |- {2 e3 ]1 u3 M. dfunction DoOpenFile(strTarget)6 ]/ }5 O1 e' K! c8 v( W6 @, y! }
{
" L( }4 ?7 m" a& k# x" }5 z4 d return false;% M8 S. y/ C2 p9 N6 E
}8 l5 n0 m% d, t' C7 _, K2 m: u
4 N5 j2 C- K* `. w7 m
function GetTargetName(strName, strProjectName, strResPath, strHelpPath)" o6 X2 X& m* D) M% t
{: K8 V+ ]' g( `# {" @
try
' @' w5 j( H* b* ^ {
) I6 B3 a, `# L0 b+ { var strTarget = strName;0 z, ?3 Y9 Q6 l$ y% N) \( M! K
if (strName.substr(0, 4) == "root")
, |$ V" t/ f; v9 @9 } X9 @/ t1 u0 K, V. V {
; L- }5 p9 R/ R var strlen = strName.length;( o- l2 { E3 ?( x2 n
if (strName == "root.ico" || strName == "root.rc2")
: _. n' D& @0 ^& B( e {
5 N; M S4 A; V var strSafeProjectName = wizard.FindSymbol("SAFE_PROJECT_NAME");$ Y5 I/ k+ C7 f% x! @7 k: t3 k
strSafeTarget = strSafeProjectName + strName.substr(4, strlen - 4);
9 e& K. a3 C) A+ `4 a5 @) ? strTarget = strResPath + "\\" + strSafeTarget;
, ?! }/ }: ~: _6 n8 R( U }
2 K0 k* v2 K, P8 U4 a$ A5 r else if (strName == "root.txt" )/ ?$ h) J/ a% U) i3 }* M8 t- e5 M3 K
{
6 @% T: p6 g- b strTarget = strProjectName + ".cpp";
+ ?" I9 y: \7 ?6 l X' }$ q }2 F0 c6 E1 [/ Q4 y2 t# z, G
else- [/ k, o, w! ~. |7 R( z$ |6 Z
{
& _6 Q3 i& i$ \& v, }+ A strTarget = strProjectName + strName.substr(4, strlen - 4);
) ?" k- e Y. Y5 [3 P }
$ U3 Z, W- o$ a1 G return strTarget;
- t$ p& X/ U* T Z; x }/ _- E, a: G1 e# D5 Y
9 R; ]2 D! u' a* q0 G
switch (strName)
( p) X) a; Q0 k. c {
) e0 r$ N7 `# f* x) U case "readme.txt":2 Y; G! {- v9 w' D1 h
strTarget = "ReadMe.txt";( K! L5 [+ x4 c# M C- o
break;
1 E4 D6 t+ T3 T* S6 r case "all.rc":8 {1 A7 C) F* W& t8 d' l
case "dlgall.rc":) W$ N$ u+ d7 `% ^' l+ S
strTarget = strProjectName + ".rc"; }5 c. A/ }$ y) W1 g
break;
1 n1 Q/ \" d7 y0 ?( s case "dlgres.h":% t3 t% V+ u) b, A3 k1 @0 M- Q: t- ]
case "resource.h":7 Q6 f% p) E: X2 k. G7 S, Y
strTarget = "Resource.h";$ @0 U6 y8 F: x* f
break;2 L, ]. Q @" v" t w6 ]4 M
default:
! L) U: j: f5 u; q- N* b# d$ y' H break;) Z& g1 p, Z6 c3 m$ N
}
4 Q( v3 b6 `; f8 A5 \ return strTarget;
" Q6 D( t# w& F }5 `* [3 w6 }0 O7 l
catch(e)3 S/ I' a$ t4 Q, O' B( P
{
6 E# o/ g( l4 h( u. n throw e;$ w" `1 Q* n# X8 B1 i2 G
}
1 R1 _7 v) n' Q}, Z! ]9 f6 D0 M/ D( g
' n; q" [6 u! T/ G( R: R! [function AddSpecificConfig(proj, strProjectName)% d6 \0 B3 P- ~, \* n6 q
{
% {1 w$ R$ ?! u$ V2 ?) i try' ~9 w: @5 a( |, {. h& |: p/ h( b
{
( A9 x& K. r- \( ]0 z" j* n6 O$ R var isDllApp = wizard.FindSymbol("DLL_APPLICATION");5 ^' l0 a5 d j; h- R' t
var isCxx = true;) }' T( g- @ j; U% `, S
& \5 t! L. ?2 v8 G. }8 R var appType;
6 t2 e2 \" a9 U" r var appExtension;
& q4 N, k( |1 ^- t/ H; W' ~0 s O2 g% [& u
proj.ConfigurationManager.AddPlatform("x64", "Win32", true);5 T4 @( ^' R$ f+ m
. k4 S/ y8 N7 H1 t" M
if ( isDllApp ) s) G) o0 z; j" I5 C& W. w* h
{8 f7 @+ a' H/ \* C* a
appType = typeDynamicLibrary;& P3 u$ P* \3 \ Z t% a# F
appExtension = ".dll";" z7 K1 y) |/ m# N( s& n6 W) i8 I
}5 H- P& n3 _3 V+ T+ z" d% Z% Q( A
else: q s" n# R9 J6 u
{1 a/ [/ s% L" ?, s- t
appType = typeApplication;! g, ?" c! S! h! g3 @7 j1 M
appExtension = ".exe";
. Z! @. t5 a" R1 n9 v5 E }
$ R* t) Q! s; o: E0 e7 {
; @# |4 a4 g% t var linkLibs = "libufun.lib";
3 i: O) P, Z+ ?& t linkLibs += " libufun_cae.lib";( M3 e B7 l. C; H, V4 i, `
linkLibs += " libufun_cam.lib";4 w0 |; K7 m( L& @% G# a
linkLibs += " libufun_die.lib";) B9 e2 ?* N* k+ M4 j: b
linkLibs += " libufun_vdac.lib";
/ X6 T5 U7 J/ o- @& N' F9 g linkLibs += " libufun_weld.lib";/ m4 s, c9 k6 h
/ U! k$ m/ u7 n8 o( } if ( isCxx)1 d5 B$ [$ S6 [+ p$ K/ x
{! Z) Y$ T ?4 s9 t9 m
var wshell = new ActiveXObject("WScript.Shell")
5 X' n3 O+ D* N7 Q5 z3 }% m var libpath ="D:\\dsplm\\Siemens\\NX12\\ugopen";0 x' B# ^* s: k; I
var Fo =new ActiveXObject("Scripting.FileSystemObject");# G( i$ \& \" B( p6 J, J4 g
var FSo = new Enumerator(Fo.GetFolder(libpath).Files);
9 N2 d( d" p7 X4 ~7 e+ } var nxopencppName = "libnxopencpp";) p7 p0 c0 \5 \7 \8 I4 K
for(; !FSo.atEnd(); FSo.moveNext())
7 W5 c5 N) k: a5 z2 j1 W* ^0 _2 S# _ {
+ I+ y& W* ^1 C# G# V if(FSo.item().name.match("^"+nxopencppName)==nxopencppName) //check if file name start with libnxopencpp
/ j$ V; G; H" ?' M if(FSo.item().name.slice(FSo.item().name.lastIndexOf(".")+1).toLowerCase() == "lib") //check if file has '.lib' as an extension
9 u* k) e! s3 E# f* J- {$ W {- A, M% [5 p# i3 |: h5 _7 k
linkLibs = linkLibs + " " + FSo.item().name;
( U. t0 t$ r/ d% v3 j }
# e( V# y7 p; T/ N9 _ }
( g/ B& x( {0 ] }
. |2 T4 n s8 Z# V
# Z; x( w O! ~5 Q% Q- { c8 ? if ( isDllApp )4 ?8 h4 f& l0 }4 F
{
' L) `4 w; T! X5 q. b linkLibs += " libugopenint.lib";
" F0 X7 [. j/ r/ g8 A X. Z( m7 ~7 s linkLibs += " libugopenint_cae.lib";, a2 w% u8 U7 x N
linkLibs += " libugopenint_cam.lib";# s$ n5 E* n, M% w; F
2 T( u% F8 Z$ ?
if ( isCxx)" a" n: q& ]' j. d! a2 G0 S
linkLibs += " libnxopenuicpp.lib";3 ], \+ u: ]9 H$ p) W
}, o6 c4 S% \0 k$ B$ h: U
4 A/ t4 m; V, K
//=================================================================$ G. x$ _- x2 j' Z7 |( ]/ l6 w2 _
// Debug Configuration, f# X! W* ~' J+ i7 M8 ?
//=================================================================3 D+ `- a) @; i$ h6 ]5 T
//LRJ - add x64 e% w) R* Q9 K- Y% q3 T7 ]
var config = proj.Object.Configurations("Debug|x64");! }8 A+ y" q7 Z D7 N# Z$ c
config.ConfigurationType = appType;- E" K) Q e5 F. b' @
config.CharacterSet = charSetUnicode;
8 U/ J3 k: v1 h- A config.useOfMfc = useMfcStdWin;
/ T9 ?% |1 y _# J3 H
L0 X! {7 `9 i. {0 v var CLTool = config.Tools("VCCLCompilerTool");
4 ?% F4 L4 ]- J7 ]2 J+ ~5 N- b var strDefines = GetPlatformDefine(config);# H0 U- t9 s) C/ P# z
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";
! X; e9 Q; m5 r. ~/ Y if ( isDllApp )
- V# F$ _: W: f9 V# }4 {/ F1 a; A) [, l {8 `4 o. X: y+ Z/ F( W0 y
strDefines += ";_USRDLL";
& a& y1 f, d! n) w' b }. {6 ?4 t/ r1 h, h; r
else
$ H ]+ j* _( b0 ^ {8 I0 X& \2 E$ Z2 a# c
strDefines += ";_CONSOLE";
8 J3 Y; v6 k3 n0 ^ }
6 W0 M1 T# I' Q! g8 x. A k1 Y7 \# L8 `! p7 ?, _% o
CLTool.PreprocessorDefinitions = strDefines;7 d* p% a$ s9 l. l. c
; A- c+ z5 e% i+ {7 O
config.UseOfMFC = useMfcDynamic;
3 K& z4 `" s- y4 Q CLTool.RuntimeLibrary = rtMultiThreadedDLL;
& B9 Z6 j4 ]% W7 w4 k. O- J* C+ x+ N
CLTool.TreatWChar_tAsBuiltInType = true;
. ^% o4 k: N" A$ u2 N1 F CLTool.DebugInformationFormat = debugEnabled;* }5 F' [) L v1 x/ F% c
CLTool.AdditionalIncludeDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";7 i1 g" `( i9 V7 K
: z x9 p5 w' Y" n- ^0 K
CLTool.RuntimeTypeInfo = 1;
/ h, C" N2 G/ d8 { CLTool.UsePrecompiledHeader = pchNone;
: O+ b0 \8 U8 w/ j CLTool.AdditionalOptions = "/d1scalableinclude-";6 V' g3 x# B) q) h- u
9 S& y& x9 J2 X
//LRJ - change for X64 - add TargetMachine7 \( Q: c) w: _% {9 y8 z' F& u" g
var LinkTool = config.Tools("VCLinkerTool");4 G+ d! c6 U, F3 A+ }; A; I* w
LinkTool.TargetMachine = machineAMD64;
( B& h; u7 C% e% l: y" c LinkTool.LinkIncremental = linkIncrementalYes;, h+ w- R2 i; I5 h) p1 N9 {
LinkTool.GenerateDebugInformation = true;
' E1 b! Q$ F- _( b, k3 }7 i LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;
' W3 S! A( [& K0 n) A% x1 _% T if ( isDllApp )( g, A& _' X/ H9 \2 [
LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";
" q8 [$ g" a: F& D- j4 E: W5 l# r LinkTool.AdditionalLibraryDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
. _& e. F2 ~3 k. S; F LinkTool.AdditionalDependencies = linkLibs;
1 t/ e: _/ K8 \. O LinkTool.SubSystem = subSystemConsole;7 y; L# [ V0 r' Z8 r: z
//LRJ - add following line for X64 definition8 }/ p+ ?* k* I0 Q1 h- `
dte.ExecuteCommand("Build.SolutionPlatforms", "x64"); h# X9 i3 d' Z2 _! T
) C5 p1 j4 J T6 r. B. Y/ o
//=================================================================
: c" {9 }$ D/ r // Release Configuration0 e& U2 u2 O! \2 h% H
//=================================================================
' b6 o/ s/ \! }- Q//LRJ - add X64 definition to configuration line) ~% T. M& Q( ~
config = proj.Object.Configurations("Release|x64");
4 O5 D, b8 h! c config.ConfigurationType = appType;
) |) H) B/ J. w |( J0 j. ^ config.CharacterSet = charSetUnicode;
) F# L! R" [) e ] config.useOfMfc = useMfcStdWin;# F9 r, ^2 X8 P% X9 Z# l& r+ s/ k
7 ]+ d4 ^3 o3 H1 y
CLTool = config.Tools("VCCLCompilerTool");! n" o9 w1 u7 Q8 ^* B
strDefines = GetPlatformDefine(config);5 w/ U9 e: t# T! v& }: M
strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";
9 _& {1 m- U( ` if ( isDllApp ); l) W4 W9 k1 o# M, y& O$ z
{
' y7 j! S% m4 ~ strDefines += ";_USRDLL";. A3 l3 T' p" l4 b) X5 p
}0 H7 r8 d! ~; u8 U% t8 [( q
else# ]1 w& @( h b# e( c3 N* \% b6 O
{) [6 m# n7 t6 g" [$ o
strDefines += ";_CONSOLE";- W! u. M) y5 `- ]1 }" m
}
. Q( W. }* F4 G; m6 d6 r7 v/ e
% r7 z- p: D) b4 }$ E CLTool.PreprocessorDefinitions = strDefines;
( d! u" a$ D$ ?; w1 B- y; S3 }4 h S7 W# ]2 ]0 U4 c- Y
config.UseOfMFC = useMfcDynamic;, ^( X0 U: c1 s) a9 i6 b) G
CLTool.RuntimeLibrary = rtMultiThreadedDLL;; j2 ^' t3 J6 s, g9 n
3 E" O$ N+ k' q; x
CLTool.InlineFunctionExpansion = expandOnlyInline;
: Z1 _! d ]( W! G CLTool.TreatWChar_tAsBuiltInType = true;
$ w6 {' B9 g0 B, Y$ G! V1 M CLTool.DebugInformationFormat = debugEnabled;- L: S1 X" ?, c) F
& T) F4 a$ t$ J
CLTool.AdditionalIncludeDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";
4 p4 Z& ~: E! k2 s$ p/ O
+ f, G" M6 N+ F7 U CLTool.RuntimeTypeInfo = 1;: V# `( v, M& v1 f; P" e
CLTool.UsePrecompiledHeader = pchNone;$ O x/ J& H1 n" ~ i, _% X! z
//CLTool.AdditionalOptions = "/d1scalableinclude-";
# Z, b& T$ B9 G- T+ Y1 W3 B- Y& c' ^8 z5 j. n
LinkTool = config.Tools("VCLinkerTool");. e9 p( J9 f' i# B) S0 e
//LRJ - add following line for X64 definition, A! I" M3 p! r, i# f; {) g0 h
LinkTool.TargetMachine = machineAMD64;: A R/ f2 j! V. T5 d) q$ p) \9 u
LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;
9 q/ I% A/ {) Y if ( isDllApp )2 x$ |! L. w# ~* {% X
LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";
8 g! o" V' I) n* C4 C; t# q2 h LinkTool.GenerateDebugInformation = true;: G, k% Z; S0 f3 E
LinkTool.LinkIncremental = linkIncrementalNo;- q& [# E+ k$ i* x, k
LinkTool.AdditionalLibraryDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";
# A7 O3 {6 e* s9 B) G, ]) Q5 y" a LinkTool.AdditionalDependencies = linkLibs;+ R4 }! h3 b* U
LinkTool.SubSystem = subSystemConsole;
3 b& X1 d$ u: b% S" V/ e3 }: ?0 K//LRJ - add following line for X64 definition ?! Z4 L2 p5 Q, I9 H( e
dte.ExecuteCommand("Build.SolutionPlatforms", "x64");
1 c9 V/ v% l! b" j. x2 {/ T5 o ?# a }
9 @" A3 i9 e; n catch(e)6 I$ v0 T/ S( p( K3 l( L1 r
{0 Y! ~' z; ?2 G
throw e;$ _ v- ]( c3 k0 w" L
}& S0 @+ s/ L2 V1 ~7 a4 o; z
}
4 C' ]0 \' Q6 S1 n0 j; P: P4 [# C, E
6 U; i+ Q$ {; ]/ j! T8 }
) E* o, P/ [! S1 E4 v |
|