Visual studio 2017 update 1 and 2 crash when readyrolltargetsPath has changed to support VSTS
Hans_ter_Wal
Posts: 1
in ReadyRoll
Hi,
Ever since I changed the ReadyRollTargetsPath, I am unable to use deploy or even build the project, because visual studio crashes. When I change it back it works again. I succefully setup the flow as explained in https://documentation.red-gate.com/display/RR1/Build+components, but unfortunally local deployment doesn't work anymore.
I used this
--> old
<!--<ReadyRollTargetsPath>$(AppDataPath)\Microsoft\VisualStudio\12.0Exp\Extensions\ReadyRoll\ReadyRoll SQL Server Database Projects\1.0\ReadyRoll.Data.Schema.SSDT.targets</ReadyRollTargetsPath>-->
--> new
<ReadyRollTargetsPath Condition="Exists('$(MSBuildThisFileDirectory)..\packages')">$([System.IO.Directory]::GetDirectories('$(MSBuildThisFileDirectory)..\packages', 'ReadyRoll.MSBuild.*')[0])\tools\ReadyRoll.Data.Schema.SSDT.targets</ReadyRollTargetsPath>
I'm using readyroll1.13 trial edition on windows 8 running in Administrator mode.
Ever since I changed the ReadyRollTargetsPath, I am unable to use deploy or even build the project, because visual studio crashes. When I change it back it works again. I succefully setup the flow as explained in https://documentation.red-gate.com/display/RR1/Build+components, but unfortunally local deployment doesn't work anymore.
I used this
--> old
<!--<ReadyRollTargetsPath>$(AppDataPath)\Microsoft\VisualStudio\12.0Exp\Extensions\ReadyRoll\ReadyRoll SQL Server Database Projects\1.0\ReadyRoll.Data.Schema.SSDT.targets</ReadyRollTargetsPath>-->
--> new
<ReadyRollTargetsPath Condition="Exists('$(MSBuildThisFileDirectory)..\packages')">$([System.IO.Directory]::GetDirectories('$(MSBuildThisFileDirectory)..\packages', 'ReadyRoll.MSBuild.*')[0])\tools\ReadyRoll.Data.Schema.SSDT.targets</ReadyRollTargetsPath>
I'm using readyroll1.13 trial edition on windows 8 running in Administrator mode.
Tagged:
Comments
If this isn't the cause of the problem, please send us more details of how Visual Studio crashes (possibly with a screenshot), and the "rrlog.txt" file from your Temp folder to readyroll@red-gate.com
Software Engineer, RedGate Software
Update just the extension and ReadyRoll breaks on the build target. Update just the NuGet and it breaks again. Get the combination right on all machines to fix it. This is regular pain.
Has anyone found a way to work with this other than a) never updating ReadyRoll or b) abandoning ReadyRoll? (The latter is becoming increasingly attractive to me). Perhaps a better condition for the <ReadyRollTargetsPath> than recommended in the Product documentation?
Apologies for the inconvenience cause by this issue, the problem should have been resolved in ReadyRoll 1.14. If VS is still crashing during build, if you could please post the version of the ReadyRoll.MSBuild NuGet package (which can be found in the output of your build), plus the version of the ReadyRoll extension itself, that will help us investigate the combinations of installed components further.
Please also ensure that NuGet has cleaned up any obsolete package versions (e.g. prior to 1.14) from the SolutionDir\Packages folder, as these may continue to cause conflicts.
Finally, to avoid the issue of packages conflicting, you can include the BuildingInsideVisualStudio flag as part of the <ReadyRollTargetsPath> element:
This will ensure that the ReadyRoll.MSBuild package is only used when building on your Continuous Integration server (or otherwise outside of the IDE).
Product Manager
Redgate Software