I created an SSDT database solution in VS 2012. I installed VS 2013 and opened the solution and the local build fails. If I close VS 2013 and reopen VS 2012 and build the solution, the build is successful. Both VS versions are reading from the same solution
folder mapped to a TFS team project. I have tried forcing the latest version with all overwrite options and receive the same result.
Microsoft Visual Studio Ultimate 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51209
Installed Version: Ultimate
VS 2013 output:
------ Rebuild All started: Project: master, Configuration: Debug Any CPU ------
C:\Program Files (x86)\MSBuild\12.0\bin\Csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /errorendlocation /preferreduilang:en-US /highentropyva+ /reference:"C:\Program
Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /debug+ /debug:full /optimize- /out:obj\Debug\master.dll /subsystemversion:6.00 /target:library /warnaserror- /utf8output "C:\Users\mstitt\AppData\Local\Temp\.NETFramework,Version=v4.5.SqlClrAttributes.cs"
Creating a model to represent the project...
Loading project references...
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets(513,5): Error: MSB4018: The "SqlBuildTask" task failed unexpectedly.
System.MethodAccessException: Attempt by method 'Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.OnCreateCustomSchemaData(System.String, System.Collections.Generic.Dictionary`2<System.String,System.String>)' to access method 'Microsoft.Data.Tools.Components.Diagnostics.SqlTracer.ShouldTrace(System.Diagnostics.TraceEventType)'
failed.
at Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.OnCreateCustomSchemaData(String filePath, Dictionary`2 referenceMetadata)
at Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.CreateCustomSchemaData(String filePath, Dictionary`2 referenceMetadata)
at Microsoft.Data.Tools.Schema.Tasks.Sql.TaskHostLoader.ProcessReferences(TaskLoggingHelper providedLogger, SqlTaskHost host, ErrorManager errors)
at Microsoft.Data.Tools.Schema.Tasks.Sql.TaskHostLoader.LoadImpl(ITaskHost providedHost, TaskLoggingHelper providedLogger)
at Microsoft.Data.Tools.Schema.Tasks.Sql.TaskHostLoader.Load(ITaskHost providedHost, TaskLoggingHelper providedLogger)
at Microsoft.Data.Tools.Schema.Tasks.Sql.SqlBuildTask.ExecuteLoadTaskHostStep()
at Microsoft.Data.Tools.Schema.Tasks.Sql.SqlBuildTask.ExecuteStep(Func`1 step)
at Microsoft.Data.Tools.Schema.Tasks.Sql.SqlBuildTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
Done building project "master.sqlproj" -- FAILED.
Build FAILED.
------ Rebuild All started: Project: RFR_SYS, Configuration: Debug Any CPU ------
Done building project "master.sqlproj" -- FAILED.
Done building project "master.sqlproj" -- FAILED.
Done building project "master.sqlproj" -- FAILED.
Done building project "master.sqlproj" -- FAILED.
C:\Program Files (x86)\MSBuild\12.0\bin\Csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /errorendlocation /preferreduilang:en-US /highentropyva+ /reference:C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\master\bin\Debug\master.dll
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /debug+ /debug:full /optimize- /out:obj\Debug\RFR_SYS.dll /subsystemversion:6.00 /target:library /warnaserror- /utf8output "C:\Users\mstitt\AppData\Local\Temp\.NETFramework,Version=v4.5.SqlClrAttributes.cs"
C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\RFR_SYS\CSC: Error: CS0006: Metadata file 'C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\master\bin\Debug\master.dll' could not be found
Done building project "RFR_SYS.sqlproj" -- FAILED.
Build FAILED.
------ Rebuild All started: Project: DTL, Configuration: Debug Any CPU ------
C:\Program Files (x86)\MSBuild\12.0\bin\Csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /errorendlocation /preferreduilang:en-US /highentropyva+ /reference:C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\master\bin\Debug\master.dll
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /reference:C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\RFR_SYS\bin\Debug\RFR_SYS.dll /debug+ /debug:full /optimize- /out:obj\Debug\DTL.dll /subsystemversion:6.00
/target:library /warnaserror- /utf8output "C:\Users\mstitt\AppData\Local\Temp\.NETFramework,Version=v4.5.SqlClrAttributes.cs"
C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\CRM\CSC: Error: CS0006: Metadata file 'C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\master\bin\Debug\master.dll' could not be found
C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\CRM\CSC: Error: CS0006: Metadata file 'C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\RFR_SYS\bin\Debug\RFR_SYS.dll' could not be found
Done building project "DTL.sqlproj" -- FAILED.
Build FAILED.
========== Rebuild All: 0 succeeded, 3 failed, 0 skipped ==========
VS 2012 output:
------ Rebuild All started: Project: master, Configuration: Debug Any CPU ------
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /errorendlocation /preferreduilang:en-US /highentropyva+ /reference:"C:\Program
Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /debug+ /debug:full /optimize- /out:obj\Debug\master.dll /subsystemversion:6.00 /target:library /warnaserror- /utf8output "C:\Users\mstitt\AppData\Local\Temp\.NETFramework,Version=v4.5.SqlClrAttributes.cs"
Loading project references...
Loading project files...
Building the project model and resolving object interdependencies...
Validating the project model...
Writing model to C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\master\obj\Debug\Model.xml...
master -> C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\master\bin\Debug\master.dll
master -> C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\master\bin\Debug\master.dacpac
------ Rebuild All started: Project: RFR_SYS, Configuration: Debug Any CPU ------
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /errorendlocation /preferreduilang:en-US /highentropyva+ /reference:C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\master\bin\Debug\master.dll
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /debug+ /debug:full /optimize- /out:obj\Debug\RFR_SYS.dll /subsystemversion:6.00 /target:library /warnaserror- /utf8output "C:\Users\mstitt\AppData\Local\Temp\.NETFramework,Version=v4.5.SqlClrAttributes.cs"
Loading project references...
Loading project files...
Building the project model and resolving object interdependencies...
Validating the project model...
Writing model to C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\RFR_SYS\obj\Debug\Model.xml...
------ Rebuild All started: Project: DTL, Configuration: Debug Any CPU ------
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /errorendlocation /preferreduilang:en-US /highentropyva+ /reference:C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\master\bin\Debug\master.dll
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /reference:C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\RFR_SYS\bin\Debug\RFR_SYS.dll /debug+ /debug:full /optimize- /out:obj\Debug\DTL.dll /subsystemversion:6.00
/target:library /warnaserror- /utf8output "C:\Users\mstitt\AppData\Local\Temp\.NETFramework,Version=v4.5.SqlClrAttributes.cs"
Loading project references...
Loading project files...
Building the project model and resolving object interdependencies...
Validating the project model...
Writing model to C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\CRM\obj\Debug\Model.xml...
DTL -> C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\CRM\bin\Debug\DTL.dll
DTL -> C:\_TFS\2008\CRM\DB\Main\SQLSCRIBE\CRM\bin\Debug\DTL.dacpac
========== Rebuild All: 3 succeeded, 0 failed, 0 skipped ==========