Repository: conan-io/conan

Issue:
[question] The imported project "...\conan_eigen.props" was not found
### What is your question?

I'm using `generators = "MSBuildDeps"` in `conanfile.py`.

But there is error:
error  : The imported project "...\conan_eigen.props" was not found. Confirm that the expression in the Import declaration "conan_eigen.props" is correct, and that the file exists on disk.  ...\conan_opencv_opencv_core_debug_x64.props

### Have you read the CONTRIBUTING guide?

- [x] I've read the CONTRIBUTING guide
[bug] MSBuildDeps incorrectly tries to import .props for non-transitive header-only packages that are not generated
### Environment details

* Operating System+version: Windows 11
* Compiler+version: MSVC 17.8.6
* Conan version: 2.0.17
* Python version: 3.12.1


### Steps to reproduce

Create a conanfile for a MSBuild project as such:
```py
from conan import ConanFile
from conan.tools.microsoft import MSBuildDeps

class Pkg(ConanFile):
    settings = "os", "compiler", "arch", "build_type"
    
    def requirements(self):
        self.requires("scnlib/2.0.0")
     
    def generate(self):
        ms = MSBuildDeps(self)
        ms.generate()
```
Call conan install on the project with any msvc profile and output dir of your choice.
Look at the .props files written out to the output dir by conan MSBuildDeps: for example, for x64 release, in the file `conan_scnlib__scnlib_release_x64.props` there is a line `<Import Condition="'$(conan_fast_float_props_imported)' != 'True'" Project="conan_fast_float.props"/>`, but conan_fast_float.props does not exist.
This causes msbuild to fail when trying to build the project that imports the main conandeps.props generated by MSBuildDeps with `1>C:\testProj\conanprops\conan_scnlib__scnlib_release_x64.props(4,5): error MSB4019: The imported project "C:\testProj\conanprops\conan_fast_float.props" was not found. Confirm that the expression in the Import declaration "conan_fast_float.props" is correct, and that the file exists on disk.`
This is the same issue as here https://github.com/conan-io/conan/issues/15334 (and probably related to https://github.com/conan-io/conan/issues/14014) but is much easier/quicker to see with scnlib rather than opencv (which does exhibit the same issue in my case as well).


### Logs

conan install:
```
conan install . --output-folder=conanprops -pr:h=msvc193-x64-release -pr:b=msvc193-x64-release -vtrace

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=20
compiler.runtime=static
compiler.runtime_type=Release
compiler.version=193
os=Windows

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=20
compiler.runtime=static
compiler.runtime_type=Release
compiler.version=193
os=Windows


======== Computing dependency graph ========
Graph root
    conanfile.py: C:\testProj\conanfile.py
Requirements
    fast_float/6.1.0#85dc5bf9d3d6e605abf536818397baf3 - Cache
    scnlib/2.0.0#1001c947d4b617948955f7bd91dfe816 - Cache
    simdutf/4.0.5#484ca7bbfbbb2bd3db6289011f5ba613 - Cache
Build requirements
    cmake/3.28.1#92f79424d7b65b12a84a2180866c3a78 - Cache
Resolved version ranges
    cmake/[>=3.16 <4]: cmake/3.28.1

======== Computing necessary packages ========
Requirements
    fast_float/6.1.0#85dc5bf9d3d6e605abf536818397baf3:da39a3ee5e6b4b0d3255bfef95601890afd80709#69f6c6968a0f2f98bdffcadd07a3ad2d - Skip
    scnlib/2.0.0#1001c947d4b617948955f7bd91dfe816:260caab82f7f9a9b15225e54c089dc0403ae11eb#9732b7f31ad0ba2745ed3e082b277882 - Cache
    simdutf/4.0.5#484ca7bbfbbb2bd3db6289011f5ba613:a2e7df6f7bd606b2763e544f3a2c87dd6c478874#55f6770eed0b83432ab48f06caef5454 - Cache
Build requirements
    cmake/3.28.1#92f79424d7b65b12a84a2180866c3a78:522dcea5982a3f8a5b624c16477e47195da2f84f#29e6903b5006c2b2f81003c9ebf7551b - Skip

======== Installing packages ========
simdutf/4.0.5: Already installed! (1 of 2)
scnlib/2.0.0: Already installed! (2 of 2)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated:     'cpp_info.names' used in: scnlib/2.0.0

======== Finalizing install (deploy, generators) ========
conanfile.py: Calling generate()
conanfile.py: Generators folder: C:\testProj\conanprops
conanfile.py: Generating aggregated env files
conanfile.py: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
Install finished successfully
```
generated files:
```
ls .\conanprops\

        Directory: C:\testProj\conanprops


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a---        2024-02-08     04:39           2215   conan_scnlib__scnlib_release_x64.props
-a---        2024-02-08     04:39           1126   conan_scnlib__scnlib_vars_release_x64.props
-a---        2024-02-08     04:39            425   conan_scnlib__scnlib.props
-a---        2024-02-08     04:39            389   conan_scnlib.props
-a---        2024-02-08     04:39           1925   conan_simdutf_release_x64.props
-a---        2024-02-08     04:39            924   conan_simdutf_vars_release_x64.props
-a---        2024-02-08     04:39            404   conan_simdutf.props
-a---        2024-02-08     04:39             56   conanbuild.bat
-a---        2024-02-08     04:39            593   conanbuildenv-release-x86_64.bat
-a---        2024-02-08     04:39            272   conandeps.props
-a---        2024-02-08     04:39             54   conanrun.bat
-a---        2024-02-08     04:39            585   conanrunenv-release-x86_64.bat
-a---        2024-02-08     04:39             67   deactivate_conanbuild.bat
-a---        2024-02-08     04:39             65   deactivate_conanrun.bat
```


Discussion:
Hi @sinall 

A bit more of detail would be needed to know what is happening:

- The Conan version (very important)
- A conanfile to reproduce (as minimal as possible)
- The command you are using (likely ``conan install``, but just in case, with the arguments)
- The full command output
- The list of all generated files inside the generators folder

Many thanks!
@memsharded Let me know if this is enough. I think maybe it is related with `opencv` and `eigen`.

The Conan version (2.0)
A conanfile to reproduce (as minimal as possible)
```
from conan import ConanFile
import os

class MyConan(ConanFile):
	settings = "os", "compiler", "build_type", "arch"

	generators = "MSBuildDeps"

	def requirements(self):
		self.requires("opencv/4.8.1")
		self.requires("libtiff/4.4.0", override=True)
		self.requires("freetype/2.12.1", override=True)
```
The command you are using (likely conan install, but just in case, with the arguments)
```
conan install . -of conaninfo/x64/Debug -pr:a debug-x64 --build missing
```
The full command output

The list of all generated files inside the generators folder
A couple of quick notes:

- ``-pr:a debug-x64 `` you typically don't want to use "debug" for your "build" context with your tool-requires. That would mean that you are running your potential tool-requires (tools, cmake, compilers, etc) in "debug" mode, which will be much slower
- The ``MSBuildDeps`` is a multi-config layout, it is not recommended to use a ``-of conaninfo/x64/Debug`` output folder with an specialized path. Just use the generator feature. You might use a ``layout()`` method with ``vs_layout(self)``, that implements the common VS projects layout
- You also typically want to use ``MSBuildToolchain`` and inject it in your project, specially if you are going to make a package out of it, and will manage different settings

Looking forward your output and list of generated files
@memsharded 

I have lots of dependencies, only the 'opencv' dependency has this problem. The issue is that conandoesn't generate conan_eigen.props' but opencv related props refers to this file.

output log is too big, see attachment.
[new 40.txt](https://github.com/conan-io/conan/files/13757838/new.40.txt)

generated files:

```
**Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        2023/12/23      0:09             54 conanbuild.bat
-a----        2023/12/23      0:09            585 conanbuildenv-debug-x86_64.bat
-a----        2023/12/23      0:09            272 conandeps.props
-a----        2023/12/23      0:09             52 conanrun.bat
-a----        2023/12/23      0:09            666 conanrunenv-debug-x86_64.bat
-a----        2023/12/23      0:09            388 conan_ade.props
-a----        2023/12/23      0:09           1875 conan_ade_debug_x64.props
-a----        2023/12/23      0:09            819 conan_ade_vars_debug_x64.props
-a----        2023/12/23      0:09            631 conan_brotli.props
-a----        2023/12/23      0:09            436 conan_brotli_brotlicommon.props
-a----        2023/12/23      0:09           2067 conan_brotli_brotlicommon_debug_x64.props
-a----        2023/12/23      0:09           1166 conan_brotli_brotlicommon_vars_debug_x64.props
-a----        2023/12/23      0:09            427 conan_brotli_brotlidec.props
-a----        2023/12/23      0:09           2155 conan_brotli_brotlidec_debug_x64.props
-a----        2023/12/23      0:09           1100 conan_brotli_brotlidec_vars_debug_x64.props
-a----        2023/12/23      0:09            427 conan_brotli_brotlienc.props
-a----        2023/12/23      0:09           2155 conan_brotli_brotlienc_debug_x64.props
-a----        2023/12/23      0:09           1100 conan_brotli_brotlienc_vars_debug_x64.props
-a----        2023/12/23      0:09            394 conan_bzip2.props
-a----        2023/12/23      0:09           1899 conan_bzip2_debug_x64.props
-a----        2023/12/23      0:09            863 conan_bzip2_vars_debug_x64.props
-a----        2023/12/23      0:09           1185 conan_ffmpeg.props
-a----        2023/12/23      0:09            421 conan_ffmpeg_avcodec.props
-a----        2023/12/23      0:09           3543 conan_ffmpeg_avcodec_debug_x64.props
-a----        2023/12/23      0:09           1091 conan_ffmpeg_avcodec_vars_debug_x64.props
-a----        2023/12/23      0:09            424 conan_ffmpeg_avdevice.props
-a----        2023/12/23      0:09           2827 conan_ffmpeg_avdevice_debug_x64.props
-a----        2023/12/23      0:09           1165 conan_ffmpeg_avdevice_vars_debug_x64.props
-a----        2023/12/23      0:09            424 conan_ffmpeg_avfilter.props
-a----        2023/12/23      0:09           2813 conan_ffmpeg_avfilter_debug_x64.props
-a----        2023/12/23      0:09           1078 conan_ffmpeg_avfilter_vars_debug_x64.props
-a----        2023/12/23      0:09            424 conan_ffmpeg_avformat.props
-a----        2023/12/23      0:09           2569 conan_ffmpeg_avformat_debug_x64.props
-a----        2023/12/23      0:09           1090 conan_ffmpeg_avformat_vars_debug_x64.props
-a----        2023/12/23      0:09            418 conan_ffmpeg_avutil.props
-a----        2023/12/23      0:09           1995 conan_ffmpeg_avutil_debug_x64.props
-a----        2023/12/23      0:09           1056 conan_ffmpeg_avutil_vars_debug_x64.props
-a----        2023/12/23      0:09            424 conan_ffmpeg_postproc.props
-a----        2023/12/23      0:09           2131 conan_ffmpeg_postproc_debug_x64.props
-a----        2023/12/23      0:09           1078 conan_ffmpeg_postproc_vars_debug_x64.props
-a----        2023/12/23      0:09            430 conan_ffmpeg_swresample.props
-a----        2023/12/23      0:09           2155 conan_ffmpeg_swresample_debug_x64.props
-a----        2023/12/23      0:09           1122 conan_ffmpeg_swresample_vars_debug_x64.props
-a----        2023/12/23      0:09            421 conan_ffmpeg_swscale.props
-a----        2023/12/23      0:09           2119 conan_ffmpeg_swscale_debug_x64.props
-a----        2023/12/23      0:09           1056 conan_ffmpeg_swscale_vars_debug_x64.props
-a----        2023/12/23      0:09            403 conan_freetype.props
-a----        2023/12/23      0:09           2321 conan_freetype_debug_x64.props
-a----        2023/12/23      0:09            932 conan_freetype_vars_debug_x64.props
-a----        2023/12/23      0:09            509 conan_imath.props
-a----        2023/12/23      0:09            433 conan_imath_imath_config.props
-a----        2023/12/23      0:09           2055 conan_imath_imath_config_debug_x64.props
-a----        2023/12/23      0:09           1128 conan_imath_imath_config_vars_debug_x64.props
-a----        2023/12/23      0:09            424 conan_imath_imath_lib.props
-a----        2023/12/23      0:09           2141 conan_imath_imath_lib_debug_x64.props
-a----        2023/12/23      0:09           1081 conan_imath_imath_lib_vars_debug_x64.props
-a----        2023/12/23      0:09            397 conan_jasper.props
-a----        2023/12/23      0:09           2011 conan_jasper_debug_x64.props
-a----        2023/12/23      0:09            887 conan_jasper_vars_debug_x64.props
-a----        2023/12/23      0:09            391 conan_jbig.props
-a----        2023/12/23      0:09           1887 conan_jbig_debug_x64.props
-a----        2023/12/23      0:09            842 conan_jbig_vars_debug_x64.props
-a----        2023/12/23      0:09            413 conan_libdeflate.props
-a----        2023/12/23      0:09            445 conan_libdeflate__libdeflate.props
-a----        2023/12/23      0:09           2103 conan_libdeflate__libdeflate_debug_x64.props
-a----        2023/12/23      0:09           1230 conan_libdeflate__libdeflate_vars_debug_x64.props
-a----        2023/12/23      0:09            405 conan_libfdk_aac.props
-a----        2023/12/23      0:09            433 conan_libfdk_aac_fdk-aac.props
-a----        2023/12/23      0:09           2055 conan_libfdk_aac_fdk-aac_debug_x64.props
-a----        2023/12/23      0:09           1140 conan_libfdk_aac_fdk-aac_vars_debug_x64.props
-a----        2023/12/23      0:09            403 conan_libiconv.props
-a----        2023/12/23      0:09           1935 conan_libiconv_debug_x64.props
-a----        2023/12/23      0:09            940 conan_libiconv_vars_debug_x64.props
-a----        2023/12/23      0:09            400 conan_libjpeg.props
-a----        2023/12/23      0:09           1923 conan_libjpeg_debug_x64.props
-a----        2023/12/23      0:09            954 conan_libjpeg_vars_debug_x64.props
-a----        2023/12/23      0:09            409 conan_libmp3lame.props
-a----        2023/12/23      0:09           1959 conan_libmp3lame_debug_x64.props
-a----        2023/12/23      0:09            972 conan_libmp3lame_vars_debug_x64.props
-a----        2023/12/23      0:09            397 conan_libpng.props
-a----        2023/12/23      0:09           2005 conan_libpng_debug_x64.props
-a----        2023/12/23      0:09            897 conan_libpng_vars_debug_x64.props
-a----        2023/12/23      0:09            400 conan_libtiff.props
-a----        2023/12/23      0:09           2613 conan_libtiff_debug_x64.props
-a----        2023/12/23      0:09            919 conan_libtiff_vars_debug_x64.props
-a----        2023/12/23      0:09            397 conan_libvpx.props
-a----        2023/12/23      0:09           1911 conan_libvpx_debug_x64.props
-a----        2023/12/23      0:09            887 conan_libvpx_vars_debug_x64.props
-a----        2023/12/23      0:09            857 conan_libwebp.props
-a----        2023/12/23      0:09            427 conan_libwebp_sharpyuv.props
-a----        2023/12/23      0:09           2031 conan_libwebp_sharpyuv_debug_x64.props
-a----        2023/12/23      0:09           1099 conan_libwebp_sharpyuv_vars_debug_x64.props
-a----        2023/12/23      0:09            415 conan_libwebp_webp.props
-a----        2023/12/23      0:09            436 conan_libwebp_webpdecoder.props
-a----        2023/12/23      0:09           2067 conan_libwebp_webpdecoder_debug_x64.props
-a----        2023/12/23      0:09           1165 conan_libwebp_webpdecoder_vars_debug_x64.props
-a----        2023/12/23      0:09            430 conan_libwebp_webpdemux.props
-a----        2023/12/23      0:09           2153 conan_libwebp_webpdemux_debug_x64.props
-a----        2023/12/23      0:09           1121 conan_libwebp_webpdemux_vars_debug_x64.props
-a----        2023/12/23      0:09            424 conan_libwebp_webpmux.props
-a----        2023/12/23      0:09           2129 conan_libwebp_webpmux_debug_x64.props
-a----        2023/12/23      0:09           1077 conan_libwebp_webpmux_vars_debug_x64.props
-a----        2023/12/23      0:09           2101 conan_libwebp_webp_debug_x64.props
-a----        2023/12/23      0:09           1011 conan_libwebp_webp_vars_debug_x64.props
-a----        2023/12/23      0:09            400 conan_libx264.props
-a----        2023/12/23      0:09           1923 conan_libx264_debug_x64.props
-a----        2023/12/23      0:09            906 conan_libx264_vars_debug_x64.props
-a----        2023/12/23      0:09            400 conan_libx265.props
-a----        2023/12/23      0:09           1923 conan_libx265_debug_x64.props
-a----        2023/12/23      0:09            906 conan_libx265_vars_debug_x64.props
-a----        2023/12/23      0:09            375 conan_ogg.props
-a----        2023/12/23      0:09            409 conan_ogg_ogglib.props
-a----        2023/12/23      0:09           1959 conan_ogg_ogglib_debug_x64.props
-a----        2023/12/23      0:09            966 conan_ogg_ogglib_vars_debug_x64.props
-a----        2023/12/23      0:09           4189 conan_opencv.props
-a----        2023/12/23      0:09            442 conan_opencv_opencv_calib3d.props
-a----        2023/12/23      0:09            460 conan_opencv_opencv_calib3d_alias.props
-a----        2023/12/23      0:09           2291 conan_opencv_opencv_calib3d_alias_debug_x64.props
-a----        2023/12/23      0:09           1267 conan_opencv_opencv_calib3d_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2695 conan_opencv_opencv_calib3d_debug_x64.props
-a----        2023/12/23      0:09           1306 conan_opencv_opencv_calib3d_vars_debug_x64.props
-a----        2023/12/23      0:09            433 conan_opencv_opencv_core.props
-a----        2023/12/23      0:09            451 conan_opencv_opencv_core_alias.props
-a----        2023/12/23      0:09           2249 conan_opencv_opencv_core_alias_debug_x64.props
-a----        2023/12/23      0:09           1207 conan_opencv_opencv_core_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2245 conan_opencv_opencv_core_debug_x64.props
-a----        2023/12/23      0:09           1234 conan_opencv_opencv_core_vars_debug_x64.props
-a----        2023/12/23      0:09            430 conan_opencv_opencv_dnn.props
-a----        2023/12/23      0:09            448 conan_opencv_opencv_dnn_alias.props
-a----        2023/12/23      0:09           2235 conan_opencv_opencv_dnn_alias_debug_x64.props
-a----        2023/12/23      0:09           1187 conan_opencv_opencv_dnn_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2395 conan_opencv_opencv_dnn_debug_x64.props
-a----        2023/12/23      0:09           1210 conan_opencv_opencv_dnn_vars_debug_x64.props
-a----        2023/12/23      0:09            451 conan_opencv_opencv_features2d.props
-a----        2023/12/23      0:09            469 conan_opencv_opencv_features2d_alias.props
-a----        2023/12/23      0:09           2333 conan_opencv_opencv_features2d_alias_debug_x64.props
-a----        2023/12/23      0:09           1327 conan_opencv_opencv_features2d_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2475 conan_opencv_opencv_features2d_debug_x64.props
-a----        2023/12/23      0:09           1378 conan_opencv_opencv_features2d_vars_debug_x64.props
-a----        2023/12/23      0:09            436 conan_opencv_opencv_flann.props
-a----        2023/12/23      0:09            454 conan_opencv_opencv_flann_alias.props
-a----        2023/12/23      0:09           2263 conan_opencv_opencv_flann_alias_debug_x64.props
-a----        2023/12/23      0:09           1227 conan_opencv_opencv_flann_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2189 conan_opencv_opencv_flann_debug_x64.props
-a----        2023/12/23      0:09           1258 conan_opencv_opencv_flann_vars_debug_x64.props
-a----        2023/12/23      0:09            433 conan_opencv_opencv_gapi.props
-a----        2023/12/23      0:09            451 conan_opencv_opencv_gapi_alias.props
-a----        2023/12/23      0:09           2249 conan_opencv_opencv_gapi_alias_debug_x64.props
-a----        2023/12/23      0:09           1207 conan_opencv_opencv_gapi_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2527 conan_opencv_opencv_gapi_debug_x64.props
-a----        2023/12/23      0:09           1257 conan_opencv_opencv_gapi_vars_debug_x64.props
-a----        2023/12/23      0:09            442 conan_opencv_opencv_highgui.props
-a----        2023/12/23      0:09            460 conan_opencv_opencv_highgui_alias.props
-a----        2023/12/23      0:09           2291 conan_opencv_opencv_highgui_alias_debug_x64.props
-a----        2023/12/23      0:09           1267 conan_opencv_opencv_highgui_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2601 conan_opencv_opencv_highgui_debug_x64.props
-a----        2023/12/23      0:09           1373 conan_opencv_opencv_highgui_vars_debug_x64.props
-a----        2023/12/23      0:09            448 conan_opencv_opencv_imgcodecs.props
-a----        2023/12/23      0:09            466 conan_opencv_opencv_imgcodecs_alias.props
-a----        2023/12/23      0:09           2319 conan_opencv_opencv_imgcodecs_alias_debug_x64.props
-a----        2023/12/23      0:09           1307 conan_opencv_opencv_imgcodecs_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2933 conan_opencv_opencv_imgcodecs_debug_x64.props
-a----        2023/12/23      0:09           1354 conan_opencv_opencv_imgcodecs_vars_debug_x64.props
-a----        2023/12/23      0:09            442 conan_opencv_opencv_imgproc.props
-a----        2023/12/23      0:09            460 conan_opencv_opencv_imgproc_alias.props
-a----        2023/12/23      0:09           2291 conan_opencv_opencv_imgproc_alias_debug_x64.props
-a----        2023/12/23      0:09           1267 conan_opencv_opencv_imgproc_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2213 conan_opencv_opencv_imgproc_debug_x64.props
-a----        2023/12/23      0:09           1306 conan_opencv_opencv_imgproc_vars_debug_x64.props
-a----        2023/12/23      0:09            427 conan_opencv_opencv_ml.props
-a----        2023/12/23      0:09            445 conan_opencv_opencv_ml_alias.props
-a----        2023/12/23      0:09           2221 conan_opencv_opencv_ml_alias_debug_x64.props
-a----        2023/12/23      0:09           1167 conan_opencv_opencv_ml_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2153 conan_opencv_opencv_ml_debug_x64.props
-a----        2023/12/23      0:09           1186 conan_opencv_opencv_ml_vars_debug_x64.props
-a----        2023/12/23      0:09            448 conan_opencv_opencv_objdetect.props
-a----        2023/12/23      0:09            466 conan_opencv_opencv_objdetect_alias.props
-a----        2023/12/23      0:09           2319 conan_opencv_opencv_objdetect_alias_debug_x64.props
-a----        2023/12/23      0:09           1307 conan_opencv_opencv_objdetect_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2709 conan_opencv_opencv_objdetect_debug_x64.props
-a----        2023/12/23      0:09           1354 conan_opencv_opencv_objdetect_vars_debug_x64.props
-a----        2023/12/23      0:09            436 conan_opencv_opencv_photo.props
-a----        2023/12/23      0:09            454 conan_opencv_opencv_photo_alias.props
-a----        2023/12/23      0:09           2263 conan_opencv_opencv_photo_alias_debug_x64.props
-a----        2023/12/23      0:09           1227 conan_opencv_opencv_photo_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2195 conan_opencv_opencv_photo_debug_x64.props
-a----        2023/12/23      0:09           1258 conan_opencv_opencv_photo_vars_debug_x64.props
-a----        2023/12/23      0:09            448 conan_opencv_opencv_stitching.props
-a----        2023/12/23      0:09            466 conan_opencv_opencv_stitching_alias.props
-a----        2023/12/23      0:09           2319 conan_opencv_opencv_stitching_alias_debug_x64.props
-a----        2023/12/23      0:09           1307 conan_opencv_opencv_stitching_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2725 conan_opencv_opencv_stitching_debug_x64.props
-a----        2023/12/23      0:09           1354 conan_opencv_opencv_stitching_vars_debug_x64.props
-a----        2023/12/23      0:09            436 conan_opencv_opencv_video.props
-a----        2023/12/23      0:09            442 conan_opencv_opencv_videoio.props
-a----        2023/12/23      0:09            460 conan_opencv_opencv_videoio_alias.props
-a----        2023/12/23      0:09           2291 conan_opencv_opencv_videoio_alias_debug_x64.props
-a----        2023/12/23      0:09           1267 conan_opencv_opencv_videoio_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2807 conan_opencv_opencv_videoio_debug_x64.props
-a----        2023/12/23      0:09           1306 conan_opencv_opencv_videoio_vars_debug_x64.props
-a----        2023/12/23      0:09            454 conan_opencv_opencv_video_alias.props
-a----        2023/12/23      0:09           2263 conan_opencv_opencv_video_alias_debug_x64.props
-a----        2023/12/23      0:09           1227 conan_opencv_opencv_video_alias_vars_debug_x64.props
-a----        2023/12/23      0:09           2443 conan_opencv_opencv_video_debug_x64.props
-a----        2023/12/23      0:09           1258 conan_opencv_opencv_video_vars_debug_x64.props
-a----        2023/12/23      0:09           1363 conan_openexr.props
-a----        2023/12/23      0:09            436 conan_openexr_openexr_iex.props
-a----        2023/12/23      0:09            454 conan_openexr_openexr_iexconfig.props
-a----        2023/12/23      0:09           2139 conan_openexr_openexr_iexconfig_debug_x64.props
-a----        2023/12/23      0:09           1275 conan_openexr_openexr_iexconfig_vars_debug_x64.props
-a----        2023/12/23      0:09           2203 conan_openexr_openexr_iex_debug_x64.props
-a----        2023/12/23      0:09           1163 conan_openexr_openexr_iex_vars_debug_x64.props
-a----        2023/12/23      0:09            454 conan_openexr_openexr_ilmthread.props
-a----        2023/12/23      0:09            472 conan_openexr_openexr_ilmthreadconfig.props
-a----        2023/12/23      0:09           2211 conan_openexr_openexr_ilmthreadconfig_debug_x64.props
-a----        2023/12/23      0:09           1401 conan_openexr_openexr_ilmthreadconfig_vars_debug_x64.props
-a----        2023/12/23      0:09           2411 conan_openexr_openexr_ilmthread_debug_x64.props
-a----        2023/12/23      0:09           1295 conan_openexr_openexr_ilmthread_vars_debug_x64.props
-a----        2023/12/23      0:09            448 conan_openexr_openexr_openexr.props
-a----        2023/12/23      0:09            466 conan_openexr_openexr_openexrconfig.props
-a----        2023/12/23      0:09           2187 conan_openexr_openexr_openexrconfig_debug_x64.props
-a----        2023/12/23      0:09           1359 conan_openexr_openexr_openexrconfig_vars_debug_x64.props
-a----        2023/12/23      0:09            460 conan_openexr_openexr_openexrcore.props
-a----        2023/12/23      0:09           2401 conan_openexr_openexr_openexrcore_debug_x64.props
-a----        2023/12/23      0:09           1339 conan_openexr_openexr_openexrcore_vars_debug_x64.props
-a----        2023/12/23      0:09            460 conan_openexr_openexr_openexrutil.props
-a----        2023/12/23      0:09           2295 conan_openexr_openexr_openexrutil_debug_x64.props
-a----        2023/12/23      0:09           1339 conan_openexr_openexr_openexrutil_vars_debug_x64.props
-a----        2023/12/23      0:09           2611 conan_openexr_openexr_openexr_debug_x64.props
-a----        2023/12/23      0:09           1251 conan_openexr_openexr_openexr_vars_debug_x64.props
-a----        2023/12/23      0:09            403 conan_openh264.props
-a----        2023/12/23      0:09           1935 conan_openh264_debug_x64.props
-a----        2023/12/23      0:09            931 conan_openh264_vars_debug_x64.props
-a----        2023/12/23      0:09            403 conan_openjpeg.props
-a----        2023/12/23      0:09           1935 conan_openjpeg_debug_x64.props
-a----        2023/12/23      0:09            941 conan_openjpeg_vars_debug_x64.props
-a----        2023/12/23      0:09            497 conan_openssl.props
-a----        2023/12/23      0:09            421 conan_openssl_crypto.props
-a----        2023/12/23      0:09           2101 conan_openssl_crypto_debug_x64.props
-a----        2023/12/23      0:09           1117 conan_openssl_crypto_vars_debug_x64.props
-a----        2023/12/23      0:09            412 conan_openssl_ssl.props
-a----        2023/12/23      0:09           2085 conan_openssl_ssl_debug_x64.props
-a----        2023/12/23      0:09            993 conan_openssl_ssl_vars_debug_x64.props
-a----        2023/12/23      0:09            381 conan_opus.props
-a----        2023/12/23      0:09            415 conan_opus_libopus.props
-a----        2023/12/23      0:09           1983 conan_opus_libopus_debug_x64.props
-a----        2023/12/23      0:09           1010 conan_opus_libopus_vars_debug_x64.props
-a----        2023/12/23      0:09            525 conan_protobuf.props
-a----        2023/12/23      0:09            439 conan_protobuf_libprotobuf.props
-a----        2023/12/23      0:09           2173 conan_protobuf_libprotobuf_debug_x64.props
-a----        2023/12/23      0:09           1187 conan_protobuf_libprotobuf_vars_debug_x64.props
-a----        2023/12/23      0:09            433 conan_protobuf_libprotoc.props
-a----        2023/12/23      0:09           2181 conan_protobuf_libprotoc_debug_x64.props
-a----        2023/12/23      0:09           1143 conan_protobuf_libprotoc_vars_debug_x64.props
-a----        2023/12/23      0:09            394 conan_quirc.props
-a----        2023/12/23      0:09           1899 conan_quirc_debug_x64.props
-a----        2023/12/23      0:09            865 conan_quirc_vars_debug_x64.props
-a----        2023/12/23      0:09            887 conan_vorbis.props
-a----        2023/12/23      0:09            445 conan_vorbis_vorbisenc-alias.props
-a----        2023/12/23      0:09           2221 conan_vorbis_vorbisenc-alias_debug_x64.props
-a----        2023/12/23      0:09           1212 conan_vorbis_vorbisenc-alias_vars_debug_x64.props
-a----        2023/12/23      0:09            427 conan_vorbis_vorbisenc.props
-a----        2023/12/23      0:09           2151 conan_vorbis_vorbisenc_debug_x64.props
-a----        2023/12/23      0:09           1100 conan_vorbis_vorbisenc_vars_debug_x64.props
-a----        2023/12/23      0:09            448 conan_vorbis_vorbisfile-alias.props
-a----        2023/12/23      0:09           2235 conan_vorbis_vorbisfile-alias_debug_x64.props
-a----        2023/12/23      0:09           1233 conan_vorbis_vorbisfile-alias_vars_debug_x64.props
-a----        2023/12/23      0:09            430 conan_vorbis_vorbisfile.props
-a----        2023/12/23      0:09           2163 conan_vorbis_vorbisfile_debug_x64.props
-a----        2023/12/23      0:09           1122 conan_vorbis_vorbisfile_vars_debug_x64.props
-a----        2023/12/23      0:09            430 conan_vorbis_vorbismain.props
-a----        2023/12/23      0:09           2135 conan_vorbis_vorbismain_debug_x64.props
-a----        2023/12/23      0:09           1118 conan_vorbis_vorbismain_vars_debug_x64.props
-a----        2023/12/23      0:09            403 conan_xz_utils.props
-a----        2023/12/23      0:09           1935 conan_xz_utils_debug_x64.props
-a----        2023/12/23      0:09            943 conan_xz_utils_vars_debug_x64.props
-a----        2023/12/23      0:09            391 conan_zlib.props
-a----        2023/12/23      0:09           1887 conan_zlib_debug_x64.props
-a----        2023/12/23      0:09            842 conan_zlib_vars_debug_x64.props
-a----        2023/12/23      0:09            381 conan_zstd.props
-a----        2023/12/23      0:09            415 conan_zstd_zstdlib.props
-a----        2023/12/23      0:09           1983 conan_zstd_zstdlib_debug_x64.props
-a----        2023/12/23      0:09           1017 conan_zstd_zstdlib_vars_debug_x64.props
-a----        2023/12/23      0:09             65 deactivate_conanbuild.bat
-a----        2023/12/23      0:09             63 deactivate_conanrun.bat
```**
The link seems incorrect, it is linking the issue itself, not an attachment, could you please try again?

I am thinking this seems a bug in MSBuildDeps generator, not handling correctly the transitive skipped binaries, but it would be great to have the full output to validate it.
@memsharded The attachment is fixed.
I have to explicitly add `self.requires("eigen/3.4.0")` to make it work.
@memsharded 
Another problem, if some dependency is defined with `override`, it will not work correctly.
In my use case, it reports header file not found.

It seems your log is truncated, it is missing the initial part. I am interested in the graph computation and information from the ``conan install`` command, but it seems the log starts later in the build part.
This should be fixed by https://github.com/conan-io/conan/pull/15626, to be in next 2.1 release. Thanks!

Thanks very much for your report @RazielXYZ

It really  helped to identify the issue quickly and I am providing a fix in https://github.com/conan-io/conan/pull/15626 for next release (early next week). 

Having a way smaller repro case helped a lot to identify the issue and realize it was because of recipes using components, which I didn't manage to realize in the other ticket. This is really great for maintainers with a repo with huge activity, really appreciated.
https://github.com/conan-io/conan/pull/15626 has been merged, it will be in next 2.1 (but if you want to give it a try from source before the release, you need to run from the ``develop2`` branch). Thanks again for reporting!



Patch:
diff --git a/conan/tools/microsoft/msbuilddeps.py b/conan/tools/microsoft/msbuilddeps.py
index 6c7500fe3e3..d8e06c1b5c0 100644
--- a/conan/tools/microsoft/msbuilddeps.py
+++ b/conan/tools/microsoft/msbuilddeps.py
@@ -315,6 +315,7 @@ def _package_props_files(self, require, dep, build=False):
         condition = self._condition()
         dep_name = self._dep_name(dep, build)
         result = {}
+        pkg_deps = get_transitive_requires(self._conanfile, dep)  # only non-skipped dependencies
         if dep.cpp_info.has_components:
             pkg_aggregated_content = None
             for comp_name, comp_info in dep.cpp_info.components.items():
@@ -327,8 +328,9 @@ def _package_props_files(self, require, dep, build=False):
                 public_deps = []  # To store the xml dependencies/file names
                 for required_pkg, required_comp in comp_info.parsed_requires():
                     if required_pkg is not None:  # Points to a component of a different package
-                        public_deps.append(required_pkg if required_pkg == required_comp
-                                           else "{}_{}".format(required_pkg, required_comp))
+                        if required_pkg in pkg_deps:  # The transitive dep might have been skipped
+                            public_deps.append(required_pkg if required_pkg == required_comp
+                                               else "{}_{}".format(required_pkg, required_comp))
                     else:  # Points to a component of same package
                         public_deps.append("{}_{}".format(dep_name, required_comp))
                 public_deps = [self._get_valid_xml_format(d) for d in public_deps]
@@ -348,7 +350,6 @@ def _package_props_files(self, require, dep, build=False):
             vars_filename = "conan_%s_vars%s.props" % (dep_name, conf_name)
             activate_filename = "conan_%s%s.props" % (dep_name, conf_name)
             pkg_filename = "conan_%s.props" % dep_name
-            pkg_deps = get_transitive_requires(self._conanfile, dep)
             public_deps = [self._dep_name(d, build) for d in pkg_deps.values()]
 
             result[vars_filename] = self._vars_props_file(require, dep, dep_name, cpp_info,


Test patch:
diff --git a/conans/test/integration/toolchains/microsoft/test_msbuilddeps.py b/conans/test/integration/toolchains/microsoft/test_msbuilddeps.py
index 14b04bab618..00deb04e986 100644
--- a/conans/test/integration/toolchains/microsoft/test_msbuilddeps.py
+++ b/conans/test/integration/toolchains/microsoft/test_msbuilddeps.py
@@ -4,6 +4,7 @@
 
 import pytest
 
+from conans.test.assets.genconanfile import GenConanfile
 from conans.test.utils.tools import TestClient
 
 
@@ -65,3 +66,57 @@ def package_info(self):
             minidom.parseString(content)
             counter += 1
     assert counter == 8
+
+
+class TestMSBuildDepsSkips:
+    # https://github.com/conan-io/conan/issues/15624
+    def test_msbuilddeps_skipped_deps(self):
+        c = TestClient()
+        c.save({"liba/conanfile.py": GenConanfile("liba", "0.1").with_package_type("header-library"),
+                "libb/conanfile.py": GenConanfile("libb", "0.1").with_package_type("static-library")
+                                                                .with_requires("liba/0.1"),
+                "app/conanfile.py": GenConanfile().with_requires("libb/0.1")
+                                                  .with_settings("arch", "build_type")})
+        c.run("create liba")
+        c.run("create libb")
+        c.run("install app -g MSBuildDeps")
+        assert not os.path.exists(os.path.join(c.current_folder, "app", "conan_liba.props"))
+        assert os.path.exists(os.path.join(c.current_folder, "app", "conan_libb.props"))
+        libb = c.load("app/conan_libb.props")
+        assert "conan_liba" not in libb
+        libb = c.load("app/conan_libb_release_x64.props")
+        assert "conan_liba" not in libb
+        libb = c.load("app/conan_libb_vars_release_x64.props")
+        assert "conan_liba" not in libb
+
+    def test_msbuilddeps_skipped_deps_components(self):
+        c = TestClient()
+        libb = textwrap.dedent("""
+            from conan import ConanFile
+            class Libb(ConanFile):
+                name = "libb"
+                version = "0.1"
+                package_type = "static-library"
+                requires = "liba/0.1"
+                def package_info(self):
+                    self.cpp_info.components["mycomp"].libs = ["mycomplib"]
+                    self.cpp_info.components["mycomp"].requires = ["liba::liba"]
+            """)
+
+        c.save({"liba/conanfile.py": GenConanfile("liba", "0.1").with_package_type("header-library"),
+                "libb/conanfile.py": libb,
+                "app/conanfile.py": GenConanfile().with_requires("libb/0.1")
+                                                  .with_settings("arch", "build_type")})
+        c.run("create liba")
+        c.run("create libb")
+        c.run("install app -g MSBuildDeps")
+        assert not os.path.exists(os.path.join(c.current_folder, "app", "conan_liba.props"))
+        assert os.path.exists(os.path.join(c.current_folder, "app", "conan_libb.props"))
+        libb = c.load("app/conan_libb.props")
+        assert "conan_liba" not in libb
+        libb = c.load("app/conan_libb_mycomp.props")
+        assert "conan_liba" not in libb
+        libb = c.load("app/conan_libb_mycomp_release_x64.props")
+        assert "conan_liba" not in libb
+        libb = c.load("app/conan_libb_mycomp_vars_release_x64.props")
+        assert "conan_liba" not in libb