Click to expand log
```
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
Installing package: libmad/0.15.1b
Requirements
libmad/0.15.1b from 'conancenter' - Cache
Packages
libmad/0.15.1b:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Build
Installing (downloading, building) binaries...
libmad/0.15.1b: WARN: Build folder is dirty, removing it: C:\Users\Denis\.conan\data\libmad\0.15.1b\_\_\build\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b
libmad/0.15.1b: Copying sources to build folder
libmad/0.15.1b: Building your package in C:\Users\Denis\.conan\data\libmad\0.15.1b\_\_\build\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b
libmad/0.15.1b: Generator txt created conanbuildinfo.txt
libmad/0.15.1b: Aggregating env generators
libmad/0.15.1b: Calling build()
Conan:vcvars already set
Microsoft Visual Studio 2022 Version 17.3.6.
Copyright (C) Microsoft Corp. All rights reserved.
Information:
This file is not a recognized project or solution.
No migration was performed.
Conan:vcvars already set
Microsoft Visual Studio 2022 Version 17.3.6.
Copyright (C) Microsoft Corp. All rights reserved.
The following files were specified on the command line:
libmad.vcxproj
These files could not be found and will not be loaded.MSBuild version 17.3.1+2badb37d1 for .NET Framework
MSBUILD : error MSB1009: Project file does not exist.
Switch: libmad.vcxproj
libmad/0.15.1b:
libmad/0.15.1b: ERROR: Package '5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b' build failed
libmad/0.15.1b: WARN: Build folder C:\Users\Denis\.conan\data\libmad\0.15.1b\_\_\build\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b
ERROR: libmad/0.15.1b: Error in build() method, line 60
self._build_msvc()
while calling '_build_msvc', line 75
msbuild.build(project_file="libmad.vcxproj")
ConanException: Error 1 while executing echo Conan:vcvars already set && devenv "libmad.vcxproj" /upgrade && msbuild "libmad.vcxproj" /p:Configuration="Release" /p:UseEnv=true /p:Platform="x64" /m:16 /p:PlatformToolset="v143" /verbosity:minimal /p:ForceImportBeforeCppTargets="C:\Users\Denis\.conan\data\libmad\0.15.1b\_\_\build\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b\source_subfolder\msvc++\conan_build.props"
```
Indeed, there is another recipe where library build files are based on these old dsp files: libid3tag. Feel free to submit a PR. I think the easiest solution is to write a custom CMakeLists.
Description
Conan build script calls VS to upgrade .dsp file and then builds the project using MSBuild.
Visual Studio 2022 has deprecated support for the upgrade of project types that have .dsw or .dsp extensions.
Package and Environment Details
Conan profile
[settings] os=Windows os_build=Windows arch=x86_64 arch_build=x86_64 compiler=Visual Studio compiler.version=17 build_type=Release [options] [conf] [build_requires] [env]
Steps to reproduce
conan install libmad/0.15.1b@ --build=missing
Logs
Click to expand log
``` Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MD compiler.version=17 os=Windows os_build=Windows [options] [build_requires] [env] Installing package: libmad/0.15.1b Requirements libmad/0.15.1b from 'conancenter' - Cache Packages libmad/0.15.1b:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Build Installing (downloading, building) binaries... libmad/0.15.1b: WARN: Build folder is dirty, removing it: C:\Users\Denis\.conan\data\libmad\0.15.1b\_\_\build\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b libmad/0.15.1b: Copying sources to build folder libmad/0.15.1b: Building your package in C:\Users\Denis\.conan\data\libmad\0.15.1b\_\_\build\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b libmad/0.15.1b: Generator txt created conanbuildinfo.txt libmad/0.15.1b: Aggregating env generators libmad/0.15.1b: Calling build() Conan:vcvars already set Microsoft Visual Studio 2022 Version 17.3.6. Copyright (C) Microsoft Corp. All rights reserved. Information: This file is not a recognized project or solution. No migration was performed. Conan:vcvars already set Microsoft Visual Studio 2022 Version 17.3.6. Copyright (C) Microsoft Corp. All rights reserved. The following files were specified on the command line: libmad.vcxproj These files could not be found and will not be loaded.MSBuild version 17.3.1+2badb37d1 for .NET Framework MSBUILD : error MSB1009: Project file does not exist. Switch: libmad.vcxproj libmad/0.15.1b: libmad/0.15.1b: ERROR: Package '5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b' build failed libmad/0.15.1b: WARN: Build folder C:\Users\Denis\.conan\data\libmad\0.15.1b\_\_\build\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b ERROR: libmad/0.15.1b: Error in build() method, line 60 self._build_msvc() while calling '_build_msvc', line 75 msbuild.build(project_file="libmad.vcxproj") ConanException: Error 1 while executing echo Conan:vcvars already set && devenv "libmad.vcxproj" /upgrade && msbuild "libmad.vcxproj" /p:Configuration="Release" /p:UseEnv=true /p:Platform="x64" /m:16 /p:PlatformToolset="v143" /verbosity:minimal /p:ForceImportBeforeCppTargets="C:\Users\Denis\.conan\data\libmad\0.15.1b\_\_\build\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b\source_subfolder\msvc++\conan_build.props" ```