Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace "DependencyPropertyGenerator" not found, in TargetFramework "net472" #39

Open
DrPepperBianco opened this issue Mar 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@DrPepperBianco
Copy link

Describe the bug

After updating to version 1.4.0 I got the error "Namespace 'DependencyPropertyGenerator'" not found for TargetFramework "net472".

Steps to reproduce the bug

  1. Create Multi-Target project
  2. Target "net472" and "net6.0-windows"
  3. UseWPF true
  4. Install Package "DependencyPropertyGenerator, 1.4.0"
  5. create .cs file with "using DependencyPropertyGenerator"
  6. Compile it.

net6.0-windows is compiled correctly, but net472 gets error.

Expected behavior

Expected behaviour: Compilation works.

Screenshots

No response

NuGet package version

1.4.0

IDE

Visual Studio 2022

Additional context

No response

@DrPepperBianco DrPepperBianco added the bug Something isn't working label Mar 22, 2024
@HavenDV
Copy link
Owner

HavenDV commented Mar 23, 2024

Hmm, try completely removing it (so that there is no PackageReference in the project) and reinstalling it again. Older versions of the package had a different configuration and this could be a problem

@otomad
Copy link

otomad commented Apr 23, 2024

I'm using net48 and it's still complaining that cannot find the type or namespace name DependencyPropertyGenerator.
I tried DependencyPropertyGenerator 1.5.0-beta.1 and 1.4.0 and neither of them worked.
I tried removing all packages from the project and then reinstalling them as described above, but it still didn't work.
I am using .net framework 4.8 with the new csproj format.
Do you know how to resolve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants