Advanced Question VS 2019 MSB4018 The "VCMessage" task failed unexpectedly.

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
7,046
Reaction score
1,307
Points
203
Location
Dallas, TX
So not sure if this is the correct area.

So I got a new PC and needed to get VS. I got vs2019 .

So I was able to recompile one solution and it worked.

So I copied the whole solution and renamed it. Loaded and made the changes in the cpp and h I needed to and built it.

Now I get this:
Error MSB4018 The "VCMessage" task failed unexpectedly.
<VCMessage Code="MSB8028" Type="Warning" Arguments="$(IntDirSharingProjects);$(IntDir)" Condition="'$(IgnoreWarnIntDirSharingDetected)' != 'true' and '$(IntDirSharingDetected)' == 'true'"/>
I have googled it and the only thing I have seen is the platform tool set.
I have this:
<PlatformToolset>v142</PlatformToolset>

Any ideas. Ran into this using vs2013 also
 
Last edited:

kuddel

Donator
Donator
Joined
Apr 1, 2008
Messages
1,808
Reaction score
325
Points
83
So I copied the whole solution and renamed it. Loaded and made the changes in the cpp and h I needed to and built it.
What exactly did you copy?
If you make a copy of a solution you have to copy the project as well.
So:
source.cpp, source.h, source.vcxproj, source.sln
will become:
destination.cpp, destination.h, destination.vcxproj, destination.sln

Then you have to edit the solution file to reference the new project file name:
Code:
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Source", "source.vcxproj", "{C99DB710-598C-43F5-8875-EBCEB45A7F05}"
becomes:
Code:
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Destination", "destination.vcxproj", "{C99DB710-598C-43F5-8875-EBCEB45A7F05}"

If the solution contains more than one project, you have to repeat the step of course.

In Visual Studio lingua a Solution is the container that holds one (or more) Projects; a Project contains the source files.

Code:
+- Solution
   +- ProjectA
   +- ProjectB
   +- ProjectC
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
7,046
Reaction score
1,307
Points
203
Location
Dallas, TX
Thanks. I think I got it.
So I copied the whole folder over so it had the cpp,h,.....

Then I deleted any debug folders and then this folder. SPACESHU.1A57C099.tlog
and then compiled and it works
 

kuddel

Donator
Donator
Joined
Apr 1, 2008
Messages
1,808
Reaction score
325
Points
83
Yeah, those temporary build files might contain references to the "old" project.:thumbup:
Usually only *.cpp,*.h,*.hpp,*.res,*.vcxproj and *.sln files are relevant.
 
Top