question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] MSBuildDeps generates invalid property file (dot replacement for component requirement)

See original GitHub issue

Generated props file contains link to another props without dot replacement

conan_hello_hello_withdot2_release_x64.props:

...
<Import Condition="'$(conan_hello_hello.withdot_props_imported)' != 'True'" Project="conan_hello_hello.withdot.props"/>
...

actual name on disk: conan_hello_hello_withdot.props

Environment Details (include every applicable attribute)

  • Operating System+version: Windows 11
  • Compiler+version: VS2022
  • Conan version: 1.53.0
  • Python version: 3.9.1

Steps to reproduce (Include if Applicable)

mkdir hellopkg && cd hellopkg && conan new hello/0.1 --template=cmake_lib replace implementation of package_info in conanfile.py with

self.cpp_info.components["hello.withdot"].libs = ["hello"]
self.cpp_info.components["hello.withdot2"].libs = ["hello"]
self.cpp_info.components["hello.withdot2"].requires = ["hello.withdot"]

conan export . hello/0.1@testdot/channel mkdir temp && cd temp && conan install -g MSBuildDeps --build=missing hello/0.1@testdot/channel

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
schreibubicommented, Oct 21, 2022

This change fixes the issue for me. Thanks!

0reactions
TSS-THacommented, Oct 26, 2022

That’s perfect. It’s a holiday here too, so I’ll work around those few days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Boot not recognizing application.properties file
I've tried making another separate database.properties file , but Spring Boot isn't recognizing that either. What am I doing wrong? java ...
Read more >
docs/changelog.rst at develop · conan-io/docs - GitHub
Bugfix: The CMakeDeps generator now uses the property cmake_build_modules declared in components of the required packages not only in the root cpp_info.
Read more >
Properties File Format - Oracle Help Center
The properties files read by Nucleus must follow a format that is recognized by the class java.util.Properties . The rules for the format...
Read more >
Changelog — conan 1.36.0 documentation
Feature: Improved MSbuild() build helper using vcvars() and generating property file to adjust the runtime automatically. New method get_command() with the call ...
Read more >
MSBuild reference for .NET SDK projects - Microsoft Learn
The ErrorOnDuplicatePublishOutputFiles property relates to whether the SDK generates error NETSDK1148 when MSBuild detects duplicate files ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found