KreativJos / csharpextensions

C# Extensions for Visual Studio Code
MIT License
73 stars 35 forks source link

Support project imports #78

Closed heggi closed 1 year ago

heggi commented 2 years ago

I have few projects in one solution that import common settings from the same file.

For example SomeProject1.csproj

<Project Sdk="Microsoft.NET.Sdk">
    <Import Project="..\Configurations.targets" />

    <!-- Other project-specific settings -->
</Project>

Configurations.targets

<Project>
    <PropertyGroup>
        <TargetFramework>net6.0</TargetFramework>
        <Nullable>Enable</Nullable>
        <ImplicitUsings>enable</ImplicitUsings>
    </PropertyGroup>

    <!-- Other common settings -->
</Project>

Extension in this configuration of projects don't detect .Net 6.0 and parameter "csharpextensions.useFileScopedNamespace" doesn't work as expected