KreativJos / csharpextensions

C# Extensions for Visual Studio Code
MIT License
74 stars 34 forks source link

Namespace name generated from one level up #88

Closed abaula closed 2 years ago

abaula commented 2 years ago

"This extension traverses up the folder tree to find the project.json or *.csproj and uses that as the parent folder to determine namespaces."

Seems it doesn't work anymore.

KreativJos commented 2 years ago

It does for me: image

Could you provide some context:

  1. The version of the extension
  2. The folder structure from the csproj to the created file
  3. The csproj TargetFramework & optional RootNamespace
  4. Your OS (Mac / Windows / Linux)
luciano-souza commented 2 years ago

Having same issue. Not working with regular namespace or file scoped either. image image image

  1. The version of the extension => 1.6.2
  2. The folder structure from the csproj to the created file => image above
  3. The csproj TargetFramework & optional RootNamespace => I dont know if the images show what you want here
  4. Your OS (Mac / Windows / Linux) => Windows
KreativJos commented 2 years ago

The issue can be replicated by having this same structure. I'll try to find out why.

KreativJos commented 2 years ago

The issue is resolved in the PR above.

KreativJos commented 2 years ago

Fixed and released with 1.6.3