bkaradzic / GENie

GENie - Project generator tool
Other
897 stars 166 forks source link

VS2017 warning MSB4011 #356

Open BillelAdam opened 6 years ago

BillelAdam commented 6 years ago

VS2017 projects generate the following warning:

warning MSB4011: "C:\Users\Username\AppData\Local\Microsoft\MSBuild\v4.0\Microsoft.Cpp.Win32.user.props" cannot be imported again. It was already imported at "C:\myproject.vcxproj". This is most likely a build authoring error. This subsequent import will be ignored.

so when having a solution with a couple of projects it gets spammed in the VS output and covers other useful output like errors.

bkaradzic commented 6 years ago

Can you create minimal genie.lua script that causes this issue? I haven't seen it.

BillelAdam commented 6 years ago

I have pinpointed the problem to an ill-formatted configuration file,basically it was re-defining configurations { "Debug", "Release" } not only in the solution but in the projects too,is there any way this can be caught at generation time to prevent such thing?