Hi,
I have converted a VS2012 LightSwitch project to VS2015 and I have one remaining issue.
The project builds correctly in VS2015 but it doesn't compile using msbuild. The error that I am getting is:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\LightSwitch\v5.0\Publish\Microsoft.LightSwitch.Publish.targets (634,9): errorMSB4018: The "PublishSchemaToScript" task failed unexpectedly. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SqlServer.Dac.Extensions, Version=13.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.SqlServer.Dac.Extensions, Version=13.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at
So it looks like it is in the publish of the SQL script. However the server has the file C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\130\Microsoft.SqlServer.Dac.Extensions.dll available.
For some reason it seems like MSBuild cannot find this file.
I can publish from Visual Studio without any issues at all so msbuild is missing something to make the publish work form the command line.
I have also tried this:
D:\CCNetSrc\Licensing\Licensing\PP.Licensing.PPLicenseManager>"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" PP.Licensing.PPLicense.lsxtproj /p:AssemblySearchPaths="C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\130" /p:AdditionalLibPaths="C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\130" /t:Publish
To try and force msbuild to have the ability to locate these dlls as well but this does not work.
Any ideas?
Thanks
Ian