tintoy / msbuild-project-tools-vscode

VS Code extension for MSBuild intellisense (including PackageReference completion).
MIT License
82 stars 16 forks source link

Problems of <ItemGroup> children nodes #148

Open tamashii opened 1 month ago

tamashii commented 1 month ago

There're two problems in <ItemGroup> children nodes:

  1. The CopyToOutputPath attribute is not only available in <Content> node, but also available in <None>, <Resource>, <EmbeddedResource> ,<Compile> and <AssemblyMetadata> node.
  2. The three values of CopyToOutputPath attribute are Never, Always, and PreserveNewest — but actually is Newer in current intellisense hints.

And here's the official document for above content : https://learn.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-items

tintoy commented 1 month ago

Thanks for reporting!

  1. It should be pretty easy to handle this; I'll look into it tonight.
  2. For autocomplete, this should be easy to fix; if the tooltip displayed when hovering says Newer then that may be a little trickier because that's what the project system is returning to us. I'll have a look at this tonight, too, if I get time.
tintoy commented 1 month ago

Ok, this has been fixed and will be available in the next release 🙂