Quantcast
Channel: Team Foundation Server - General forum
Viewing all articles
Browse latest Browse all 6687

publish sqlproj during build, but don't publish other projects

$
0
0

I have a solution with various projects (including a wpf project, a console project and a sql project).

I created a publish file for the sql project to deploy the database to a specific server and database to run the unittests on it after the build.
I configured "always re-create database" in the publish profile.

Then I created a build definition and put the msbuild arguments:

/t:Build /t:Publish /p:SQLPublishProfilePath=publish.unittest.xml

The Build now is able to publish the sql project, but it also tries to publish the wpf project and the sql project - which I try to avoid.
Is there any way to avoid publishing those other projects?

Is there a way to publish the database on each build - without changing the default build template?

PS: I'm using VS2013 and TFS2013



Viewing all articles
Browse latest Browse all 6687


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>