Задайте вопросЗадайте вопрос
 

ОтвеченоTeam Build Deploy and Database

  • 25 июня 2009 г. 20:36Chris McLeod Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    We've got Team System deploying our Visual Studio projects for everything except Database projects. We got it working on SQL 2000 but cannot seem to make it happen with SQL 2008. The current build error is:

    C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets(120,5): error MSB4018: The "SqlDeployTask" task failed unexpectedly.

    C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets(120,5): error MSB4018: System.InvalidOperationException: Nullable object must have a value.

    C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets(120,5): error MSB4018: at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)

    C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets(120,5): error MSB4018: at Microsoft.Data.Schema.Tasks.DBDeployTask.Execute()

    C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets(120,5): error MSB4018: at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)

    Ideas on what this could be or help troubleshooting would be great.

    Thanks, Chris.

Ответы

  • 1 июля 2009 г. 12:11Chris McLeod Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено

    I got some help from Barclay and it is now working! Here is what we did. We took out the bold Deploy text below

    <SolutionToBuild Include="$(BuildProjectFolderPath)/../Database/MyTest.dbproj">

            <Targets>Build;Deploy</Targets>

            <Properties></Properties>
    </SolutionToBuild>

    and added the following AfterDropBuild target

    <Target Name="AfterDropBuild">
        <
    MSBuild Projects="$(SolutionRoot)\MyTest.dbproj" Properties="Configuration=DEBUG;OutDir=$(DropLocation)\$(BuildNumber)\Default\" Targets="Deploy"
    />
    </
    Target
    >

    it all just succesfully completed after that. The build error could use some help but other than that this is very cool. Thanks!

    • Помечено в качестве ответаChris McLeod 1 июля 2009 г. 12:11
    •  

Все ответы