我在构建项目时始终得到这个异常.我刚刚在机器上安装了操作系统,构建代理,依赖项和SQL Server 2008 R2.我.bak从旧的构建机器复制了所有数据库的backup(),它正常工作并将它们全部恢复到新硬件.我移植过的所有其他项目都运行正常,但这是最后一项,我无法弄清楚如何处理这个错误.
从我的MSBuild日志文件中,我可以看到该东西编译FooBar.sqlproj文件并继续创建.dacpac它爆炸的地方..sqlproj由于此异常,有许多后续项目无法实现.
我该怎么做才能解决错误并构建项目?
PrepareForBuild:
Creating directory ".\sql\".
GenerateSqlTargetFrameworkMoniker:
Skipping target "GenerateSqlTargetFrameworkMoniker" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /highentropyva- /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" /out:obj\Default\FooBar.dll /target:library /utf8output "C:\Users\User_Foo\AppData\Local\Temp\.NETFramework,Version=v4.0.SqlClrAttributes.cs"
SqlBuild:
Creating a model to represent the project...
Loading project references...
Loading project files...
Building the project model and resolving object interdependencies...
Validating the project model...
Writing model to D:\Builds\16\Foo\Sources\Database\FooBar\obj\Default\Model.xml...
CopyFilesToOutputDirectory:
Copying …Run Code Online (Sandbox Code Playgroud)