aliasadidev / vscode-npm-gui

vscode nuget package manager gui https://marketplace.visualstudio.com/items?itemName=aliasadidev.nugetpackagemanagergui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] csproj property being modified incorrectly

Anderezekial opened this issue · comments

Not sure if this is related to #34 or was an existing issue. Also not sure if multiple properties are affected or this one is an edge case.

The empty <OutputPath></OutputPath> property is being changed to <OutputPathh/> with an extra 'h', and another 'h' is added each time the update button is used. (Even if on the latest version and nothing is actually updating).

This example csproj file with a diff after doing an update: (with additional entries for testing)

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <DebugType>embedded</DebugType>
    <Version>1.0.0</Version>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <DocumentationFile>.\Project.xml</DocumentationFile>
-    <OutputPath></OutputPath>
+    <OutputPathh/>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
    <DocumentationFile>.\Project.xml</DocumentationFile>
-    <OutputPath/>
+    <OutputPathh/>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
    <DocumentationFile>.\Project.xml</DocumentationFile>
-    <OutputPathhhhhh/>
+    <OutputPathhhhhhh/>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Dapper" Version="2.0.123" />
    <PackageReference Include="MySql.Data" Version="8.0.31" />
    <PackageReference Include="Npgsql" Version="6.0.7" />
    <PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.1" />
    <PackageReference Include="System.Data.SqlClient" Version="4.8.4" />
  </ItemGroup>

  <Target Name="PrepublishScript" BeforeTargets="PrepareForPublish">
    <ItemGroup>
      <DocFile Include="bin\$(Configuration)\$(TargetFramework)\*.xml" />
    </ItemGroup>
    <Copy SourceFiles="@(DocFile)" DestinationFolder="$(PublishDir)" SkipUnchangedFiles="false" />
  </Target>

</Project>

@Anderezekial
thank you for reporting, i fixed it.