Teamcity .Net project, conditional project reference when building in Visual Studio -
i have build chains in teamcity, dependent artifact copied /bin directory of main project. project file references artifact. works.
what want allow project file include, instead of binary reference, when building/debugging visual studio. have tried approaches, such using conditionals in project file, there nice clean way approach this?
may there part of solution. may way of using several referencing types of projs.
<itemgroup condition=" '$(referenceddacpac)' == '' "> <projectreference include="..\omnius\omnius.sqlproj"> <name>omnius</name> <project>{26075a62-f6b0-40c3-baa2-b9a9829da3c4}</project> <private>false</private> <suppressmissingdependencieserrors>false</suppressmissingdependencieserrors> </projectreference> <projectreference include="..\omnius_finance_jural\omnius_finance_jural.sqlproj"> <name>omnius_finance_jural</name> <project>{c8b0aee7-c2a4-4370-8451-13b455bb5363}</project> <private>false</private> <suppressmissingdependencieserrors>false</suppressmissingdependencieserrors> </projectreference> </itemgroup> <itemgroup condition=" '$(referenceddacpac)' == 'true' "> <artifactreference include="..\dacpacs\omnius.sqlproj.dacpac"> <suppressmissingdependencieserrors>false</suppressmissingdependencieserrors> </artifactreference> <artifactreference include="..\dacpacs\omnius_finance_jural.sqlproj.dacpac"> <suppressmissingdependencieserrors>false</suppressmissingdependencieserrors> </artifactreference> </itemgroup> when build in teamcity, send referenceddacpac "system" variable in build, , refer "artifactreference". when build in visualstudio, there no var , referencing occurs "projectreference".
Comments
Post a Comment