# Running a Visual Studio Action

**URL:** <https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985>\
**Category:** Discussion\
**Created:** [June 8, 2013, 9:24am UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985 "2013-06-08T09:24:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertj](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@robertj](https://www.finalbuilder.com/forums/u/robertj)\
**Post date:** [June 8, 2013, 9:24am UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985/1 "2013-06-08T09:24:22Z")

</div>

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

Robert Jurado

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [June 9, 2013, 2:20am UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985/2 "2013-06-09T02:20:13Z")

</div>

Hi Robert   
  
 The attachment didn’t show up.

---

<div class="post-metadata">

**Author:** ![robertj](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@robertj](https://www.finalbuilder.com/forums/u/robertj)\
**Post date:** [June 10, 2013, 5:10am UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985/3 "2013-06-10T05:10:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![robertj](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@robertj](https://www.finalbuilder.com/forums/u/robertj)\
**Post date:** [June 10, 2013, 5:14am UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985/4 "2013-06-10T05:14:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![davem](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@davem](https://www.finalbuilder.com/forums/u/davem)\
**Post date:** [June 11, 2013, 1:34am UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985/5 "2013-06-11T01:34:56Z")

</div>

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&nbsp;[http://wiki.finalbuilder.com/displa...Data+Share](http://wiki.finalbuilder.com/display/continua/Server+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.

---

<div class="post-metadata">

**Author:** ![davem](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@davem](https://www.finalbuilder.com/forums/u/davem)\
**Post date:** [June 11, 2013, 1:40am UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985/6 "2013-06-11T01:40:38Z")

</div>

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’.&nbsp;

Check out [http://wiki.finalbuilder.com/pages/…eId=655772](http://wiki.finalbuilder.com/pages/viewpage.action?pageId=655772)&nbsp;for more information on expressions in Continua.

---

<div class="post-metadata">

**Author:** ![robertj](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@robertj](https://www.finalbuilder.com/forums/u/robertj)\
**Post date:** [June 12, 2013, 12:04pm UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985/7 "2013-06-12T12:04:15Z")

</div>

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. &nbsp;So that's fixed. &nbsp;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) ). &nbsp; I opened up the solution, I &nbsp;Release-compile and there is no error. &nbsp;However, I am getting this error. &nbsp; Any Ideas?

Attachment unavailable

---

<div class="post-metadata">

**Author:** ![davem](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@davem](https://www.finalbuilder.com/forums/u/davem)\
**Post date:** [June 12, 2013, 5:47am UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985/8 "2013-06-12T05:47:04Z")

</div>

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:&nbsp;

[http://wiki.finalbuilder.com/displa...leshooting](http://wiki.finalbuilder.com/display/continua/Troubleshooting)

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

---

<div class="post-metadata">

**Author:** ![lalit](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/bbe5ce/32.png) [@lalit](https://www.finalbuilder.com/forums/u/lalit)\
**Post date:** [June 20, 2013, 10:20am UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985/9 "2013-06-20T10:20:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lalit](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/bbe5ce/32.png) [@lalit](https://www.finalbuilder.com/forums/u/lalit)\
**Post date:** [June 20, 2013, 3:25am UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985/10 "2013-06-20T03:25:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![davem](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@davem](https://www.finalbuilder.com/forums/u/davem)\
**Post date:** [June 21, 2013, 1:27am UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985/11 "2013-06-21T01:27:14Z")

</div>

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](http://wiki.finalbuilder.com/display/continua/MSBuild+Action)

---

<div class="post-metadata">

**Author:** ![lalit](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/bbe5ce/32.png) [@lalit](https://www.finalbuilder.com/forums/u/lalit)\
**Post date:** [June 24, 2013, 2:19am UTC](https://www.finalbuilder.com/forums/t/running-a-visual-studio-action/4985/12 "2013-06-24T02:19:34Z")

</div>

Thx

Done by adding these in property :

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