How to make MSBuild find VSGlobals.vsct during command line builds #247
-
Using the VS2022 Community Toolkit to extend VS. Inside my .vsct file I do a few includes, where Include href="VSGlobals.vsct" is one of them. Building my solution from within VS2022 works fine. However, if I clean the project from all non source-controlled file and do a full rebuild using MSBuild command line, I hit an error where the build can't find the VSGlobals.vsct file. The error messages from MSBuild is simply "error VSCT1118: File not found: Unable to locate 'VSGlobals.vsct' on the include paths provided". If I then once (re)build from within VS2022 and then do a full MSBuild, the MSBuild works fine. I know that I can copy this file into my project and it will most likely build successfully using MSBuild, but I don't really want to do that unless I have to. Any idea what I need to do in order to make the MSBuild process find this file on the first full rebuild? Palli |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@pallibj Are you doing a nuget restore before the build? |
Beta Was this translation helpful? Give feedback.
@pallibj Are you doing a nuget restore before the build?