Bug 19803 – Add support for latest VS 2019 Preview - 16.1.0
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2019-04-12T09:35:19Z
Last change time
2019-04-21T09:39:37Z
Assigned to
No Owner
Creator
ZombineDev
Comments
Comment #0 by petar.p.kirov — 2019-04-12T09:35:19Z
I had installed VS 2019 + VisualD v0.49.0 and everything was working smoothly. Thanks for the awesome work, by the way!
Today I upgraded my VS 2019 to "16.1.0 Preview 1.0" and I got this message when trying to build a dmd:
1>C:\Program Files (x86)\VisualD\msbuild\dcompile.targets(136,5): error MSB4062: The "dbuild.CompileD" task could not be loaded from the assembly C:\Program Files (x86)\VisualD\msbuild\dbuild.16.0.dll. Could not load file or assembly 'Microsoft.Build.CPPTasks.Common, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
1>Done building project "dmd.vcxproj" -- FAILED.
After the update, the version of "Microsoft.Build.CPPTasks.Common.dll" is 16.0.28803 (under "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Microsoft\VC\v160"), so I suspect that the problem is due to the different version.
This may be difficult to solve right now, as the latest VS SDK Nuget package is 16.0.200 (https://www.nuget.org/packages/microsoft.visualstudio.sdk), so I don't know whether that would be compatible with VS 2019 16.1.0.