-
Hi, We have a tool and a custom task that runs it, and after investigating VS 2022 17.1 Preview ( The tool we are invoking, The message I get is:
The same project builds without issue using 17.0 Current, We have maintained this task since 2016 so it has survived several updates to VS/MSBuild, but seems to have come unstuck. My understanding is that msbuild prior to 17.0 had a binding redirect in the config file for the I also understand that this has been removed from 17.0 in order to allow older toolchains to be mixed with a newer MSBuild (i.e msbuild 17 with MSVC cl etc 15 or something). Therefore our reference to I gained this by reading: I own these tasks, so changes can be made. From the Developer Community issue I tried changing our task code, which derives from Unfortunately this caused the task to start failing in both Current and Preview instances. The message is similar:
Also from the Developer Community issue, I tried adding
to our This didn't help. As mentioned earlier, the I believe we derive from The overall goal is:
Question 1Is this the right way to approach the problem anymore? The reason for choosing Question 2If using Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This question has broadly been answered over on Developer Community. I won't reproduce all the details of the thread, but the gist from it is:
Having redirection to the latest Microsoft.Build.CPPTasks.Common.dll in VS 2019 was causing problems in a number of scenarios. In VS 2022 we created another assembly can be used for referencing cpp tasks classes and which will not change the version untill next major Visual Studio release. It you own the tasks that reference Microsoft.Build.CPPTasks.Common.dll, please change them to reference To ensure that Microsoft.Build.CPPTasks.Common.Base.dll is found when loading the extension tasks dll:
|
Beta Was this translation helpful? Give feedback.
This question has broadly been answered over on Developer Community.
I won't reproduce all the details of the thread, but the gist from it is:
Having redirection to the latest Microsoft.Build.CPPTasks.Common.dll in VS 2019 was causing problems in a number of scenarios. In VS 2022 we created another assembly can be used for referencing cpp tasks classes and which will not change the version untill next major Visual Studio release.
It you own the tasks that reference Microsoft.Build.CPPTasks.Common.dll, please change them to reference
Microsoft.Build.CPPTasks.Common.Base.dll - its content is identical to Microsoft.Build.CPPTasks.Common.dll, but its version w…