Pages: 1
Print
Author Topic: How to build xdp project with command line?  (Read 586 times)
lerche
Member

Posts: 5


« on: April 02, 2018, 05:01:17 AM »

Hello at all,

First of all: Happy easter!

Currently I am working with XMetaL Developer on a XMetaL Author Enterprise project that contains a lots of different JavaScript files. Some of them are XMetaL macros (means that goes to a mcr file) and the others are used for the Resource Manager (Shell.Explorer.2). The visual studio build compiles all necessary files into the output directory, but does not minify or optimize the JS code. Thats why I created a gulpfile to do all necessary stuff automatically. There is only one step I do not know how to do. I want to trigger the build of visual studio with the msbuild command line at first. But I get this warning message by trying it:

Quote
*.xdp.metaproj: warning MSB 4078: The project file "*.xdp" is not supported by MSBuild and cannot be build.

The command was:

Quote
msbuild solutionName.sln

Obviously xdp files are not supported by msbuild. I think the correct build tool is hidden somewhere in my installation path of XMetaL developer. Can you give me a hint how to trigger the build with the command line correctly? This would be very helpful to automate my build and release process with just one gulp command.

I would be very grateful for every advice.

My system is the following:
XMetaL(R) Author Enterprise 12.0.0.077
XMetaL(R) Developer Version 12.0.0.077
Visual Studio 2015 (Community Edition) Update 3
OS: Windows 10 Pro, English

Thank you!

René
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2580



WWW
« Reply #1 on: April 02, 2018, 11:38:19 AM »

XMetaL Developer cannot be run standalone as it is a plugin for Visual Studio. The Microsoft documentation for "devenv" should let you control Visual Studio from the command line. I suspect you likely need either the /build or /rebuild switch, or perhaps one of the others documented here:

https://msdn.microsoft.com/en-us/library/xee0c8y7.aspx

The following works for me:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe" "C:\Visual Studio Projects\Project1\Project1.sln" /build
Logged
lerche
Member

Posts: 5


« Reply #2 on: April 03, 2018, 09:47:26 AM »

This is a good advice.

But there is certainly one disadvantage. The command line switch doesn't get any feedback from visual studio.

Probably I can examine the build completion by writing the build output into a log file. By observing the changes I will get my feedback. I will check it out.

Thank you, Derek!
Logged
Pages: 1
Print
Jump to: