Running a Visual Studio Action


I am following the simple sample in your tutorial.  I have successfully connected to my TFS repository and now I am trying t o add a Visual Studio Action, but it is failing.  Please check the attachment, what I am dong wrong?  Thanks in advance.

Robert Jurado

Hi Robert

The attachment didn’t show up.

Here is the attachment... Thank you in advance for the help.

Okay, having a problem with the attachments, let's try this:

Attachment unavailable

Hi Robert,

It looks like you are still having issues with your datashare. This error is basically saying that it cannot either find the network share or the user that the agent service is running under does not have access to the datashare directory.

Check out our wiki page for more detailed information on the datashare http://wiki.finalbuilder.com/displa...Data+Share.

I will suggest that you check the following:

1. Check that the datashare directory exists on the server and that the share points correctly to that directory. Check out the wiki for instructions on how to check and change the datashare values through the Continua config files.

2. Check that the user that is running the server service has full permissions on this folder and share.

3. Check that the user that is running the agent service has read and write permissions on the folder and share.

If these steps do not resolve the error then let us know and we can delve deeper into the problem.

Also, I noticed that your Visual Studio action will not work correctly with the Solution File that you specified. To get Continua to point to .sln in your repository you must use the expression syntax so that Continua knows to look in your repository. So instead of setting the solution file to ‘PDSAdmin-Main\PDSAAdmin.sln’, you need to point it to ‘$Source.PDSAdmin-Main$\PDSAAdmin.sln’. 


Check out http://wiki.finalbuilder.com/pages/…eId=655772 for more information on expressions in Continua.

Almost there, almost...

I re-intalled the Agent to make sure that I had the right path (because originally I changed it ) and yes, I noticed that it was pointing to the previous path.  So that's fixed.  Next, I changed the path to the Source and now it point to:

$Source.PDSA-Admin$\PDSAAdmin-Main\PDSAAdmin.sln

now it seems that it is picking up the solution and talking to TFS (I see my change comments on the tab Changes(1) ).   I opened up the solution, I  Release-compile and there is no error.  However, I am getting this error.   Any Ideas?


Attachment unavailable

Hi Robert,
With the information provided we cannot determine what values would be causing the invalid directory. I would suggest doing the following to determine why the visual studio action is not working correctly.
1. expand the parameters of the visual studio action in the build log. This lists every parameter that we send to Visual Studio including the working directory and the location of your .sln file. Check these values and make sure they are pointing to the right location.
2. Make sure that the user that the agent service is running under has full control of your agent workspace folder.
3. If you still cannot determine what the issue is then enable debugging in Continua. A full run down on enabling debugging can be found here: 

http://wiki.finalbuilder.com/displa...leshooting

With debugging enabled, try to run the action again and check the log once it fails. If you cannot determine the problem from the log then send us a copy of the log to support@finalbuilder.com and we will help you get to the bottom of this issue. When you send the log along, please include a screen shot of your Visual Studio action properties


How to add Build parameters to Visual studio action or MSBuild action ?



In MSBUILD i want to pass target , and property ? where to specify the /targe

Hi,

MSBuild properties are passed into the MSBuild actions using the Properties tab on the MSBuild action. This textarea can take any properties that can be added to the MSBuild. Each property name/value pair must be on a new line and must be in the format:property_name=property_value

We also represent a couple of the more common properties with their own individual properties. So to add a target, simply add your target value to the Target property.

Check out our wiki for more information:

http://wiki.finalbuilder.com/displa...ild+Action


Thx

Done by adding these in property :


Configuration=Production
Platform=AnyCPU
SqlPublishProfilePath=$Workspace$\MySourceCode\NextGen DB\NextGen DB\Production.publish.xml