KreativJos / csharpextensions

C# Extensions for Visual Studio Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Namespace name generated from one level up

abaula opened this issue · comments

"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.

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)

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

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

The issue is resolved in the PR above.

Fixed and released with 1.6.3