The new dependency validation feature in VS 2017 Enterprise requires an additional component to be checked in the installer. It then upgrades your .csproj
files to include Microsoft.VisualStudio.TeamArchitect.ModelingProject.targets
. Works like a charm locally but not on a build server:
Error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ArchitectureTools\Microsoft.VisualStudio.TeamArchitect.ModelingProject.targets" was not found. Also, tried to find "ArchitectureTools\Microsoft.VisualStudio.TeamArchitect.ModelingProject.targets" in the fallback search path(s) for $(VSToolsPath) - "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0" . These search paths are defined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe.Config". Confirm that the path in the declaration is correct, and that the file exists on disk in one of the search paths.
Our build server is Visual Studio Team Services configured to use latest version of VS (i.e. 2017). What do we need to install/configure to get it working?