Skipping dependency wixproject using msbuild command line












-1















I am building a wixproject using Visual studio solution on Configuration= Release,Platform=x64 by unchecking x86 platform to skip some dependency wix projects.
Is there a way to do the same using MSBuild command line?










share|improve this question

























  • What do you mean exactly with 'unchecking x86 platform? If you're building x64 as you say you're doing, no x86 stuff should be considered. Are you just looking to pass properties on the commandline to build for x64, like `msbuild myproject /p:Configuration=Release;Platform=x64'?

    – stijn
    Nov 19 '18 at 19:33











  • unchecking x86 platform means - In Visual studio solution, there is an option to skip the platform x86 build by using VS configuration manager.

    – Neethu Haridas
    Nov 20 '18 at 8:43











  • Whatever changes made in Configuration manager are saved in the solution file, so also get applied for commandline builds. In other words; you shouldn't do anything special.

    – stijn
    Nov 20 '18 at 8:48
















-1















I am building a wixproject using Visual studio solution on Configuration= Release,Platform=x64 by unchecking x86 platform to skip some dependency wix projects.
Is there a way to do the same using MSBuild command line?










share|improve this question

























  • What do you mean exactly with 'unchecking x86 platform? If you're building x64 as you say you're doing, no x86 stuff should be considered. Are you just looking to pass properties on the commandline to build for x64, like `msbuild myproject /p:Configuration=Release;Platform=x64'?

    – stijn
    Nov 19 '18 at 19:33











  • unchecking x86 platform means - In Visual studio solution, there is an option to skip the platform x86 build by using VS configuration manager.

    – Neethu Haridas
    Nov 20 '18 at 8:43











  • Whatever changes made in Configuration manager are saved in the solution file, so also get applied for commandline builds. In other words; you shouldn't do anything special.

    – stijn
    Nov 20 '18 at 8:48














-1












-1








-1








I am building a wixproject using Visual studio solution on Configuration= Release,Platform=x64 by unchecking x86 platform to skip some dependency wix projects.
Is there a way to do the same using MSBuild command line?










share|improve this question
















I am building a wixproject using Visual studio solution on Configuration= Release,Platform=x64 by unchecking x86 platform to skip some dependency wix projects.
Is there a way to do the same using MSBuild command line?







visual-studio msbuild wix






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 '18 at 18:11









Sid Mhatre

2,0291025




2,0291025










asked Nov 19 '18 at 12:59









Neethu HaridasNeethu Haridas

11




11













  • What do you mean exactly with 'unchecking x86 platform? If you're building x64 as you say you're doing, no x86 stuff should be considered. Are you just looking to pass properties on the commandline to build for x64, like `msbuild myproject /p:Configuration=Release;Platform=x64'?

    – stijn
    Nov 19 '18 at 19:33











  • unchecking x86 platform means - In Visual studio solution, there is an option to skip the platform x86 build by using VS configuration manager.

    – Neethu Haridas
    Nov 20 '18 at 8:43











  • Whatever changes made in Configuration manager are saved in the solution file, so also get applied for commandline builds. In other words; you shouldn't do anything special.

    – stijn
    Nov 20 '18 at 8:48



















  • What do you mean exactly with 'unchecking x86 platform? If you're building x64 as you say you're doing, no x86 stuff should be considered. Are you just looking to pass properties on the commandline to build for x64, like `msbuild myproject /p:Configuration=Release;Platform=x64'?

    – stijn
    Nov 19 '18 at 19:33











  • unchecking x86 platform means - In Visual studio solution, there is an option to skip the platform x86 build by using VS configuration manager.

    – Neethu Haridas
    Nov 20 '18 at 8:43











  • Whatever changes made in Configuration manager are saved in the solution file, so also get applied for commandline builds. In other words; you shouldn't do anything special.

    – stijn
    Nov 20 '18 at 8:48

















What do you mean exactly with 'unchecking x86 platform? If you're building x64 as you say you're doing, no x86 stuff should be considered. Are you just looking to pass properties on the commandline to build for x64, like `msbuild myproject /p:Configuration=Release;Platform=x64'?

– stijn
Nov 19 '18 at 19:33





What do you mean exactly with 'unchecking x86 platform? If you're building x64 as you say you're doing, no x86 stuff should be considered. Are you just looking to pass properties on the commandline to build for x64, like `msbuild myproject /p:Configuration=Release;Platform=x64'?

– stijn
Nov 19 '18 at 19:33













unchecking x86 platform means - In Visual studio solution, there is an option to skip the platform x86 build by using VS configuration manager.

– Neethu Haridas
Nov 20 '18 at 8:43





unchecking x86 platform means - In Visual studio solution, there is an option to skip the platform x86 build by using VS configuration manager.

– Neethu Haridas
Nov 20 '18 at 8:43













Whatever changes made in Configuration manager are saved in the solution file, so also get applied for commandline builds. In other words; you shouldn't do anything special.

– stijn
Nov 20 '18 at 8:48





Whatever changes made in Configuration manager are saved in the solution file, so also get applied for commandline builds. In other words; you shouldn't do anything special.

– stijn
Nov 20 '18 at 8:48












1 Answer
1






active

oldest

votes


















0















Skipping dependency wixproject using msbuild command line




Just like stijn said, you can specify the property in the command line when you build the project/solution file.



As we know, the property Platform= project-level property, which we could set or override the specified project-level properties by -property:name=value. Name is the property name and value is the property value.



Check the document MSBuild command-line reference for some more details.



enter image description here



So, to resolve this issue, you just need pass the property Platform=x64 in the command line, like:



MSBuild YourProjectPath.wixproj /property:Configuration=Release /property:Platform=x64


or use shorter form:



MSBuild YourProjectPath.wixproj /p:Configuration=Release /p:Platform=x64


Hope this helps.






share|improve this answer
























  • I have tried below command msbuild a.wixproj /p:Configuration=Release;Platform=X64. a.wixproj has some dependency wixproj not supporting x64 platform.So how can we skip those wixproject while building a.wixproj with platform x64?

    – Neethu Haridas
    Nov 20 '18 at 8:35













  • @NeethuHaridas, You can exclude projects at the solution level for a specific build configuration by using the Configuration Manager Dialog in Visual Studio:stackoverflow.com/questions/9778916/…

    – Leo Liu-MSFT
    Nov 20 '18 at 9:05











  • instead of visual studio configuration manager , Is there any way to exclude project through msbuild command line?

    – Neethu Haridas
    Nov 20 '18 at 9:07













  • @NeethuHaridas, Yes, there is no directly way to do this via command line. And all the settings in the visual studio configuration manager are saved in the project/solution file, if you have set this in the visual studio configuration manager, you do not specify it on the command line.

    – Leo Liu-MSFT
    Nov 20 '18 at 9:12













  • I am not using visual studio solution for build, I am calling wix project directly from msbuild command line.

    – Neethu Haridas
    Nov 20 '18 at 9:36











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53375199%2fskipping-dependency-wixproject-using-msbuild-command-line%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0















Skipping dependency wixproject using msbuild command line




Just like stijn said, you can specify the property in the command line when you build the project/solution file.



As we know, the property Platform= project-level property, which we could set or override the specified project-level properties by -property:name=value. Name is the property name and value is the property value.



Check the document MSBuild command-line reference for some more details.



enter image description here



So, to resolve this issue, you just need pass the property Platform=x64 in the command line, like:



MSBuild YourProjectPath.wixproj /property:Configuration=Release /property:Platform=x64


or use shorter form:



MSBuild YourProjectPath.wixproj /p:Configuration=Release /p:Platform=x64


Hope this helps.






share|improve this answer
























  • I have tried below command msbuild a.wixproj /p:Configuration=Release;Platform=X64. a.wixproj has some dependency wixproj not supporting x64 platform.So how can we skip those wixproject while building a.wixproj with platform x64?

    – Neethu Haridas
    Nov 20 '18 at 8:35













  • @NeethuHaridas, You can exclude projects at the solution level for a specific build configuration by using the Configuration Manager Dialog in Visual Studio:stackoverflow.com/questions/9778916/…

    – Leo Liu-MSFT
    Nov 20 '18 at 9:05











  • instead of visual studio configuration manager , Is there any way to exclude project through msbuild command line?

    – Neethu Haridas
    Nov 20 '18 at 9:07













  • @NeethuHaridas, Yes, there is no directly way to do this via command line. And all the settings in the visual studio configuration manager are saved in the project/solution file, if you have set this in the visual studio configuration manager, you do not specify it on the command line.

    – Leo Liu-MSFT
    Nov 20 '18 at 9:12













  • I am not using visual studio solution for build, I am calling wix project directly from msbuild command line.

    – Neethu Haridas
    Nov 20 '18 at 9:36
















0















Skipping dependency wixproject using msbuild command line




Just like stijn said, you can specify the property in the command line when you build the project/solution file.



As we know, the property Platform= project-level property, which we could set or override the specified project-level properties by -property:name=value. Name is the property name and value is the property value.



Check the document MSBuild command-line reference for some more details.



enter image description here



So, to resolve this issue, you just need pass the property Platform=x64 in the command line, like:



MSBuild YourProjectPath.wixproj /property:Configuration=Release /property:Platform=x64


or use shorter form:



MSBuild YourProjectPath.wixproj /p:Configuration=Release /p:Platform=x64


Hope this helps.






share|improve this answer
























  • I have tried below command msbuild a.wixproj /p:Configuration=Release;Platform=X64. a.wixproj has some dependency wixproj not supporting x64 platform.So how can we skip those wixproject while building a.wixproj with platform x64?

    – Neethu Haridas
    Nov 20 '18 at 8:35













  • @NeethuHaridas, You can exclude projects at the solution level for a specific build configuration by using the Configuration Manager Dialog in Visual Studio:stackoverflow.com/questions/9778916/…

    – Leo Liu-MSFT
    Nov 20 '18 at 9:05











  • instead of visual studio configuration manager , Is there any way to exclude project through msbuild command line?

    – Neethu Haridas
    Nov 20 '18 at 9:07













  • @NeethuHaridas, Yes, there is no directly way to do this via command line. And all the settings in the visual studio configuration manager are saved in the project/solution file, if you have set this in the visual studio configuration manager, you do not specify it on the command line.

    – Leo Liu-MSFT
    Nov 20 '18 at 9:12













  • I am not using visual studio solution for build, I am calling wix project directly from msbuild command line.

    – Neethu Haridas
    Nov 20 '18 at 9:36














0












0








0








Skipping dependency wixproject using msbuild command line




Just like stijn said, you can specify the property in the command line when you build the project/solution file.



As we know, the property Platform= project-level property, which we could set or override the specified project-level properties by -property:name=value. Name is the property name and value is the property value.



Check the document MSBuild command-line reference for some more details.



enter image description here



So, to resolve this issue, you just need pass the property Platform=x64 in the command line, like:



MSBuild YourProjectPath.wixproj /property:Configuration=Release /property:Platform=x64


or use shorter form:



MSBuild YourProjectPath.wixproj /p:Configuration=Release /p:Platform=x64


Hope this helps.






share|improve this answer














Skipping dependency wixproject using msbuild command line




Just like stijn said, you can specify the property in the command line when you build the project/solution file.



As we know, the property Platform= project-level property, which we could set or override the specified project-level properties by -property:name=value. Name is the property name and value is the property value.



Check the document MSBuild command-line reference for some more details.



enter image description here



So, to resolve this issue, you just need pass the property Platform=x64 in the command line, like:



MSBuild YourProjectPath.wixproj /property:Configuration=Release /property:Platform=x64


or use shorter form:



MSBuild YourProjectPath.wixproj /p:Configuration=Release /p:Platform=x64


Hope this helps.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 20 '18 at 3:49









Leo Liu-MSFTLeo Liu-MSFT

18.4k21932




18.4k21932













  • I have tried below command msbuild a.wixproj /p:Configuration=Release;Platform=X64. a.wixproj has some dependency wixproj not supporting x64 platform.So how can we skip those wixproject while building a.wixproj with platform x64?

    – Neethu Haridas
    Nov 20 '18 at 8:35













  • @NeethuHaridas, You can exclude projects at the solution level for a specific build configuration by using the Configuration Manager Dialog in Visual Studio:stackoverflow.com/questions/9778916/…

    – Leo Liu-MSFT
    Nov 20 '18 at 9:05











  • instead of visual studio configuration manager , Is there any way to exclude project through msbuild command line?

    – Neethu Haridas
    Nov 20 '18 at 9:07













  • @NeethuHaridas, Yes, there is no directly way to do this via command line. And all the settings in the visual studio configuration manager are saved in the project/solution file, if you have set this in the visual studio configuration manager, you do not specify it on the command line.

    – Leo Liu-MSFT
    Nov 20 '18 at 9:12













  • I am not using visual studio solution for build, I am calling wix project directly from msbuild command line.

    – Neethu Haridas
    Nov 20 '18 at 9:36



















  • I have tried below command msbuild a.wixproj /p:Configuration=Release;Platform=X64. a.wixproj has some dependency wixproj not supporting x64 platform.So how can we skip those wixproject while building a.wixproj with platform x64?

    – Neethu Haridas
    Nov 20 '18 at 8:35













  • @NeethuHaridas, You can exclude projects at the solution level for a specific build configuration by using the Configuration Manager Dialog in Visual Studio:stackoverflow.com/questions/9778916/…

    – Leo Liu-MSFT
    Nov 20 '18 at 9:05











  • instead of visual studio configuration manager , Is there any way to exclude project through msbuild command line?

    – Neethu Haridas
    Nov 20 '18 at 9:07













  • @NeethuHaridas, Yes, there is no directly way to do this via command line. And all the settings in the visual studio configuration manager are saved in the project/solution file, if you have set this in the visual studio configuration manager, you do not specify it on the command line.

    – Leo Liu-MSFT
    Nov 20 '18 at 9:12













  • I am not using visual studio solution for build, I am calling wix project directly from msbuild command line.

    – Neethu Haridas
    Nov 20 '18 at 9:36

















I have tried below command msbuild a.wixproj /p:Configuration=Release;Platform=X64. a.wixproj has some dependency wixproj not supporting x64 platform.So how can we skip those wixproject while building a.wixproj with platform x64?

– Neethu Haridas
Nov 20 '18 at 8:35







I have tried below command msbuild a.wixproj /p:Configuration=Release;Platform=X64. a.wixproj has some dependency wixproj not supporting x64 platform.So how can we skip those wixproject while building a.wixproj with platform x64?

– Neethu Haridas
Nov 20 '18 at 8:35















@NeethuHaridas, You can exclude projects at the solution level for a specific build configuration by using the Configuration Manager Dialog in Visual Studio:stackoverflow.com/questions/9778916/…

– Leo Liu-MSFT
Nov 20 '18 at 9:05





@NeethuHaridas, You can exclude projects at the solution level for a specific build configuration by using the Configuration Manager Dialog in Visual Studio:stackoverflow.com/questions/9778916/…

– Leo Liu-MSFT
Nov 20 '18 at 9:05













instead of visual studio configuration manager , Is there any way to exclude project through msbuild command line?

– Neethu Haridas
Nov 20 '18 at 9:07







instead of visual studio configuration manager , Is there any way to exclude project through msbuild command line?

– Neethu Haridas
Nov 20 '18 at 9:07















@NeethuHaridas, Yes, there is no directly way to do this via command line. And all the settings in the visual studio configuration manager are saved in the project/solution file, if you have set this in the visual studio configuration manager, you do not specify it on the command line.

– Leo Liu-MSFT
Nov 20 '18 at 9:12







@NeethuHaridas, Yes, there is no directly way to do this via command line. And all the settings in the visual studio configuration manager are saved in the project/solution file, if you have set this in the visual studio configuration manager, you do not specify it on the command line.

– Leo Liu-MSFT
Nov 20 '18 at 9:12















I am not using visual studio solution for build, I am calling wix project directly from msbuild command line.

– Neethu Haridas
Nov 20 '18 at 9:36





I am not using visual studio solution for build, I am calling wix project directly from msbuild command line.

– Neethu Haridas
Nov 20 '18 at 9:36


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53375199%2fskipping-dependency-wixproject-using-msbuild-command-line%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?