|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
NX12.0 二次开发使用VS2012 报错解决方案
( r \' b" ?6 w' D: B严格的讲NX12.0需要使用VS2015进行开发,这里说下如果你是低版本的解决方案,但是不推荐!
& H7 E8 S2 x7 A/ E! j(1)安装完后,点击Open Wizard 告诉你创建项目错误0 D' W# S& i6 Q8 o; C
5 l# M) \5 v: G9 b3 ^这种问题就是编译器版本不符合官方的匹配导致的,更改方法很简单
7 R6 }7 o% S/ Z' ^6 R2 z打开 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcprojects下的NX12_NXOpenCPP.vsz 将
6 H2 x* G" R! `* H) M' c4 EWizard=VsWizard.VsWizardEngine.14.0 中的14 改成11 也就是对应的VS20120 ?- M8 ?/ x) k& g% Y6 `
6 k5 w, \4 I8 i4 O( z
这样创建的对话框就可以出来了!! v/ c T' M3 }. e! z& P* p& b4 a
(2)你可能还会遇到路径错误,path not found, 建议对这个文件进行修改,尤其是你有多个版本存在的话,一劳永逸% p& ]& T! E/ ~! ?/ h' a' E
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCWizards\NX11_NXOpenCPP\scripts\1033 下的default.js 文件
4 v* K: n3 L' ^: R修改里面的环境变量路径,注意路径是双反斜线 \\,参考如下!& f4 W4 V% }1 L" N. Y8 Q
# z" r- ~& W. @1 }3 E
//@<DEL>@ TEXT ENCLOSED within delete markers will be REMOVED- `! b- |: o8 ~3 y5 q
// 09-Jun-2012 Frank Berger Initial Release for VS2010 based on "NX8 Open Wizard"4 _7 m) _! y+ H7 A1 F9 ^, _! x
// 31-Okt-2013 Frank Berger modified for VS2012
% O4 ?) W8 b$ b7 U/ k+ O) c/ f// 13-Feb-2015 Sudhir Pawar ARCH:11320: Added libufun_die.lib,libufun_vdac.lib & libufun_weld.lib' X8 a. j# c. \* L9 R, N" ?0 @- [
// 21-Dec-2015 Purushottam Thakre Fixed PR#7567548: Call DeletePlatform function to delete 'Win32' platform.
' d- I1 [* w- C b+ M// 08-Jan-2016 Prabhakar Mandlik Fixed PR#7588129: Added /d1scalableinclude- swiTCh.
+ D# I( a) M. N! R+ o1 x9 t// 10-Feb-2016 Purushottam Thakre Fixed PR#7630769: Reverted changes done to fix PR#7567548 which is causing regression. z5 e1 \* U. o
//TEXT ENCLOSED within delete markers will be REMOVED @<DEL>@. K7 D) N; E+ u& }0 B0 z5 a
& F& X3 @* A( t B. @; T/ A+ Lfunction OnFinish(selProj, selObj)6 Y! c7 t7 l5 f( |
{
/ n8 r, ~ Z! R8 E3 u" q# i try
) I# @: q, W$ O: i4 S: f o4 Z {/ ]! [- {+ w' {3 G5 W: x' y
var bodyTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "body_template.txt";6 j9 D2 Q" L4 F
var bodyTemplateText = wizard.RenderTemplateToString(bodyTemplateFile);
( J5 Q% R3 M! M$ I& y$ {$ {7 X wizard.AddSymbol("BODY_TEMPLATE", bodyTemplateText);! Z5 H* f5 I. f* t9 W
$ w4 m# v9 |, z( c: j9 t: R
var entryPointsTemplateFile = wizard.FindSymbol("TEMPLATES_PATH") + "\\" + "entry_points_template.txt";
# H/ A% ~) T3 o- ]( R var entryPointsTemplateText = wizard.RenderTemplateToString(entryPointsTemplateFile);
$ W9 j5 |. J2 f0 \, i wizard.AddSymbol("ENTRY_POINTS_TEMPLATE", entryPointsTemplateText);
) J0 e. v, t: g k8 q0 j& G- ?* a
7 A. d2 v# V) a var unloadOption = "UNLOAD_IMMEDIATELY";- w4 S9 ?3 o: F! q
if ( wizard.FindSymbol( "UF_UNLOAD_UG_TERMINATE" ) )
+ p7 f6 l0 C! D: o z0 B {
1 U+ G+ `) l; k M, K9 R6 @ unloadOption = "UF_UNLOAD_UG_TERMINATE";. v& y. I* J! q* O; b9 H
}
4 X& _0 F+ I" F& B else if ( wizard.FindSymbol( "UNLOAD_SEL_DIALOG" ) )0 H+ }0 O9 \2 a
{9 p8 r1 V& c4 r% b' Q0 M
unloadOption = "UF_UNLOAD_SEL_DIALOG";
/ F$ P1 Q. y! w4 V2 g! Q% I }
# }0 d3 W3 g8 j1 t wizard.AddSymbol("UF_UNLOAD_OPTION", unloadOption);
: m# U" M& e" { P" }0 j: B8 y! L7 N% p
+ l c0 }; Y, D* Z$ u- |' _) O9 _ // Assign the project path and project name0 S. }) o/ n7 u! G8 B
var strProjectPath = wizard.FindSymbol("PROJECT_PATH");6 Y4 `. r! S6 S+ g4 V7 {6 }6 T
var strProjectName = wizard.FindSymbol("PROJECT_NAME");
+ L& K+ f0 t6 t; A& m var strClassName = wizard.FindSymbol("MAIN_CLASS_NAME");
3 {; P, z' l0 @ if ( strClassName.length < 1 )
/ o; D2 W* ^4 e9 ] Y {
' s4 ?! r0 i; y& n0 \3 V wizard.AddSymbol("MAIN_CLASS_NAME", "NONAME");$ }4 l2 _& w& O% \* _: Z6 {( j
}
2 g* Z# U8 \1 ]; i$ H" X' y8 x! x) M* W
// Create the Visual C++ project and call it "NXOpenProj"
6 q) [; M) L0 R0 X/ \3 Z, x$ j selProj = CreateProject(strProjectName, strProjectPath);2 ?$ |; D c _2 |
// selProj.Object.Keyword = "NXOpenProj"
0 Q* |5 V; ?1 I) l" Q( f1 h# C# M
* K) _; l: U p8 S3 z // Add common and specific configurations to the project
+ d. J; U6 E: N/ h- Y AddCommonConfig(selProj, strProjectName);, u4 R) \4 N/ m9 ?$ w5 s- x; ~
AddSpecificConfig(selProj, strProjectName);
. J) v# M- O8 @6 ^3 j! E& S// selProj.Object.keyword = "MFCDLLProj";. N2 S! N; I5 W; Y2 s
$ W$ W$ B9 R6 `& ?4 ?. }$ n4 o8 [ //Set the project filters 6 q: Z( G' N9 J `) b- w
SetupFilters(selProj);
- A: i6 w% f( Z; S( s& r! J, T6 u9 H/ f2 f5 Y
// Add files to the project from the project's Templates.inf file
3 ]( d2 t2 U7 ]4 t. U AddFilesToProjectWithInfFile(selProj, strProjectName);
" i; @) [0 q t( Y) A5 D - |( \7 b) G9 ]* g
selProj.Object.Save();6 \/ r/ ^; z8 q w0 F
} E( s. A [& W: e! V, p1 |4 o
catch(e)' D2 F B: J! s9 Y2 N+ D
{' e( U# c! r( r) D9 L/ M
if (e.description.length != 0)6 x% Q/ j/ |8 B q! r
SetErrorInfo(e);% b* f0 A/ j7 r
return e.number
3 o i* o: V2 { }
4 g. }& [' k6 x) }}
/ i/ Z; X9 y2 {0 N& [7 ?. a' R1 }& ~# q4 B
function SetFileProperties(projfile, strName) E* _! ]( n9 J8 f
{1 A+ m& B5 v, W% z7 m, M
return false;
; G' Z, R4 r! \7 B}
' n4 X- G& E. N/ {/ q# y) N5 V: f1 O g8 b$ t5 H
function DoOpenFile(strTarget)
& B: }4 k7 k5 S; T{# S( G/ M- N: i W
return false;
+ S3 r( ~" `- r2 z8 G$ Q/ y& v}
& ^% l, `/ J$ z) a/ G0 f7 w- ?, v' v
& _# @' `0 X' vfunction GetTargetName(strName, strProjectName, strResPath, strHelpPath)- h. N2 L+ m( M3 u8 ? Q, P
{2 U& _$ f& `. Y4 l# T3 \
try$ R! |" U; l: f {0 z
{
- G' O7 W2 `! L" O# h4 R var strTarget = strName;) I% I* _3 E2 S' U" Z9 Q2 W, r
if (strName.substr(0, 4) == "root")
3 B- r; k! D4 ?" z3 A5 O: H7 U {
) o8 Q* R3 _+ q var strlen = strName.length;
! Y# _2 n' n8 h7 Y; r if (strName == "root.ico" || strName == "root.rc2")* O8 R( I. E! \' N) _
{- i5 m# E: s I! Z% e
var strSafeProjectName = wizard.FindSymbol("SAFE_PROJECT_NAME");
, g. h0 d- U0 z9 i! V. Z! z strSafeTarget = strSafeProjectName + strName.substr(4, strlen - 4);
( C3 b2 @1 y0 o; ]9 [5 ~7 O strTarget = strResPath + "\\" + strSafeTarget;
v5 `0 L& _- z- i2 S8 ^& U }
% z6 \* v$ t: N. G/ B else if (strName == "root.txt" )
2 m2 F: j# r# N9 Q. z; K {1 M1 m6 w! E6 @- }+ l/ L, o- F2 |0 I( U
strTarget = strProjectName + ".cpp";
/ p/ Z5 i. H! ^: E5 Q% E& @ }1 d) g' A, @9 q( z- v, O
else
4 j" z$ W+ V* u5 F* Z( _; ?3 u {
: w' h. J# x# x strTarget = strProjectName + strName.substr(4, strlen - 4);
4 s- ?6 M5 _/ ]" d6 [; _! [; K }
' z1 `0 M3 C2 R$ |0 L" m3 n return strTarget;0 r9 B# O# a; j, e' q
}
4 I: E9 @- `3 h- r5 A$ E, U
& U' j1 r8 o+ }, {5 P" D3 F6 y. |0 o switch (strName)* h8 z0 h' e- P6 h8 c
{
; a9 q# _3 E |0 E) { F$ U case "readme.txt":. q+ Q! X1 d/ |$ R. S( J
strTarget = "ReadMe.txt";
2 |* e5 H' ?7 ?& X- E break;
+ a# B2 C2 J- K case "all.rc":
3 l: T2 y" ~0 f+ ?- K case "dlgall.rc":
* ]( M9 ~" k4 M( F8 W$ F strTarget = strProjectName + ".rc";) @9 o3 m2 n2 C% f0 x! V/ h
break;6 g: }$ u% [1 `% Q/ j
case "dlgres.h":9 g) O& a7 n4 [
case "resource.h":
2 ` W9 v6 k" [' F: O strTarget = "Resource.h";0 ^- \$ G& z! p# Q4 G
break;
! g0 L+ X( R6 K0 T5 v default:, X) p/ m. d5 b
break;) B+ {" n# X M0 k* R" f6 h. {0 j$ U
}
9 m' a# s: C; s6 T' d return strTarget;
3 p( r( D4 G4 y/ ?/ ~7 H" b }) d# W' C! X: S; h
catch(e)& v+ k; q" O4 J, K2 Y4 f# T ^
{$ o# T/ p3 Z0 ?( P
throw e;* g" s E4 Z: w+ R |% ^5 y# V, o; T
}
- j: k4 {" i5 z9 k" e5 o0 q- I) E}. x8 J) v+ J; z: e; [
, c2 {0 L3 c# T& _+ L, ^$ R6 q- bfunction AddSpecificConfig(proj, strProjectName)
, x/ s4 C5 ~! x! M+ q# ?{
' B C( C }/ n h try* |+ |) G1 d5 d: S) Q9 k5 w
{
& V* v( Y! u% A \/ f var isDllApp = wizard.FindSymbol("DLL_APPLICATION");" j5 {/ l8 J7 ?: f8 r& F
var isCxx = true;- `( |$ X/ O( ^. t
2 ~ }6 u0 h' U, ~; W var appType;
( t6 K& y w6 q# F var appExtension;4 m' B1 i$ r6 z3 o4 ?* Q
# T$ J% `/ R( m7 ^; N proj.ConfigurationManager.AddPlatform("x64", "Win32", true);' y7 H& N6 L. c
' N6 [: t# [! R I
if ( isDllApp )
5 Y+ y4 Y: j9 j- ?! Z4 a+ z ] {$ g: a, L ]) }5 Y* a# F, v
appType = typeDynamicLibrary;% }2 V1 b' n) @3 O6 [0 m
appExtension = ".dll";
7 [. I+ S) u1 K6 \ }' x2 [" m$ ]1 x! @% o' T
else. L7 ` J7 M$ ^# Y( p
{- O5 g5 @2 i7 D% u! X9 V. H
appType = typeApplication;
$ B" I0 g* ^$ x& q0 E# n+ k appExtension = ".exe";2 C+ O4 b l3 i* F
}: v. n6 k6 p# P/ v2 _
5 y8 R. q# A7 p var linkLibs = "libufun.lib";
3 q% t5 F# V0 _$ S/ o linkLibs += " libufun_cae.lib";, P2 Z7 P6 r+ h1 |2 b4 @6 L
linkLibs += " libufun_cam.lib";
) x- ~+ ]: l \* s: C# x8 ` linkLibs += " libufun_die.lib";, J; H y; R8 r
linkLibs += " libufun_vdac.lib";# w$ |- ^ H+ O0 C. i
linkLibs += " libufun_weld.lib";
3 |1 L: i4 U- I( \: {
& U0 ~% u" P c( z+ b' B$ ]; V/ w1 b if ( isCxx): \! v" `: `. @
{, _3 @, [: G$ y+ I! ~- ~1 o1 T
var wshell = new ActiveXObject("WScript.Shell")
, r; g6 q" I6 f+ i var libpath ="D:\\dsplm\\Siemens\\NX12\\ugopen";
, B; w; r' Y6 E; |6 b* k7 k var Fo =new ActiveXObject("Scripting.FileSystemObject");& P# g1 E/ w$ W' U5 f
var FSo = new Enumerator(Fo.GetFolder(libpath).Files); T% n% ^ l3 B, X) A5 l
var nxopencppName = "libnxopencpp";; L5 t3 o3 O& y) S& t
for(; !FSo.atEnd(); FSo.moveNext())
# f! ^6 v' ?& q {
- h' W0 b9 F( x. \: @ if(FSo.item().name.match("^"+nxopencppName)==nxopencppName) //check if file name start with libnxopencpp; S' B- I6 w0 K$ I- v; v9 S
if(FSo.item().name.slice(FSo.item().name.lastIndexOf(".")+1).toLowerCase() == "lib") //check if file has '.lib' as an extension
1 M8 X8 e8 s3 \( n1 ]) f {; T/ }% h! Y/ M( z% [. l& V8 t& X. a
linkLibs = linkLibs + " " + FSo.item().name;% q; Q* N! R9 e) o& p; }: Q, U
}
: H$ E* B& @" E9 [ }
! }6 Z& U% ~( ^ z6 W) _. D: ] }
7 e7 N, a. c. f: B
" S: C. H. w) I; o6 m) b if ( isDllApp )
7 d6 n i6 Y' O* o/ D5 S1 a {
% b: V( t: E8 j% m- P% |# e linkLibs += " libugopenint.lib";# C1 L; ?6 U7 F+ v H2 m2 I+ l2 R! |
linkLibs += " libugopenint_cae.lib";. Q+ v5 E6 B& ~
linkLibs += " libugopenint_cam.lib";: O$ {9 x5 _0 V( v) n
6 A% `* u) y+ ?- S if ( isCxx)
1 ]* w, l6 k9 X2 I8 S( c1 f linkLibs += " libnxopenuicpp.lib";# o- ?' O1 b/ L2 C
}
8 V, }- Z2 F- i( i. v" [. D0 a# y q, E: G' y% r+ h
//=================================================================$ z4 ~' L! g% d- Y0 C, z9 i
// Debug Configuration# i& C$ [9 R7 E/ M$ I9 m/ w" h/ p
//=================================================================/ P$ M* K4 J$ Z7 K+ ^ Q
//LRJ - add x64 ?: Q4 u" C$ Z0 `; O9 b
var config = proj.Object.Configurations("Debug|x64");4 p, B. M4 y) C* S6 }" `& e
config.ConfigurationType = appType;2 P) J( f6 a) C; T6 F: O
config.CharacterSet = charSetUnicode;
K; L: |/ i( @( F G4 e config.useOfMfc = useMfcStdWin;
' w5 U# \ M+ u0 m 5 k Z& v i9 h6 m' p
var CLTool = config.Tools("VCCLCompilerTool");/ r% g. @/ x. a. k+ \' N
var strDefines = GetPlatformDefine(config);
! D* v& t* A9 Y* Z0 a strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";: I+ N4 H1 K. a1 Q
if ( isDllApp )4 n/ J* l( n c ]2 L
{
4 @# r, }1 K2 K% ~$ R strDefines += ";_USRDLL";0 |/ ]" o/ Y) d' U8 R$ ]
}( M* Y% p% R# i" d( I* N' s$ g
else
( R6 s. P8 |* {1 c {7 h) r# _+ G3 ~+ c$ ^
strDefines += ";_CONSOLE";5 t5 X' r- n% [. T+ c
}
7 Q1 ^, R+ K A: }0 Z
" H7 P; `8 i6 ?0 Q# A$ o1 E CLTool.PreprocessorDefinitions = strDefines;
% o" L% b d! L& R
: L! p N1 ]; \/ U, b" L! [ config.UseOfMFC = useMfcDynamic;
& h3 K- d0 p/ e0 _" L& M CLTool.RuntimeLibrary = rtMultiThreadedDLL;
c* ]: N% S" p
/ g2 y4 f: J/ W# A+ ~ CLTool.TreatWChar_tAsBuiltInType = true;
& g5 X" h) l2 z% ` CLTool.DebugInformationFormat = debugEnabled;" m% Z& G+ }: z5 x4 `. p2 e* O
CLTool.AdditionalIncludeDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";
6 d3 T. |. K2 F" y& p. s: V; o
1 e1 K K) J; p5 J, I# R# F CLTool.RuntimeTypeInfo = 1;
7 i! U+ z" `& h0 M6 } CLTool.UsePrecompiledHeader = pchNone;$ K$ }# r- a4 }0 X& ~
CLTool.AdditionalOptions = "/d1scalableinclude-";
3 O. E0 F: E6 d& |! m- m# t: \' o; f
//LRJ - change for X64 - add TargetMachine
. o' W; ?5 W5 G% G var LinkTool = config.Tools("VCLinkerTool");
4 ]: `8 e1 k5 Q9 @ LinkTool.TargetMachine = machineAMD64;
) b% t% n+ U# w4 `! B6 N1 F2 } LinkTool.LinkIncremental = linkIncrementalYes; t2 o% P5 N/ _* G
LinkTool.GenerateDebugInformation = true;
4 G& T& ~$ I7 z; Z4 t LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;: F: [+ d7 L3 H
if ( isDllApp )0 b5 T; Q9 ~, { Q5 B
LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib";
; u( M! A2 f l2 y4 p) ^) @6 u. j LinkTool.AdditionalLibraryDirectories = "D:\\dsplm\\Siemens\\NX12\\ugopen";8 G, s! ?& [' E' a; S4 |
LinkTool.AdditionalDependencies = linkLibs;, j; u$ l5 K6 _% Y. f. W9 l% |
LinkTool.SubSystem = subSystemConsole;$ S! j9 k: R. t/ A& D; f
//LRJ - add following line for X64 definition! V4 L6 m b/ M3 @, m* h
dte.ExecuteCommand("Build.SolutionPlatforms", "x64");" `. ^) l! l8 F
& G4 T7 B" o. q/ _* u, ~ //=================================================================
- Y' p7 `/ C5 x5 H \ // Release Configuration
- I8 } G7 K) Y Z) ~& }& h7 |; r //=================================================================) R- W. C8 U5 D8 V7 b
//LRJ - add X64 definition to configuration line
" V: i! Q$ [- d" E. w8 i config = proj.Object.Configurations("Release|x64");9 T2 L Z* g& j! ^+ y4 @
config.ConfigurationType = appType;
3 \ V) P: y) n9 K7 [6 S config.CharacterSet = charSetUnicode;
- } h* j* B- Q+ u7 F3 F8 S, K config.useOfMfc = useMfcStdWin;# Y( G( w+ X z3 L
* i5 C, b; t" Y% b/ z8 X; P+ A
CLTool = config.Tools("VCCLCompilerTool");* j6 F4 f r7 I' c
strDefines = GetPlatformDefine(config);
1 E% L1 Z' p3 h# R" D strDefines += "_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0";- I( B7 H/ m- }4 u: N8 X
if ( isDllApp )
' Z7 f3 J# u7 F6 i$ G {- H3 ^+ M! N$ \& z, L
strDefines += ";_USRDLL";
6 l+ K" Y7 ]- z# I1 y }. X; X( o* ]5 L. F. [0 M% I, |
else2 p1 E) T& t0 H5 R; p7 W
{
3 e, G: k- S1 u" ~: M strDefines += ";_CONSOLE";6 Y K$ L) z9 q! n8 t$ x- j
}
9 w3 B. h# \5 E; B, | _" s
/ @& ^' e: \0 U2 B2 L6 n6 X' g J CLTool.PreprocessorDefinitions = strDefines;5 x( V8 }# C2 l( W- N
) X/ P6 [# k8 b. H" I
config.UseOfMFC = useMfcDynamic;
6 V6 D* N0 f9 D. |# O3 @# ~ R. T CLTool.RuntimeLibrary = rtMultiThreadedDLL;2 t' \ m, n4 b1 o
" f# ~% S! c5 A% x* o$ Z) q
CLTool.InlineFunctionExpansion = expandOnlyInline;3 b+ }6 T4 B. m: D4 x$ Y) u
CLTool.TreatWChar_tAsBuiltInType = true;, _7 k" p2 x6 M9 r# T; R/ |
CLTool.DebugInformationFormat = debugEnabled;0 i5 W3 D8 p8 U" D" n/ Q7 C
* z* t9 b* i' X: V M CLTool.AdditionalIncludeDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";
4 S* n7 C9 \7 n" d# g$ T. _+ n
5 ]9 J$ }4 C0 H, _ {3 u( d& s7 O. ]( J CLTool.RuntimeTypeInfo = 1;) M' U* W. E6 j3 `, r3 q: ] Z
CLTool.UsePrecompiledHeader = pchNone;9 `! `. W' ]/ i5 ~1 _+ ~; A
//CLTool.AdditionalOptions = "/d1scalableinclude-";
) M' O- D \* u8 D8 L* _
C$ c+ m! f; c LinkTool = config.Tools("VCLinkerTool");3 c# [; {. F% }6 h2 Z5 V5 C) X
//LRJ - add following line for X64 definition) k6 t H4 I1 A! S6 o- h
LinkTool.TargetMachine = machineAMD64;2 ^ E% t- G4 C/ y
LinkTool.OutputFile = "$(OutDir)/" + strProjectName + appExtension;/ q0 W, t: l" x' m! c- h+ l/ a8 g
if ( isDllApp ): H! a/ z+ g. `5 _
LinkTool.ImportLibrary = "$(OutDir)/" + strProjectName + ".lib"; \ y8 J5 o! j/ U0 @
LinkTool.GenerateDebugInformation = true;
7 C& w X' q* w$ R% w LinkTool.LinkIncremental = linkIncrementalNo;# B0 y! I% H: D1 Q1 D
LinkTool.AdditionalLibraryDirectories += ";D:\\dsplm\\Siemens\\NX12\\ugopen";# c- M8 M# |' e0 w; c- p7 n0 C- t
LinkTool.AdditionalDependencies = linkLibs;
4 l3 J- e* t# ` LinkTool.SubSystem = subSystemConsole;5 g! B+ P/ b7 X! a- w; n
//LRJ - add following line for X64 definition: _8 g6 l/ W0 F! q/ o N
dte.ExecuteCommand("Build.SolutionPlatforms", "x64");
) y) v' Q1 F$ {2 u% l }5 |/ I. H( y5 |+ l
catch(e)
" M. K6 K" o" B% N {! u! R) ?0 k8 s8 j. C
throw e;
$ G) C) x: Q: h- h: e }$ F0 S% h+ O" v3 o( p
}/ u% q3 E# Z0 P% p4 s& g
5 O, U2 G' Z2 I) t1 `: K1 r
' u8 J5 H& P' i. Z+ ?
m7 A, D2 I1 `2 V4 h) o* a- C |
|