Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-14-2013, 03:34 PM
dgh dgh is online now
Registered User
 
Join Date: 04-17-2011
Posts: 15
Visual Studio integration - Use specified .bld file

Hi,

I would like to assign an existing bld file to the Visual Build button in the Visual Studio Tools menu item.

Is this possible an if so how?
Reply With Quote
  #2  
Old 08-14-2013, 04:16 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
No -- the Visual Build VS add-in always passes the name of the current solution to Visual Build.

You could create a custom external tool in VS to call Visual Build with a hard-coded solution filename (path+filename of visbuildpro.exe in the Command field and path+filename of the solution in the Arguments field).
http://msdn.microsoft.com/en-us/libr.../76712d27.aspx
Reply With Quote
  #3  
Old 08-14-2013, 05:02 PM
dgh dgh is online now
Registered User
 
Join Date: 04-17-2011
Posts: 15
OK - thanks.
Reply With Quote
  #4  
Old 07-12-2015, 06:38 PM
dgh dgh is online now
Registered User
 
Join Date: 04-17-2011
Posts: 15
Question

Quote:
Originally Posted by kinook View Post
No -- the Visual Build VS add-in always passes the name of the current solution to Visual Build.
The problem I am having is that when asked to save the changes it asks me for a filename, directory etc. I save that into the Projects root directory (<projectname>.bld) but starting up VSBuild from VS creates a new project each time.
Reply With Quote
  #5  
Old 07-12-2015, 09:51 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The latest build (VisBuildPro.exe 9.0.0.1) has been updated to re-open the last project when called from the Visual Studio add-in (if Tools | User Options | General | Reload last project at startup is checked).
Reply With Quote
  #6  
Old 07-12-2015, 11:07 PM
dgh dgh is online now
Registered User
 
Join Date: 04-17-2011
Posts: 15
Quote:
Originally Posted by kinook View Post
The latest build (VisBuildPro.exe 9.0.0.1) has been updated to re-open the last project when called from the Visual Studio add-in (if Tools | User Options | General | Reload last project at startup is checked).
I really don't want to pay $149 for an upgrade until I can get this version (8.7) working

When I click on the VSBuild menu item, it repeatedly opens a blank new VS project with MSBuild as the first item. Great - exactly what's supposed to happen according to the docs . Now, when I click on save, what directory do I chose to save it in and assuming your help file is correct then it will save it as <projectname>.bld. Unfortunately I don't know which directory to insert as none of them appear to be correct - I have saved it everywhere that is obvious to me.
Reply With Quote
  #7  
Old 07-12-2015, 11:51 PM
dgh dgh is online now
Registered User
 
Join Date: 04-17-2011
Posts: 15
Exclamation Clarification please...

Quote:
Originally Posted by kinook View Post
The latest build (VisBuildPro.exe 9.0.0.1) has been updated to re-open the last project when called from the Visual Studio add-in (if Tools | User Options | General | Reload last project at startup is checked).
Whilst I haven't yet upgraded, are you saying that If I use VSBuild outside of the VS environment, If I click on the VSBuild option in VS -> Tools it will open whatever was the last VSBuild project that I opened with VSBuild?

If so, can this option (if it is an option) be disabled anywhere?

I only want the VS -? VsBuild button to ever open the VSBuild project that 'belongs' to that specific VS project.

Thanks.
Reply With Quote
  #8  
Old 07-13-2015, 07:31 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Quote:
Originally Posted by dgh View Post
I really don't want to pay $149 for an upgrade until I can get this version (8.7) working

When I click on the VSBuild menu item, it repeatedly opens a blank new VS project with MSBuild as the first item. Great - exactly what's supposed to happen according to the docs . Now, when I click on save, what directory do I chose to save it in and assuming your help file is correct then it will save it as <projectname>.bld. Unfortunately I don't know which directory to insert as none of them appear to be correct - I have saved it everywhere that is obvious to me.
The documentation doesn't actually state whether the add-in opens a new .bld project or not (at least not http://www.kinook.com/VisBuildPro/Ma...ntegration.htm), just that a new Make VS step is inserted.

It doesn't matter which directory you save the .bld file in.
Reply With Quote
  #9  
Old 07-13-2015, 07:47 AM
dgh dgh is online now
Registered User
 
Join Date: 04-17-2011
Posts: 15
Angry

So it will open a new VSBuild project every time

What's the friggin point of even having a VS Integration
Reply With Quote
  #10  
Old 07-13-2015, 08:10 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The point of the add-in is to create a step for building the current solution. The idea was that this step would be incorporated into the overall build process (added to a .bld file that would perform others steps like retrieving from source control, building other solutions, updating versions, building installers, deploying to web sites, etc.), and until now we've never had any feedback requesting it to work differently.

It sounds like maybe what you want to do is save the .bld file in the same location as the .sln file, and then be able to re-open that .bld file later on to build just the current solution outside of VS?
Reply With Quote
  #11  
Old 07-13-2015, 06:17 PM
dgh dgh is online now
Registered User
 
Join Date: 04-17-2011
Posts: 15
Arrow Feature Request

Quote:
Originally Posted by kinook View Post
It sounds like maybe what you want to do is save the .bld file in the same location as the .sln file, and then be able to re-open that .bld file later on to build just the current solution outside of VS?
That sums it up very well. I use VSBuild extensively on all my projects and some of the built scripts do quite a few tasks. VSBuild saves me heaps of time and effort and I highly recommend all and sundry to use it.

I have in the past used one VSBUILD project to control all my VSBuild projects spread over 15+ dll's and programs. I know this sounds familiar This has suited me fine to date and I have had no real need to use the button on the VS Toolbar. I am now changing my methodology so that individual programs and in particular dll's can be compiled and distributed individually. The use of the VS button has now become an important function for me.

Keeping the auto re-load of the last project would also be important to me when running VSBuild from the command line/desktop however I would expect the VS button would act the way you describe. I presume some configuration of the buttons functionality would be included somewhere within the VS solution itself.

Can this be implemented in a short space of time, if at all

Thanks.
Reply With Quote
  #12  
Old 07-14-2015, 08:32 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
In the latest download, the addins/extensions for VS 2008 and later have been modified: If a .bld file is saved in the same path as a .sln file with the same base name (i.e., c:\full\path\xyz.bld and c:\full\path\xyz.sln), the add-in will open that .bld file instead of opening the previous .bld file (or creating a new project) and inserting a new step for the .sln file.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 05:59 PM.


Copyright © 1999-2023 Kinook Software, Inc.