私はSQL 2016インスタンスに接続し、データベースをVisual Studioにインポートして作成したDBプロジェクトを持っています。CLRの展開時にTFSからのデータベース配置に失敗する
パブリッシュファイルを作成してソースコントロールにチェックインすることで、デプロイメントを作成しました。私が変更しなければならなかった設定の中には、システムからいくつかのアカウントを削除したいので、ユーザーアカウントや権限の変更を展開しないというものでした。 TFSは、展開を行うためのMSBuildを実行すると
、ここに渡されるコマンドライン引数です:/p:VisualStudioVersion=14.0/T:ビルドし、公開
問題/p:SqlPublishProfilePath=MyDBProj.publish.xml
C:\Builds\1\MyDBProj\MyDBProj - Prod\bin\MyDBProj.publish.sql (0, 0)
[System.Web] has an unresolved dependency to [System.Design]. A deployment script with correct ordering cannot be created.
C:\Builds\1\MyDBProj\MyDBProj - Prod\bin\MyDBProj.publish.sql (0, 0)
[System.Runtime.Remoting] has an unresolved dependency to [System.Web]. A deployment script with correct ordering cannot be created.
C:\Builds\1\MyDBProj\MyDBProj - Prod\bin\MyDBProj.publish.sql (0, 0)
[System.Design] has an unresolved dependency to [System.Web]. A deployment script with correct ordering cannot be created.
C:\Builds\1\MyDBProj\MyDBProj - Prod\bin\MyDBProj.publish.sql (0, 0)
An error occurred during deployment plan generation. Deployment cannot continue.
(-1, 0)
Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException)
Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
私は、データベースの参照として、マスタを参照しようとしました:私は、CLRユーザー定義型を除外しても、アセンブリを除外しない場合、展開はエラー(多くの他の類似の間で)以下で失敗したことにあります。他に何をすべきかわからない。私は、TFS上に構築されたときにデータベースと共に配備されたCLRコンポーネントが必要です。
ビルドは問題なくローカルで実行されましたか(TFSではなく) –
はい。同じマシン(Build Server/TFS Server)にログインし、VSとプロジェクトをビルドしてデプロイすると、すべて正常に動作します。それはTFS経由で実行すると失敗するだけです。 – SpaceCowboy74